logoalt Hacker News

AussieWog93today at 8:15 AM1 replyview on HN

Here's the draft PR: https://github.com/xbmc/xbmc/pull/28404

And yes, it correctly diagnosed the problem - I confirmed this morning. The cache had been partially deleted (exactly like it said) and the patched version of the software automatically detected this and rebuilt the cache rather than crashing. This was using the initial version of the patch from commit 1 of the PR.

I then talked with Claude a bit to come up with a less hacky solution that doesn't require constant cache rebuilding, and it suggested writing the "cache" to no_backup, bypassing the cache trimmer. However, this required rebuilding the .so via NDK, so it spun up a full VM in multipass, installed all the tools in there to build the fully patched APK, and built it (the VM was my suggestion, it was about to just brew install everything and mess with my local dev environment).

You can read the full log here, it's nuts: https://github.com/user-attachments/files/28659274/2026-06-0...

I think the key takeaway from this experience (and a few others recently) is that Claude Code works much, much better when you explicitly instruct it to test against real data.

Had I simply described the issue and asked it to think up a solution it likely would have just navel-gazed and then come up with a wrong solution. But by pointing it at a real working environment and actively encouraging it to get its hands dirty, it found the actual solution rapidly - in spite of the fact that I gave it wrong information twice.


Replies

blablabla123today at 9:21 AM

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

show 1 reply