Frontend Tech + >> MAMEUI & IV/Play
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

bacchuspup
MAME Fan
Reged: 05/21/16
Posts: 4
Send PM


MAME crashes on exit when controller not plugged in
#354897 - 05/29/16 08:16 AM


Hi all... hopefully, someone can give me some guidance.

I've got my default controller settings in MAME set up for two X360 controllers and my X-Arcade Tankstick. Everything works fine so long as both X360 controllers are plugged in. If only one of the X360 controller is in, though, MAME crashes on exit and gives me the following message:

"Caught unhandled St11logic_error exception:
basic_string::_M_construct null not valid"

I wouldn't care, except when this happens, it erases my custom controller settings. I don't want to have to keep my second X360 controller plugged in at all times, nor do I want to have to use my backup Cfg file every time I use MAME.

Anyone know what might be causing this?

I first noticed this using MAMEUIFx64 0.171 as my frontend, but the same thing is happening on MAMEUI.

Thanks!!!



RobbbertModerator
Sir
Reged: 08/21/04
Posts: 3193
Loc: A long way from you
Send PM


Re: MAME crashes on exit when controller not plugged in new [Re: bacchuspup]
#354898 - 05/29/16 08:28 AM


-



bacchuspup
MAME Fan
Reged: 05/21/16
Posts: 4
Send PM


Re: MAME crashes on exit when controller not plugged in new [Re: Robbbert]
#354899 - 05/29/16 08:57 AM


I just tried it on Mame 0.174, and the same thing is happening.

I'm trying to narrow it down to the exact circumstances where this is occurring. It only seems to happen when I've got 1 player mapped to one X360 controller, and a second player mapped to another X360 controller. Then if I exit, unplug the second controller, and go back into Mame, it works fine. Until I hit Esc. That's when I get the error message and my controller configurations get reset.

This doesn't happen if I map player 1 to the X360 controller, and player 2 to my X-Arcade Tank Stick. If I unplug the Tank Stick and restart MAME, I can go into a game, play as one player, hit ESC, and nothing bad happens - I just get back into MAME.

So this seems weirdly specific to having two X360 controllers.

Edited by bacchuspup (05/29/16 09:06 AM)



RobbbertModerator
Sir
Reged: 08/21/04
Posts: 3193
Loc: A long way from you
Send PM


Re: MAME crashes on exit when controller not plugged in new [Re: bacchuspup]
#354903 - 05/29/16 01:28 PM


-



mcx997
MAME Fan
Reged: 04/05/16
Posts: 31
Send PM


Re: MAME crashes on exit when controller not plugged in new [Re: bacchuspup]
#356264 - 07/07/16 01:21 PM


The same applies to MAMEUI/FX v175. It occurs only when we mapped in cfg\.cfg file for non-existing pad (does not exist when we use mappings at global level via ctrlr\.cfg).



mcx997
MAME Fan
Reged: 04/05/16
Posts: 31
Send PM


Re: MAME crashes on exit when controller not plugged in new [Re: bacchuspup]
#356292 - 07/08/16 04:33 PM


Does anyone know, how to move some specific mappings from cfg\.cfg to ctrlr\.cfg file ?

It's easy for most of systems if it uses simple buttons, like:
port type="COIN1" , port type="P1_BUTTON1" , port type="P1_JOYSTICK_UP".

But it's not so easy for more complicated entries from cfg\.cfg files, examples:

port tag=":BIOS" type="SERVICE" mask="2" defvalue="0"
(for Playchoice-10)

port tag=":ADC.0" type="P1_PADDLE" mask="255" defvalue="128"
(for Super Hang-On)

I'm asking for this due to MAME crashes if no XBOX pad connected and a game has mappings saved in cfg\.cfg file. I would like to move these "complicated" entries to global ctrlr\cfg file to prevent crashes, but I don't know syntax for these. There are more complicated entries, asking for those 2 for reference. Please help



Bakinthegame
MAME Fan
Reged: 09/28/16
Posts: 1
Send PM


Re: MAME crashes on exit when controller not plugged in new [Re: bacchuspup]
#359046 - 09/28/16 09:52 AM


Hi all - I have a similar problem - I get the same error message on MAME.

I adjust the keyboard settings which act as my arcade controls & it works fine when I'm in the game but as soon as I exit it crashes (80% of the time) & the other 20% of the time it will crash on re-entry into the game.

I can't find much info on this error & am at a loss to fix it!???

Any insight would be much appreciated as this is killing my arcade dream at the final hurdle after man many hours building the thing!

I have no Xbox controller - I am merely adjusting the keyboard settings

Edited by Bakinthegame (09/28/16 09:53 AM)


Pages: 1

Frontend Tech + >> MAMEUI & IV/Play
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  John IV, Robbbert 
1 registered and 17 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3696