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

    lr-genesis-plus-gx crashes with "Bus error"

    Scheduled Pinned Locked Moved Help and Support
    lr-genesis-plusbus error
    12 Posts 3 Posters 1.0k 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.
    • M
      Machtroid
      last edited by Machtroid

      Pi Model 4
      RetroPie Version 4.8
      Built From: Pre made SD Image on RetroPie website

      Hello, I just updated my RPi4 since I was a bit behind on my versions. I grabbed the RetroPie 4.8 image from the site and started fresh. Everything works great except for one emulator: lr-genesis-plus-gx. When I load a game using this emulator, the game will actually load and run for about 3-5 seconds and then kick me back to emulationstation. When I look at runcommand.log it shows the following:

      /opt/retropie/supplementary/runcommand/runcommand.sh: line 1314:  1326 Bus error               /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-genesis-plus-gx/genesis_plus_gx_libretro.so --config /opt/retropie/configs/megadrive/retroarch.cfg "/home/pi/RetroPie/roms/megadrive/Death and Return of Superman, The (USA).zip" --appendconfig /dev/shm/retroarch.cfg
      

      It's giving me a Bus error, however it is the only emulator that does this. I tried uninstalling and reinstalling from binary, but I get the same error. When I open the retroarch menu within the small window before it crashes, it shows that I am running version 1.15.0 - Genesis Plus GX (v1.7.4 9745432). I'm not sure what to do to resolve this error, and was hoping somebody might have some advice at what to look at.

      Cheers,

      Mach

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        If the same kind of error (game not running) happens also with lr-picodrive, then you may have a set of bad Megadrive ROMs. Otherwise, try re-installing the Genesis Pus GX core from source.

        M 1 Reply Last reply Reply Quote 0
        • M
          Machtroid @mitu
          last edited by

          @mitu I changed the emulator to lr-picodrive and the games run fine using this emulator. I also installed lr-genesis-plus-gx from source but it continues to crash shortly after loading a game. I know the simple solution is to use Picodrive going forward. Unfortunately all of my game saves are only compatible with Genesis Pus GX since that is the emulator I had always used previously. I am completely baffled by the error.

          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by

            Can you post a verbose log on pastebin.com ?

            M 1 Reply Last reply Reply Quote 0
            • M
              Machtroid @mitu
              last edited by

              @mitu Done! Here is what it output after a crash:

              https://pastebin.com/au0UWi0w

              1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator
                last edited by

                Nothing stands out in the log and I can't reproduce the error (with the same core version as yours).
                Can you try resetting the core options ? From /opt/retropie/configs/all/retroarch-core-options.cfg, delete all lines starting with genesis_plus_gx_.

                M 1 Reply Last reply Reply Quote 0
                • M
                  Machtroid @mitu
                  last edited by

                  @mitu I just started from scratch and re-mounted the image, copied a rom over and tested lr-genesis-plus-gx right out of the box and it worked fine. I then used the 'Update' option in the RetroPie Setup script which updated all installed emulators as well as updating the Raspbian packages. After doing this, I tested the rom again and lr-genesis-plus-gx crashed with the same error:

                  https://pastebin.com/sVAJrxAS

                  So something the with the update causes that specific emulator to get a bus error.

                  DarksaviorD mituM 2 Replies Last reply Reply Quote 0
                  • DarksaviorD
                    Darksavior @Machtroid
                    last edited by Darksavior

                    @Machtroid I also couldn't reproduce your problem. https://pastebin.com/AUFigpgk

                    I reinstalled the official pi4 RetroPie image and updated the Pi OS to the latest version. Then, I updated all core packages and GX from binary. I also fixed the temporary issue atm that made my controller unresponsive by adding arm_64bit=0to my /boot/config.txt and then it allowed me to reinstall the xpad driver.

                    I compared our logs and yours doesn't list the cpu. Maybe it's related to the controller problem so try that. Also try another microsd.

                    M 1 Reply Last reply Reply Quote 1
                    • mituM
                      mitu Global Moderator @Machtroid
                      last edited by mitu

                      @Machtroid Try adding arm_64bit=0 to your /boot/config.txt - as @Darksavior suggested - and reboot. I think the recent Raspi OS changes - see the pinned topic - may have an effect on the emulator.

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        Machtroid @Darksavior
                        last edited by

                        @Darksavior I had another sd card laying around so I tried the same thing on it - mounted the 4.8 image and tried Genesis GX out of the box and it worked, and once I updated through the setup script it crashed with the same error. Once I get home later I will try adding arm_64bit=0 to config.txt as you suggested and let you know the results. Thanks!

                        1 Reply Last reply Reply Quote 0
                        • M
                          Machtroid @mitu
                          last edited by

                          @mitu @Darksavior It worked! Adding arm_64bit=0 to my /boot/config.txt file fixed the problem! No more crashing with a bus error. Thanks to the both of you for the solution!

                          mituM 1 Reply Last reply Reply Quote 1
                          • mituM
                            mitu Global Moderator @Machtroid
                            last edited by mitu

                            @Machtroid Thanks for the confirmation. Btw, if you upgrade now (again) the OS packages, there's a new kernel & firmware update (20230509~buster-1) that should fix this and the config.txt change should not be necessary any-more.

                            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.