Kodi Community Forum

Full Version: [LibreELEC] Kodi crashes and restarts when trying to scan series library
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have already wiped /storage/ (where LibreELEC stores everything: cache, configuration etc) to start with a clean slate, but I'm still running into this and no idea why. This is LibreELEC stable (9.2.0, Kodi 18.5).

The databases are handled by MariaDB on my home server. When LibreELEC starts, I can browse my media just fine (in the library view). Updating e.g. the movie library works fine, but once I tell Kodi to update the series library, it crashes. I thought maybe the fact I was using TheTVDB might be an issue, but switching to TheMovieDB-TV shows the same behaviour.

Crashlog (debugging enabled) is here.
For what it's worth: this only seems to happen when Kodi finds new files. If I tell Kodi to re-scan for new content on a series folder with new content, then it consistently crashes. When I tell it to re-scan a folder containing no new files (so everything is in the library already), it doesn't crash.
Can you post the contents of Vikings.S06E03.Ghosts.Gods.and.Running.Dogs.HD.TV-AVS.nfo to Kodi Paste Site.
Ok, found the problem and is caused by nfo files not full compatible with Kodi. Which manager are you using? Sickbeard / Sickrage?

xml:
<ratings>
<rating default="" max="10" name="thetvdb">
<value>0</value>
<votes>11561</votes>
</rating>
</ratings>

Notice the default item is missing its value which should either be true or false

I don't know why it crashes and it is very ungraceful of Kodi to crash on such a minor ommission. Maybe @spiff would know?

To avoid the crashing problem, either add true or false. There can only be one "true" so add "false" if a "true" value already exists in another rating. I guess you will have no "true" anywhere, so make sure there is only one and the others are "false"

Could you also create an Issue report on github thanks...
Thanks a lot @Karellen! I'm using SickGear, it's a SickBeard fork yeah. I just grepped my whole series folder for empty default="" settings and all those Viking episodes (S06E03 and up) came up as hits - along with 2500+ others Shocked. It seems they already know there's something messed up - this commit looks related.

I'm including the regex in case someone else bumps into this.

bash:
$ find . -name "*nfo" -exec sed -i '/rating/s|default=""|default="true"|' {} \;

I'm very happy to say this seems to fix it. A new library scan doesn't kill Kodi anymore!

Edit: you'd like me to report a bug here, correct?
Great that you were easily able to update your files.

I was so quick to recognise the problem as I was discussing the issue here a couple of days ago... https://github.com/SickGear/SickGear/iss...-573330382
Are you able to create an Issue report?
Yes will do so, have a Github account. Just read through the comment thread you linked from SickGear as well.
@Karellen Bug filed here. Hope it's OK like that. Thanks for your help.
Thanks @spiff!