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 2.4k 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.
    • DTEAMD
      DTEAM
      last edited by DTEAM

      Hi @mitu ,

      Since MAME 0.262 or 0.261 released, i'm not able to run .chd games. The other users such as @folly didn't not have this issue. It's probably only on my side. I'm on a Pi4 (4 GB), MAME 0.262, retropie from your website (image) with the latest updated version. thanks . Best regards

      Here's the runcommand.log
      https://pastebin.com/0MKPMW4v

      Here's the line 1334 from runcommand.sh
      Capture1.PNG

      Here's my dev folder with tty file ( 0 kb) is it normal?
      Capture.PNG

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

        Please use pastebin.com for large text logs.

        For any support topic, please add the info requested in https://retropie.org.uk/forum/topic/3/read-this-first.

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

          @mitu

          Pi Model or other hardware: Pi 4 (4 GB)
          Power Supply used: (If using a Pi) for Handheld console (homemade) , Power Supply ---> https://www.amazon.ca/dp/B0C5QJ71FP?ref=ppx_yo2ov_dt_b_product_details&th=1
          RetroPie Version Used 4.8.6
          Built From: Pre made SD Image on RetroPie website
          USB Devices connected: TeensyLc (as gamepad)
          Controller used: TeensyLc (as gamepad)
          Error messages received: /opt/retropie/supplementary/runcommand/runcommand.sh: line 1334: 1590 BUS error
          Verbose log (if relevant): https://pastebin.com/0MKPMW4v
          Guide used: (Mention if you followed a guide) yes
          File: (File with issue - with FULL path) /opt/retropie/supplementary/runcommand/runcommand.sh or dev/tty
          Emulator: (Name of emulator - if applicable) MAME and lr-mess

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

            I don't see an error when opening the .chd file my MAME, the error is much later, when the emulation starts.

            What makes you think it's a CHD that's causing the issue here ? If you start a game without a CHD, for the same system/driver, does it work ? Is your .chd correct - did you validate it against the MAME's software list with a ROM manager or with chdman ?

            DTEAMD 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 ):

              If you start a game without a CHD, for the same system/driver, does it work ?

              Yes

              I ran those games without softlist (without Hash files) . I never had issue in the past. . I tried with MAME files. Same result.
              I got this on my screen:
              thumbnail_IMG_7145.jpg

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

                I'll give it a test, may be 32bit related.

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

                  @mitu

                  Seems I have the same problem loading acadecl.chd on cdimono1.
                  Just tested many old mame versions, mame 0255 seems the last version it still worked on.
                  It's the regular 32 bits mame binary used on RPI4

                  Not sure why it worked the last time.
                  It might be that I tested it on a 64 bits version.
                  Will have a look.

                  Edit :
                  Just tried on the RPI5 with 64 bits mame version 0262.
                  No problem, it just works.

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

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

                    Just tried on the RPI5 with 64 bits mame version 0262.
                    No problem, it just works.

                    Yes, I know, that's why I said it's maybe 32bit related.

                    1 Reply Last reply Reply Quote 1
                    • 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
                                            • 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.