Skip to content

Cookie Jar Memory Leak #301

@annrose2277-glitch

Description

@annrose2277-glitch

Bug Report | Memory Leak

Description
PlaybackCookieJar stores cookies indefinitely in cookiesByHost map. Expired cookies are not properly cleaned up, causing memory accumulation over time with many streaming sources.

Steps to Reproduce
Use multiple streaming sources with HTTP cookies
Run app for several hours
Monitor memory usage
Memory grows due to stale cookies
Expected Behavior
Expired cookies should be cleaned up automatically

Actual Behavior
All cookies remain in memory indefinitely

Environment
Platform: Android TV
Component: HTTP Cookie Management
File: app/src/main/kotlin/com/arflix/tv/ui/screens/player/PlayerScreen.kt (line 4979-5009)
Possible Fix
Add automatic cleanup of expired cookies in a background task.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions