mGalaxy 7.6 Crashing on Game Exit Regularly

To get bugs fixed, please report them here.
User avatar
WishItWas1984
Sr. Member
Sr. Member
Posts: 98
Joined: Sat Apr 21, 2012 7:35 pm

As the subject says, I have mGalaxy 7.6 installed and it regularly crashes on exiting a game, BUT it only happens at the beginning of the rom load.

If I wait for the rom to fully load, then a few extra seconds...say, 5-10, then I can nearly always exit just fine.

Also, when I say "regularly" I mean that it happens often but not 100% of the time.
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

Hello, you have an error dialog to help debugging ?

Or better a debug log file ?
User avatar
WishItWas1984
Sr. Member
Sr. Member
Posts: 98
Joined: Sat Apr 21, 2012 7:35 pm

Aeliss wrote: Hello, you have an error dialog to help debugging ?

Or better a debug log file ?
I tried looking up how to set that up in mGalaxy but can't find anything. Can you point me to instructions to create a debug log?
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

The easy way : When mGalaxy crash, it close or you have a popup ? On some popup you can have more informations.
User avatar
WishItWas1984
Sr. Member
Sr. Member
Posts: 98
Joined: Sat Apr 21, 2012 7:35 pm

Aeliss wrote: The easy way : When mGalaxy crash, it close or you have a popup ? On some popup you can have more informations.
I have no problem doing it the hard way. I just don't know what settings or parameters to run mGalaxy in to trigger a log save.

As far as what you said, I get a popup that mGalaxy is no longer responding and asking me if I want to shut it down. That's it.
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

On the crash popup, you have not  a small link on bottom "view problem details" ?
User avatar
WishItWas1984
Sr. Member
Sr. Member
Posts: 98
Joined: Sat Apr 21, 2012 7:35 pm

Aeliss wrote: On the crash popup, you have not  a small link on bottom "view problem details" ?
No. Just "Close Program" and "Wait for Program to Respond"
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

Arf, so I see only the Event Viewer to use with eventvwr.msc but not sure the bug will be on it.
No files *.log on mGalaxy folder ?
User avatar
mgalaxy
Administrator
Administrator
Posts: 1190
Joined: Tue Dec 05, 2006 7:46 pm

WishItWas1984 wrote: As the subject says, I have mGalaxy 7.6 installed and it regularly crashes on exiting a game, BUT it only happens at the beginning of the rom load.

If I wait for the rom to fully load, then a few extra seconds...say, 5-10, then I can nearly always exit just fine.

Also, when I say "regularly" I mean that it happens often but not 100% of the time.
Does it happen with every emulator or only one...and which one please.
You'll find mGalaxy logs inside 'Data' folder.
Last edited by mgalaxy on Fri Jun 05, 2020 3:25 pm, edited 1 time in total.
User avatar
WishItWas1984
Sr. Member
Sr. Member
Posts: 98
Joined: Sat Apr 21, 2012 7:35 pm

mgalaxy wrote:
WishItWas1984 wrote: As the subject says, I have mGalaxy 7.6 installed and it regularly crashes on exiting a game, BUT it only happens at the beginning of the rom load.

If I wait for the rom to fully load, then a few extra seconds...say, 5-10, then I can nearly always exit just fine.

Also, when I say "regularly" I mean that it happens often but not 100% of the time.
Does it happen with every emulator or only one...and which one please.
You'll find mGalaxy logs inside 'Data' folder.
I only use mGalaxy for one emulator, MAME. Currently I'm running MAME 0.221

I forced the error to occur again and looked at the updated logs in Data. I only see two with an updated time stamp, but there's nothing inside. They each contain just one line...

mGalaxy.log - [05/06/2020 02:11:24 PM] [Info] mGalaxy started!
mg_integritycheck.log - [05/06/2020 02:11:24 PM] [Info] mg_integritycheck started!
User avatar
mgalaxy
Administrator
Administrator
Posts: 1190
Joined: Tue Dec 05, 2006 7:46 pm

WishItWas1984 wrote:
Aeliss wrote: On the crash popup, you have not  a small link on bottom "view problem details" ?
No. Just "Close Program" and "Wait for Program to Respond"
I believe that mGalaxy is not crashing...but simply waiting for Mame to quit!!
When you quit a game, and that mGalaxy seems crashing, call the "task manager" and check to see if you can find an occurrence of mame running or not!
Last edited by mgalaxy on Fri Jun 05, 2020 7:31 pm, edited 1 time in total.
User avatar
WishItWas1984
Sr. Member
Sr. Member
Posts: 98
Joined: Sat Apr 21, 2012 7:35 pm

mgalaxy wrote:
WishItWas1984 wrote:
Aeliss wrote: On the crash popup, you have not  a small link on bottom "view problem details" ?
No. Just "Close Program" and "Wait for Program to Respond"
I believe that mGalaxy is not crashing...but simply waiting for Mame to quit!!
When you quit a game, and that mGalaxy seems crashing, call the "task manager" and check to see if you can find an occurrence of mame running or not!
When this happens, Task Manager is not able to be seen. ALT+TAB stops working. I can select Task Manager with ALT+TAB, or any other application, but it won't switch out of mGalaxy.

Whatever is happening, it's definitely a combination of mGalaxy and MAME.

If I cause the mGalaxy "freeze" to happen, I was able to shutdown MAME via ALT+TAB. This allowed mGalaxy's menu screen to come back and mGalaxy was functioning again.

The problem is, if I run MAME by itself outside of mGalaxy, I can exit a game at any point and instantly get back to the MAME menu screen.

When you add mGalaxy, it doesn't work if you do it too quickly. Everything points to mGalaxy having a problem in this specific scenario, almost like it's frozen and preventing MAME from exiting.

User avatar
mgalaxy
Administrator
Administrator
Posts: 1190
Joined: Tue Dec 05, 2006 7:46 pm

Everything points to mGalaxy having a problem in this specific scenario, almost like it's frozen and preventing MAME from exiting.
I still believe that it's not a mGalaxy problem.
It is not 'freezing'!  When you launch a game mGalaxy enters a 'wait' state. It will 'awake' when the launched application has quit.
For one (unknown to me) reason I've the feeling that Mame doesn't quit normally. You could check it by calling the task manager (shortcut is Ctrl+Shift+ESC)..and see if you can still see a MAME instance.

A quick (and temporary) fix would be to launch Mame through a script. Here's the walk-through if you're interested in testing it:
Go to the "mGalaxy>Data>Script" folder, make a copy of the first one ("1964, 1964 UltraFast [Script]") and rename it "MAME"
Now, launch a Mame game in mGalaxy and report if it's still "freezing" please.
jmd
Elite Member
Elite Member
Posts: 207
Joined: Mon Feb 05, 2007 2:33 pm

@WISHITWAS1984
Any news? Just curious to know if you could find Mame process in the task manager and if the use of a script (as proposed in the previous post) fixed your problem
Last edited by jmd on Mon Jun 08, 2020 7:12 am, edited 1 time in total.
User avatar
WishItWas1984
Sr. Member
Sr. Member
Posts: 98
Joined: Sat Apr 21, 2012 7:35 pm

jmd wrote: @WISHITWAS1984
Any news? Just curious to know if you could find Mame process in the task manager and if the use of a script (as proposed in the previous post) fixed your problem
Sorry, was not able to do this over the weekend. I have this tab open and will definitely give it a shot as soon as I can.
Post Reply