lr-mame2003 - enter key now crashes emulator, used to be fine. Any ideas?
-
Hi,
Strange one, mame2003 been working great for over a year, I use it for maybe half of my roms. I have a Picade, configured as a joystick, but two of the side buttons are configured as the enter key and escape respectively.
I have all my emulators configured so that hotkey (in my case select) + escape quits, and hotkey + enter resets the game.
This still works in all other emulators, but in mame2003 pressing the enter key in any fashion now terminates/crashes the emulator.
I hooked up a keyboard to check and the same thing happens.
I believe this might have started occurring since all the commits made to controller bindings back at the beginning of September?
Does anyone else have this issue?
I have tried removing default.cfg so it creates a new one, no difference. If I change the Retroarch config so reset is something else, it still crashes when enter is pressed. Before I totally remove the emulator and reinstall, I am just wondering if anyone else has this or if it is something only I am experiencing. @dankcushions perhaps you could advise if you have a free moment?Just to elaborate on what happens, pressing enter doesn't just 'quit' gracefully, it crashes the emulator in some way. It displays the command line and bash welcome tweak for a moment, then quits back to emulationstation. However because something has terminated unexpectedly, if I then go to launch any of the scripts, such as the setup script, the GUI doesn't update when you move up and down, etc (not sure how to explain that!). Only way to fix is to restart the Pi.
Just to reiterate, this doesn't happen in any of the other emulators, FBA, mame4all, other consoles etc are all good. Just mame2003, but it used to be ok.
Any help appreciated.
Thanks!
-
Just an update, removed and reinstalled from binary, and still the issue persists.
Does no-one else have this?
Even if the Enter key is not bound to anything, it still crashes the emulator when pressed.
Cheers!
-
It's possible you have the 'Enter' key bound to an 'Exit' function, either in the 'Tab' menu of MAME itself, or possibly RetroArch with hotkeys turned off.
-
Thanks for the response. It doesn't appear to be anything like this - everything is all ok in the other retroarch emulators, they all use the same config. Hotkeys are enabled and everything else works. Pressing enter essentially crashes / terminates the emulator, it doesn't exit in the same way my actual exit button does (hotkey+escape).
I am still investigating/troubleshooting where the issue might lie, it's very strange.
Cheers
-
@movisman retroarch configs can be per-core. your issue must be in one or more of the following files:
/opt/retropie/configs/mame-libretro/retroarch.cfg
(there will be aretroarch.cfg.rp-dist
backup of the default settings you can replace it with)
/opt/retropie/configs/all/retroarch-core-options.cfg
(harder to revert, as this is shared with all RA cores.. look for mame2003 and delete anything that looks related)
/home/pi/RetroPie/roms/mame-libretro/mame2003/cfg/default.cfg
(you say you've already deleted this)(these are all assuming your roms are in the mame-libretro folder, not arcade)
-
Cheers for that. Actually this evening I have done all those things already but it still crashes the emulator when pressed.
I renamed my rp-dist config to retroarch.cfg temporarily so it uses the original skeleton file, and renamed my core options file so it used the defaults, but still no difference. Indeed I did already remove my default.cfg.
My specific core config file (retroarch.cfg) doesn't have any customisations in it at all.
It's really quite strange that it only happens in mame2003 though and not the other emulators.
I have even replaced the .so file with an older one from a backup (end of August) just to rule out any commits and it still crashes.
FBA, Mame4all and all my other emulators are all good though. Such a bizarre thing.
-
@movisman said in lr-mame2003 - enter key now crashes emulator, used to be fine. Any ideas?:
everything is all ok in the other retroarch emulators, they all use the same config.
It's really quite strange that it only happens in mame2003 though and not the other emulators.
Could you have inadvertently mapped an exit function in the native MAME menu that is invoked by the 'Tab' key?Edit: Just noticed that you've ruled that out.
-
@movisman ok, you're not crazy! :) i get this exact issue. i will investigate now...
-
Phew! I was running out of ideas so i'm glad you have seen this too.
I knew it was a bizarre thing, because my configuration hasn't changed for such a long time now. I deliberately make sure all my config is clean and tidy. I don't have any old config hanging around because I started again from a fresh 4.0 a while back, and manually copied the necessary config across to cut down on any mess left from previous versions.Like I say, it was working ok but i'm not exactly sure when the issue started. I just happened to notice it.
Let me know if you want me to do any testing if you manage to find anything...
As you will notice, it crashes the emulator (it doesn't quit), and then the terminal is knackered afterwards - anything related to it like the RetroPie-Setup GUI doesn't refresh and if you quit emulationstation there is a lot of nonsense output in the terminal window.
Cheers
-
ok this is interesting. what it looks like is happening is that the keyboard is still issuing commands to the terminal (or script) running in the background. if i run mame2003 directly (or through GDB) it doesn't react to pressing enter, but if i run it via the runcommand (specifically, via emulationstation) it quits out:
/opt/retropie/supplementary/runcommand/runcommand.sh: line 855: 1257 Quit /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so --config /opt/retropie/configs/arcade/retroarch.cfg "/home/pi/RetroPie/roms/arcade/88games.zip" --appendconfig /dev/shm/retroarch.cfg
however, if i run it directly from the terminal (
/opt/retropie/emulators/retroarch/bin/retroarch --config /opt/retropie/configs/all/retroarch.cfg --appendconfig /opt/retropie/configs/arcade/retroarch.cfg -L /opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so /home/pi/RetroPie/roms/arcade/88games.zip
), it doesnt quit but i can see my various keystrokes being logged within the terminal, which doesn't seem right. perhaps this is conflicting with the runcommand script, which is treating 'enter' as quit? it looks to me like the script itself is terminating mame, as there's neither a standard libretro core shut-down in the log, nor a segfault. paging @BuZz :)i'm not sure why this only affects lr-mame2003, though.
-
Yes, I was going to mention something about the keyboard as some of the output I spotted in the terminal when closing emulationstation was related to keystrokes / keymaps etc - this doesn't get logged in other emulators and never used to happen in 2003. I was just waiting until I got home later so I could do a copy/paste of some of the information rather than guessing the content, but you have already spotted it.
The terminal and any launching of scripts are also screwy after the emulator terminates via pressing enter. I guess this is maybe related to the runcommand script or something not being cleared, but i'm not too sure how that functions so don't want to cause more confusion.
Hopefully Jools will have some idea how to resolve!
-
@dankcushions terminal output happens when stdin isn't correctly attached to a tty. However runcommand should do this.
Do either of you have box art displaying on launch ? Try disabling that. I suspect it could be due launching FBI in the background, which is interfering (In which case I am going to have to revert to how it was before - launching just before we launch retroarch).
Alternatively it could be related to the upstream plymouth changes as they affect the ttys. Please make sure retropie-setup is up to date along with retroarch and lr-mame2003 emulators (and reboot).
-
Yeah looks like it is due to running FBI in the background - but please confirm if everything is fine disabling launch art and then reboot.
-
Genius - just to confirm that disabling launch art solves the issue completely for me, from what I can see?
Cheers
-
I will revert the backgrounding of the fbi call so it will be the old behaviour (the art show for 2 seconds, then the game loads).
-
Updated my script, re-enabled art and all is good now. Thanks a lot for your help as always, both @BuZz and @dankcushions.
I feared people were going to assume it was a configuration issue my side, so i'm glad you guys checked it out.
Cheers
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.