Kodi Segmentation Fault error
-
Hello,
I´m using Retropie 4.6 and installed Kodi from Retropie Setup. Kodi opens fine but when I exit from Kodi I get an error "segmentation fault (core dumped)" and come back to Kodi. When I exit from Kodi (the second time). It appears again EmulationStation. Not sure why is happening this.
Here is the Kodi crash log:
Kodi Crash Log in Google Drive
Any ideas?
-
Try increasing gpu_mem to 320
-
And if you start Kodi, and exit right away, not letting it fully load, that may happen. By your log it appears that it was what you did.
-
Thanks for your answer, I tried the gpu_mem=320 and let Kodi opened for 10 minutes, but the error is still there. I reinstalled it, but the problem remains
-
Try with clean settings. Close Kodi, remove /home/pi/.kodi and start it again. It can be one of your joysticks also, so try without any connected. If the problem persists, I don't know, the crashlog mentions some CEC error. It can be your SD Card also.
-
@Rascas said in Kodi Segmentation Fault error:
CEC
I disabled CEC in Kodi and the problem is no more now, the SD is fine.
But I have a message after I exit from Kodi: [E] invalid arguments ´ ´
Any idea about that?
Thanks.
-
@pindapoe said in Kodi Segmentation Fault error:
@Rascas said in Kodi Segmentation Fault error:
CEC
I disabled CEC in Kodi and the problem is no more now, the SD is fine.
But I have a message after I exit from Kodi: [E] invalid arguments ´ ´
Any idea about that?
Thanks.
I can confirm CEC support is causing a segmentation fault on exiting KODI still on retropie 4.6 (thanks for the fix btw).
-
@domb84 said in Kodi Segmentation Fault error:
@pindapoe said in Kodi Segmentation Fault error:
@Rascas said in Kodi Segmentation Fault error:
CEC
I disabled CEC in Kodi and the problem is no more now, the SD is fine.
But I have a message after I exit from Kodi: [E] invalid arguments ´ ´
Any idea about that?
Thanks.
I can confirm CEC support is causing a segmentation fault on exiting KODI still on retropie 4.6 (thanks for the fix btw).
Just to add to this Kodi is useless without CEC ultimately, unless you're desperat to setup some sort of third party USB remote or use your phone I suppose. But given theres a remote with the TV it seems easier to use that. Would be great if theres a fix for this.
https://github.com/Pulse-Eight/libcec/issues/476
Might need a new build of cec client and trying hdmi port 0 according to this?
-
@domb84 You should be using HDMI 0 port which is the one closer to the USB-C port.
A new version of libcec will only be available when Kodi 19 reaches stable. But you can always compile a newer version and try it. -
@Rascas attempted to build libcec 6 but no joy. kodi fails to start... however, it's fixed in 4.0.5!
https://github.com/Pulse-Eight/libcec/blob/master/docs/README.raspberrypi.md
sudo apt-get update sudo apt-get install cmake libudev-dev libxrandr-dev python3-dev swig git -y cd /home/pi git clone https://github.com/Pulse-Eight/platform.git mkdir platform/build cd platform/build cmake .. make sudo make install cd /home/pi git clone https://github.com/Pulse-Eight/libcec.git --branch libcec-4.0.5 mkdir libcec/build cd libcec/build cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib .. make -j4 sudo make install sudo ldconfig rm /usr/lib/arm-linux-gnueabihf/libcec.so.4 ln -s /usr/local/lib/libcec.so.4.0.5 /usr/lib/arm-linux-gnueabihf/libcec.so.4
-
Actually found the source of my general issues with Kodi on the Rpi4. Overclocking / over voltage. I had no issues with retropie and any emulator at 2100/750 and overvolting to 6. Kodi hates any overclock at all. Kills network, kills video. Pretty much the only thing that is stable is the base clock.
-
CEC works fine for me on Kodi on Retropie 4.6 (Raspbian Buster) on a rpi3 without changes / custom libs.
-
@BuZz Yes, it also works fine for me on any RPi version. Almost all problems that I see like this are because of overclocking or an AV Receiver in the middle.
-
@Rascas I’ve removed all over clocking, am using hdmi 0 and no amp and I’m still get set faults constantly with Kodi. I’ve now stopped using it. Assume it comes from the Kodi repo and not built by RetroPie so not a lot that can be done unless there’s something odd with the RetroPie OS, but it’s unstable to the point of being unusable. Shame as I thought the later build of ceclib had rectified my issues.
-
@domb84 Kodi works just fine on Raspbian at least. If there is a problem it is on the RetroPie side and not on Kodi. A complete debug log is needed for more information:
https://kodi.wiki/view/Log_file -
@Rascas Kodi 18.6 or 7 acted funny with this, exiting or playing music did some crazy music playback also some things like ogv files not working, idk I haven't asked theses cos we got updated I think we have a new update and hopefully nothing broken.
Do you happen to know why ogv files basicly theirs not working?, I get a crash black screen then restarts I have the log but I need to upload to report this.
-
@notthesame ogg, flac, mp3... all works fine. No log, no problem.
-
@Rascas https://pastebin.com/NKKrUPfj
here my crash log ogv? not sure whats up, maybe i miss something and this is a new image thanks. -
@Rascas I'll reproduce and get some debug logs over!
-
My installation got completely destroyed with a kernel update that corrupted the boot partition for some reason. Since then, I've re-imaged the SD card again, updated all RetroPie packages and made sure not to update and kernel packages.
Installed kodi through the retropie packages which is 18.7 I believe. This is now working without issue!
There is an update to kodi available, perhaps the CEC issue is introduced with 18.8? Or maybe a kernel issue.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.