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

    (Solved) MAME and lr-Mess issues with .chd files (1590 BUS error )

    Scheduled Pinned Locked Moved Help and Support
    lr-messmamechd
    23 Posts 4 Posters 3.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.
    • mituM
      mitu Global Moderator
      last edited by mitu

      I can see the error now on 32bit. It's probably caused by the recent changes to add support for zstd compression to CHD.
      I'll see if I can narrow the change that's causing this, but will probably take some time to bisect this since I don't have any fast(er) 32bit systems available.

      DTEAMD 1 Reply Last reply Reply Quote 2
      • DTEAMD
        DTEAM @mitu
        last edited by

        @mitu @Folly
        Thanks for your support!

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

          Can you try updating RetroPie-Setup and then doing a source installation for MAME ? This should solve the issue for the standalone emulator. This should also update MAME to the latest release (0.263).

          F 1 Reply Last reply Reply Quote 0
          • F
            Folly @mitu
            last edited by Folly

            @mitu

            Doesn't work.

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

              @Folly Did you install from source, from RetroPie's latest version ?

              F 1 Reply Last reply Reply Quote 0
              • F
                Folly @mitu
                last edited by Folly

                @mitu

                I did install from source but did not update to the latest RetroPie.
                Did you add a patch in the module-script ?

                Edit : I see you added libzstd-dev to fix it, Will try it again later.

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

                  I did install from source but did not update to the latest RetroPie.
                  Did you add a patch in the module-script ?

                  Please try again after getting the latest version or wait until the binaries with 0.263 are out.

                  DTEAMD 1 Reply Last reply Reply Quote 1
                  • G
                    grfc @DTEAM
                    last edited by

                    @DTEAM @mitu
                    Good morning! I just found this post, looking for help as I believe I have been experiencing similar issues, seemingly since I updated my lr-mame / mame versions to 0.262. I've been unable to make any CHD games work despite my best efforts and checking, double checking romsets via clrmamepro. In my runcommand.logs I have been seeing references to bus errors.
                    Additionally, last night, after trying to get Atomiswave .chd's to work (Animal Basket worked one time and then refused to load a second time, other Atomiswave .chd's I added after first successful run of Animal Basket also did not work (related??)) I shut down my Pi using Function & F10 as I normally do, and this morning I've used WinSCP to re-read my latest runcommand.log and in my dev/shm folder all I have is this:
                    4d146375-49f8-4b7f-afb9-495ebdc59ee5-image.png
                    And now in my dev folder, similar to the OP I have a bunch of .tty files created (seems to be the time I shut down last night) and additional files like the ones shown here: a3da8603-21fc-4ac2-b281-4e864c384e63-image.png
                    I'm running a Pi400.
                    I will follow this topic. Thank you.

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

                      @grfc said in MAME and lr-Mess issues with .chd files (1590 BUS error ):

                      And now in my dev folder, similar to the OP I have a bunch of .tty files created (seems to be the time I shut down last night) and additional files like the ones shown here:

                      These files have always been (and will be) there. They're called 'device files' and it's a way for the OS to expose various physical or virtual devices - see https://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/dev.html.

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        grfc @mitu
                        last edited by

                        @mitu Ok, thank you. In that case, I guess I just never noticed them before. And do you know what the "mono.497" file is, in dev/shm? (again, maybe that has always been there) More concerning for me is where my runcommand log file has gone, with the other files that were there with it...

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

                          @grfc said in MAME and lr-Mess issues with .chd files (1590 BUS error ):

                          More concerning for me is where my runcommand log file has gone, with the other files that were there with it...

                          /dev/shm is memory (RAM) backed, so any files in that location will disappear on a reboot/cold start. Nothing that's related to /dev or /dev/shm is causing the isue reported here. If you're concerned about something else on your system, then I advise you to open a separate topic.

                          G 1 Reply Last reply Reply Quote 0
                          • G
                            grfc @mitu
                            last edited by

                            @mitu Right, understood. I will continue to follow this topic, as I still think I have a similar issue to the OP, and you are right, I don't want to digress away from the original question. Thank you for your help.

                            1 Reply Last reply Reply Quote 0
                            • DTEAMD
                              DTEAM @mitu
                              last edited by

                              @mitu said in MAME and lr-Mess issues with .chd files (1590 BUS error ):

                              Please try again after getting the latest version or wait until the binaries with 0.263 are out.

                              I confirm, now it works with MAME 0.263 (from source) !!

                              Thank you so much

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

                                @DTEAM said in (Solved) MAME and lr-Mess issues with .chd files (1590 BUS error ):

                                I confirm, now it works with MAME 0.263 (from source) !!

                                OK, so now at least MAME works - thank you for testing.

                                FWIW, the change that seems to 'fix' it is the optimization level - the default one from MAME (3) seems to produce this alignment error, while we set the optimization level lower (2) in the RetroPie build.

                                I'll take a look at the libretro cores to see if we can apply the same optimizations.

                                G 1 Reply Last reply Reply Quote 2
                                • G
                                  grfc @mitu
                                  last edited by

                                  @mitu Hi, just a quick follow-up that downloading from source (MAME 0.263) has resolved this error for me as well. Thank you!

                                  1 Reply Last reply Reply Quote 0
                                  • F Folly referenced this topic on
                                  • 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.