2018-04-02, 21:35
Hello everyone,
First of all, sorry for the newbie question. My apologies if it has been asked before - I could find similar issues, but not quite identical, and no hints for a solution. I have a large collection of 22.000 rare movies on my NAS, mostly ripped by myself from my huge VHS collection. I was thinking of using Kodi for a nice GUI, both on my Windows 7 64-bit machine (and on my Raspberry Pi 3B+ - but this is not the subject of the present post). So I started experimenting, created almost 20.000 NFO files containing the imdb links to help the universal movie scraper and started scraping with Kodi v17.6
Everything went smoothly, and it took about 3-4 days to scrape everything. I lost network connection a couple of times, but scraping restarted normally.
For the first couple of days, everything went great. But now it has become completely unstable. I can start KODI but it usually crashes after about one minute, whatever I'm doing with KODI at the time (or even if I don't do anything). Once in a while, it starts correctly and can use it for a couple of hours.
The movie107.db database is about 320 MB. Textures13.db is 26 MB. I disabled the library updates from automatically starting, but it still crashes.
Should it be stable with such a large collection? At the time of the crash, memory usage is about 1GB (but I still have plenty of RAM left on my 8 GB machine).
Here's a log when Kodi crashed after a minute without my doing anything with it - https://pastebin.com/HnTYY5sG
Here's a log when Kodi crashed after I used the gUI for a short while - https://pastebin.com/KPxRXW1W
It's clearly related to the content of the database - if I move the content of the database folder out of the way and restart a "clean" Kodi, it works perfectly again.
I made a couple of (newbie) hypotheses - for what they're worth:
1. Memory allocation and out-of-memory errors
In the second log, there are memory allocation issues, but not in the first. I suspected a memory issue, but then I carefully inspected memory usage when starting Kodi and waiting for it to crash : memory footprint increases quickly up to 1.5 GB, then decreases to about 300 MB, then crashes.
2. Something wrong inside the database
I made a copy of the textures and movie databases and explored it more or less thoroughly with sqlitestudio - seems ok. Maybe something with the thumbnail cache, though. Maybe some art cannot be pulled from cache, or is corrupted. Should I try and clean the thumbnail cache completely and wait for it to be rebuilt?
Thanks for your help
First of all, sorry for the newbie question. My apologies if it has been asked before - I could find similar issues, but not quite identical, and no hints for a solution. I have a large collection of 22.000 rare movies on my NAS, mostly ripped by myself from my huge VHS collection. I was thinking of using Kodi for a nice GUI, both on my Windows 7 64-bit machine (and on my Raspberry Pi 3B+ - but this is not the subject of the present post). So I started experimenting, created almost 20.000 NFO files containing the imdb links to help the universal movie scraper and started scraping with Kodi v17.6
Everything went smoothly, and it took about 3-4 days to scrape everything. I lost network connection a couple of times, but scraping restarted normally.
For the first couple of days, everything went great. But now it has become completely unstable. I can start KODI but it usually crashes after about one minute, whatever I'm doing with KODI at the time (or even if I don't do anything). Once in a while, it starts correctly and can use it for a couple of hours.
The movie107.db database is about 320 MB. Textures13.db is 26 MB. I disabled the library updates from automatically starting, but it still crashes.
Should it be stable with such a large collection? At the time of the crash, memory usage is about 1GB (but I still have plenty of RAM left on my 8 GB machine).
Here's a log when Kodi crashed after a minute without my doing anything with it - https://pastebin.com/HnTYY5sG
Here's a log when Kodi crashed after I used the gUI for a short while - https://pastebin.com/KPxRXW1W
It's clearly related to the content of the database - if I move the content of the database folder out of the way and restart a "clean" Kodi, it works perfectly again.
I made a couple of (newbie) hypotheses - for what they're worth:
1. Memory allocation and out-of-memory errors
In the second log, there are memory allocation issues, but not in the first. I suspected a memory issue, but then I carefully inspected memory usage when starting Kodi and waiting for it to crash : memory footprint increases quickly up to 1.5 GB, then decreases to about 300 MB, then crashes.
2. Something wrong inside the database
I made a copy of the textures and movie databases and explored it more or less thoroughly with sqlitestudio - seems ok. Maybe something with the thumbnail cache, though. Maybe some art cannot be pulled from cache, or is corrupted. Should I try and clean the thumbnail cache completely and wait for it to be rebuilt?
Thanks for your help