logoalt Hacker News

blablabla123today at 9:21 AM1 replyview on HN

It's the cache, I pin-pointed the main problem correctly without ADB access, any closer details and just google.

> // Unpack into no_backup storage rather than the cache dir. Android may

> // delete files from getCacheDir() at any time to reclaim space, which

Looking further into the issue disk space is a huge problem with Kodi discussed plenty of times. In fact even the Wiki dedicates 2 pages to it:

https://kodi.wiki/view/Archive:Reduce_disk_space_usage

https://kodi.wiki/view/Texture_Cache_Maintenance_utility

I realize from your perspective this may seem still a very convincing example in the sense of it works.

A non-programmatic solution might have been possible though:

> It's likely your thumbnail cache. That's typically the biggest piece stored locally (you also have the database). You can clear the cache (short term fix) or move it to another drive (long term fix).

> Also recommend not downloading actor thumbnails. Lot of extra images.

https://www.reddit.com/r/ShieldAndroidTV/comments/1f7xfwn/ko...

I also recommend: https://en.wikipedia.org/wiki/Data_dredging


Replies

AussieWog93today at 9:31 AM

It's not (strictly) a disk space issue. It's Android aggressively trimming cache files that Kodi assumes are never trimmed.

There's a single variable that keeps track of whether or not the cache has been "written", but Android only trims some of the cache files.

show 1 reply