[RELEASE] Texture Cache Maintenance utility
Thanks for the zip.

I still think it's a memory issue.

Running texturecache.py remotely, for just "nc movies", I can see over 80MB of RAM being consumed on the Pi, which is the memory being used by XBMC just to query and then serialise the JSON data (media libary and texture db). Obviously, running texturecache,py on the Pi itself would at least double this RAM requirement.

I'm not sure of your precise configuration, but you obviously have logging enabled, and I'll take a guess that you also have cache.castthumb enabled.

Disabling the logfile (@logfile=) will prevent the creation of one or two large buffers and may leave enough RAM for the script to load everything it needs. "nc movies" worked here without logging, but failed to complete with logging enabled.

Also, caching cast artwork massively increases the number of items to be loaded and processed. Although it's only 1279 movies, you have a total of 26,695 cast thumbnails out of a total of 63,697 cast members, all of which need to be loaded into memory then processed (although all of the cast members without thumbnails will be discarded, they still need to be loaded first). Disabling cast caching (@cache.castthumb=no) will, I'm sure, eliminate memory issues although it does of course mean you will not be pre-loading the cache with cast thumbnails.

I think there will be instances when it's just not going to be practical to run texturecache.py directly on a memory limited device, in which case running texturecache.py remotely is probably the best option, particularly if you want to cache cast members.

I'll give some thought to how the memory overhead could be reduced, but other than executing multiple queries and discarding as much as possible between queries, nothing is leaping out at me. Unfortunately there's no way to query XBMC for only those cast members with thumbnails... now that would be nice. Smile
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply


Messages In This Thread
RE: [RELEASE] Texture Cache Maintenance utility - by Milhouse - 2014-01-25, 15:46
Crash on Gotham on OS X - by desepticon - 2014-05-29, 17:57
Cleaning - by AleisterHH - 2018-05-28, 22:03
RE: Cleaning - by Milhouse - 2018-05-28, 22:16
qax genre not updated - by Just-Me_A-User - 2018-06-12, 22:06
RE: qax genre not updated - by Milhouse - 2018-06-12, 23:40
Logout Mark Read Team Forum Stats Members Help
[RELEASE] Texture Cache Maintenance utility17