• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Kodi Segmentation Fault error

Scheduled Pinned Locked Moved Help and Support
kodisegmentationfault
25 Posts 5 Posters 4.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    pindapoe
    last edited by 10 Jun 2020, 21:07

    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?

    1 Reply Last reply Reply Quote 0
    • R
      Rascas
      last edited by 10 Jun 2020, 22:20

      Try increasing gpu_mem to 320

      1 Reply Last reply Reply Quote 0
      • R
        Rascas
        last edited by 10 Jun 2020, 22:23

        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.

        1 Reply Last reply Reply Quote 0
        • P
          pindapoe
          last edited by 10 Jun 2020, 23:03

          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

          1 Reply Last reply Reply Quote 0
          • R
            Rascas
            last edited by Rascas 6 Nov 2020, 00:09 10 Jun 2020, 23:07

            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.

            1 Reply Last reply Reply Quote 0
            • P
              pindapoe
              last edited by 13 Jun 2020, 21:48

              @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.

              D 1 Reply Last reply 15 Aug 2020, 11:12 Reply Quote 0
              • D
                domb84 @pindapoe
                last edited by 15 Aug 2020, 11:12

                @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).

                D 1 Reply Last reply 15 Aug 2020, 16:05 Reply Quote 0
                • D
                  domb84 @domb84
                  last edited by domb84 15 Aug 2020, 16:05

                  @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?

                  R 1 Reply Last reply 15 Aug 2020, 17:37 Reply Quote 0
                  • R
                    Rascas @domb84
                    last edited by 15 Aug 2020, 17:37

                    @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.

                    D 1 Reply Last reply 19 Aug 2020, 19:07 Reply Quote 0
                    • D
                      domb84 @Rascas
                      last edited by domb84 19 Aug 2020, 19:07

                      @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
                      
                      1 Reply Last reply Reply Quote 0
                      • D
                        domb84
                        last edited by domb84 19 Aug 2020, 20:11

                        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.

                        1 Reply Last reply Reply Quote 0
                        • B
                          BuZz administrators
                          last edited by BuZz 20 Aug 2020, 05:38

                          CEC works fine for me on Kodi on Retropie 4.6 (Raspbian Buster) on a rpi3 without changes / custom libs.

                          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                          R 1 Reply Last reply 20 Aug 2020, 14:15 Reply Quote 0
                          • R
                            Rascas @BuZz
                            last edited by 20 Aug 2020, 14:15

                            @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.

                            D 1 Reply Last reply 23 Aug 2020, 13:59 Reply Quote 0
                            • D
                              domb84 @Rascas
                              last edited by 23 Aug 2020, 13:59

                              @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.

                              R 1 Reply Last reply 24 Aug 2020, 08:22 Reply Quote 0
                              • R
                                Rascas @domb84
                                last edited by 24 Aug 2020, 08:22

                                @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

                                N D 3 Replies Last reply 24 Aug 2020, 11:24 Reply Quote 0
                                • N
                                  notthesame @Rascas
                                  last edited by 24 Aug 2020, 11:24

                                  @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.

                                  R 1 Reply Last reply 24 Aug 2020, 12:57 Reply Quote 0
                                  • R
                                    Rascas @notthesame
                                    last edited by 24 Aug 2020, 12:57

                                    @notthesame ogg, flac, mp3... all works fine. No log, no problem.

                                    N 1 Reply Last reply 24 Aug 2020, 16:01 Reply Quote 0
                                    • N
                                      notthesame @Rascas
                                      last edited by 24 Aug 2020, 16:01

                                      @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.

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        domb84 @Rascas
                                        last edited by 25 Aug 2020, 07:51

                                        @Rascas I'll reproduce and get some debug logs over!

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          domb84
                                          last edited by 29 Aug 2020, 15:32

                                          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.

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post

                                          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.

                                            [[user:consent.lead]]
                                            [[user:consent.not_received]]