Stremio / stremio-bugs

🐛 Post bug reports in Issues here
66 stars 10 forks source link

Android: cache size not respected, app ends up using ~10GB of space #755

Closed dany123 closed 5 months ago

dany123 commented 5 months ago

Describe the bug I am using Stremio on an android tablet (Samsung Tab A8) with limited internal memory storage (32GB, about 10GB free) and Stremio ends up using it all of it every few weeks even though Cache size in settings is set at 2GB.

To Reproduce Use Stremio normally to watch stuff (various addons, mostly torrentio, (+/-RD) and superflix). Cache size in settings is set at 2GB. Go into android settings -> Apps -> Stremio and check out the Storage size, it starts at ~150MB on a fresh install and it slowly goes up with usage and never clears itself down. Note: right now I'm watching an anime with 200-400MB episodes so it's not an issue of watching a 10GB movie that's being cached, the app doesn't seem to want to clean up old episodes. Eventually I get the android "low storage space" warning and have to manually go to android settings -> Apps -> Stremio and manually clear data. Note that in android' settigns it's "Data" that increases, not Cache to easily clean it up. The annoying part is that after clearing data I have to log in again + configure all my settings as they end up defaulted.

I've been doing this about every few weeks for the last year. I don't understand how this cache size works, is it doing something else entirely? Do [some?] addons ignore it? Does it matter if I start multiple shows/movies?

Expected behavior Stremio's app size should never exceed the MAX of (cache size) and (current video size), automatically cleaning up older cached videos when set limit is reached.

Screenshots 1  cache size 2  settings

Smartphone (please complete the following information): Stremio 1.6.12 (was the same for previous updates over the last year) Samsung Tab A8, Android 14 (was the same on 13)

Additional context Note: the tablet has a big microSD memory card with plenty of free space but Stremio doesn't use it even if moved to SD card in android's settings (I posted a feature request here: #https://github.com/Stremio/stremio-features/issues/423 regarding this a while back, but this is not related to the memory card, I am using Stremio on internal memory as default/standard as possible and the bug is still there, I just want to not have to clear data manually).

TRtomasz commented 5 months ago

Thats not a bug, this is how cache works, it will use as much space as a file you are trying to play. This will get cleared with the next file you starts playing.

dany123 commented 5 months ago

Hello, please re-read my report, I already said this is NOT my case in the previous post:

Note: right now I'm watching an anime with 200-400MB episodes so it's not an issue of watching a 10GB movie that's being cached, the app doesn't seem to want to clean up old episodes.

I've also cleaned up the data 3 days ago, watched only ~300MB episodes and storage is already at 3.6GB with cache limit at 2GB. This is clearly a bug.

dany123 commented 5 months ago

So is this report going to remain closed for no reason?

dany123 commented 4 months ago

Updating with a workaround in case anyone else is being affected by this: setting cache size to "no-cache" immediately clears all cached data. So at least this option works all the time and I don't need to clear data in android settings.

Gater73 commented 6 days ago

Being getting the same issue in Win10, while working with "No cache" it works almost like regular streaming, but with cache set to 2GB it should, not cache more than 2GB, the downloading happens in a linear way so theres no reason the app shouldnt be able to cut the old file up if it exceeds 2GB, plus even if it is a 1GB file the apps still holds up old 1GB files until more than 15GB are consumed and my ssd gets full, please look at this developer, also take a look at the clear local storage, doesnt seem to works also

dany123 commented 6 days ago

Try to post a brand new issue as it seems he misread my post and just ignored any reply after the closure.