Re: ARpiCADE_5 - for Pi4 or Pi5
Posted: Thu Sep 19, 2024 3:42 am
That segfault is indeed the issue, that said I'm not sure why MAME would sometimes segfault and sometimes load fine... (possibly a 251 thing?). I know at least one game that segfaults after starting in 251 but it runs long enough I didn't see this sort of behaviour with the hotkeys (said game seems to be fine in 269).
I'm guessing it's also the cause of your extra xboxdrv(s). If MAME segfaults prior to the driver starting after the sleep the hotkeys won't be stopped as they are not yet up and running when the hotkeys stop command is issued in the launcher script - so you end up with extra instances.
I could slow down the return to the menu after MAME and stop the hotkeys a bit later in the script. Hopefully that way if MAME crashed during startup there would be time for the hotkeys to start before the attempt to stop them again.
I'm guessing it's also the cause of your extra xboxdrv(s). If MAME segfaults prior to the driver starting after the sleep the hotkeys won't be stopped as they are not yet up and running when the hotkeys stop command is issued in the launcher script - so you end up with extra instances.
I could slow down the return to the menu after MAME and stop the hotkeys a bit later in the script. Hopefully that way if MAME crashed during startup there would be time for the hotkeys to start before the attempt to stop them again.