Solved Kodi 18.4 on RPi3B Segmentation fault after scanning Video library
#1
Hi,

  I have compiled the latest Kodi 18.4 release on RPi3B (softfp) using the latest RPi binary loader, kernel and RPi libraries.

  When I start Kodi for the first time it works fine and can play any video/streaming content I set it to play...(as a matter of fact it is working perfectly thereafter provided you don't do anything else with it)

  Once I set the content of a source folder to Movies using Local Information and hit scan for new contents, it does go through the usual library scanning process identifying sources etc. without issues. Fast forward this story...I stop the scanning process and hit Backspace a few times to get to the Home screen. At this point, Kodi crash (Extended Kodi Crash Log) and crash thereafter on startup. The only way to make it useable again is to remove MyVideos116.db and let it be recreated.

  This issue has been bugging me for a few weeks now, so I have compiled the kodi-rbpi binary in Debug mode and run GDB on the core dump thrown (GDB Core Dump). It doesn't mean much to me, apart from that there is something going on in frame #4, hopefully, someone else has a better understanding as to what that means and how it can be resolved.

Thanks again,
K4fros
Reply
#2
I wonder if this bug is similar to the one described in https://trac.kodi.tv/ticket/16609

I will try compiling Kodi with -O1 and/or -O0 as recommended in the ticket literature to see if that circumvents the crash.

K4fros
Reply
#3
It turns out it is the same bug mentioned in https://trac.kodi.tv/ticket/16609. So it is still present when using gcc-5.5.0 to compile Kodi 18.4 on arm (Krypton didn't seem to have the same issue - or maybe it's one of those elusive hit and miss bugs)

Applying the patch mentioned in the ticket url http://forum.kodi.tv/showthread.php?tid=...pid2364829 solved the issue.

Unfortunately I cannot confirm if it also works by removing/reducing the optimisation flag to lesser than -O2. It is quite troublesome setting that in the "new" CMAKE world; not without patching the CMakeLists.txt anyway...

K4fros
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi 18.4 on RPi3B Segmentation fault after scanning Video library0