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.
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.