Kodi Community Forum
Rebuilding image cache fails? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+---- Forum: TinyMediaManager (https://forum.kodi.tv/forumdisplay.php?fid=204)
+---- Thread: Rebuilding image cache fails? (/showthread.php?tid=344111)



Rebuilding image cache fails? - Nerls - 2019-05-22

I have 8 GB RAM in my Notebook, Win 10. When TMM rebuilds the image cache after updating (not scrapging) one data source having a folder (with movies in movie folders each) containing 300 movies it obviously does it to the end, when it does the same for 2500 movies in a folder a message appears after some time, like something went wrong, java heap or so.

Image

Image

Image

Obviously that causes, that fan art, movie images are not shown.

Is there any setting I could adapt in TMM to make it work correctly?


RE: Rebuilding image cache fails? - mlaggner - 2019-05-23

caching the images is really cpu/memory intensive; just tested it on my machine and got the heap error sometimes.. but only when trying to display the image?! 
I do not know if we are able to enhance that since memory management is solely being done by the Java runtime; we just may swallow the out of memory exceptions...


RE: Rebuilding image cache fails? - Nerls - 2019-05-23

So there is not anything I could do, I assume. Is there a possibilty to rebuild the cache partially, e.g. for the 2500 movies folder one could (manually) split those movies and rebuild the cache for the first 500 movies, then the next 500 movies and so on (may be there is a way to implement such in TMM). So may be the method would not use that much memory at the same time.

How much memory has to be shown free in the Task Manager (with my settings above in TMM) to make TMM rebuild the image cache correctly?


RE: Rebuilding image cache fails? - mlaggner - 2019-05-23

I've built a out of memory handling for v3 right now and it should throttle cache building when a memory bottleneck has been detected..
btw: you can just restart the rebuild at any time. IIRC it will just rebuild missing images


RE: Rebuilding image cache fails? - Nerls - 2019-05-23

Quote:I've built a out of memory handling for v3 right now and it should throttle cache building when a memory bottleneck has been detected..
That sounds great, thank you.
Quote:btw: you can just restart the rebuild at any time. IIRC it will just rebuild missing images
Ah, I didn't know it, I thought when it fails once it will fail the next time as well. So only missing images are rebuild not already (in the cache) existing ones, that means when I click "rebuild image cache" in "Tools" after the first fail (that heap error) the next images are cached and so on, so I just click "rebuild image cache" as often until the cache is rebuilt completely?

How much memory has to be shown free in the Task Manager (with my settings above in TMM) to make TMM rebuild the image cache correctly?