Author Topic: The dreaded MAME black screen on exit  (Read 13840 times)

mrteeney

  • Newbie
  • *
  • Posts: 5
    • View Profile
The dreaded MAME black screen on exit
« on: November 09, 2018, 06:33:40 PM »
I have Attract Mode running MAME using the Game Station menu, and like many others I have the blank screen after exiting the MAME game and need to Ctrl-Tab back into Attract Mode.  I have the exact same setup on both my Windows 10 desktop (AMD FX, Radeon R9 380, 16GB RAM) and my arcade cabinet Windows 10 (Core 2 Duo, Integrated Graphics, 6 GB RAM).  I literally copied the MAME and Attract Mode folders from my desktop (paths are all the same), which doesn't have the problem, into my arcade setup.  I tried disabling focus, running the attract true black program, changing resolution etc. and it still happens.  I also changed the cancel buttons from MAME and Attract Mode to be different as I've read on another post (my desktop has both programs using escape as the cancel), and installed the newest version off Attract Mode, which sort of fixed the issue by only having to click a mouse button instead of alt-tabbing.  The only thing that seems to work is by displaying it in a window with the obnoxious title bar at top, borderless window setting results in the black screen.  I'm thinking this may be more of a video card issue, unfortunately the motherboard for my arcade machine only supports some old PCI-E graphics card which will not work in Windows 10.

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1274
    • View Profile
« Last Edit: November 10, 2018, 12:54:01 AM by progets »

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: The dreaded MAME black screen on exit
« Reply #2 on: November 11, 2018, 03:37:06 PM »
If you are running AM on the latest build of Windows 10 make sure you have disabled Focus Assist in Windows settings.

estefan3112

  • Full Member
  • ***
  • Posts: 35
    • View Profile
    • Retrogaming on my Mac
Re: The dreaded MAME black screen on exit
« Reply #3 on: November 11, 2018, 11:59:57 PM »
Same problem here in MacOS. Need to force-quite AM every single time. Tried all the potential workarounds with no help (even the Windowed mode, which always worked in the past, no longer works). Older MAME versions make no difference, and also a version 2.4.1 that worked before no longer works. Is this OS-related?

Renders Attract Mode more or less unusable for me for the time being.

mrteeney

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: The dreaded MAME black screen on exit
« Reply #4 on: November 12, 2018, 03:07:01 PM »
The strange thing is, every once in a while it will work on it's own (without changing anything).  I've tried all the above things along with the focus mode disabling, and maybe once out of every 100 game exits, it won't go to the black screen.  Like I said, my other desktop runs AM with no problems, the same version of MAME and the same AM config and settings.  I'm thinking this could be a video memory issue as my desktop has an 4GB Radeon card and my cabinet runs on the Intel integrated video (shared, maybe 512MB?).

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: The dreaded MAME black screen on exit
« Reply #5 on: November 12, 2018, 03:11:18 PM »
Does your theme use any swf files by any chance?

jimmer

  • Full Member
  • ***
  • Posts: 45
    • View Profile
Re: The dreaded MAME black screen on exit
« Reply #6 on: November 13, 2018, 07:51:57 AM »
2.0.0.cr2 is the ONLY version in the 2's that works properly on my arcade cabinet:  Win7 64bit SP1 aerotheme (necessary) Intel HD2000 integrated graphics.

Give it a go and report back. It could be a good clue for the developers.

mrteeney

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: The dreaded MAME black screen on exit
« Reply #7 on: November 14, 2018, 04:42:57 PM »
I've done it, I've finally done it, damn them all to hell!!! :) :) :)

I've tried everything and finally found a fix for this, at least with my setup.  If you go into the actual MAME config (Config menu, emulators, mame) you'll see an option that says 'Non-blocking Wait Mode', I changed this to 1 (or 2 if your system is slow) and with the latest version of AM, you'll see a quick blank screen (if you're running Attract True Black, if not, it's your desktop) followed by the AM menu!!  Now if I could just figure out how to run Attract True Black to not trigger the Windows UAC...

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: The dreaded MAME black screen on exit
« Reply #8 on: November 14, 2018, 05:11:50 PM »
Prio, it's an app that adds new functions to the task manager, including permanent elevation.

alucard

  • Full Member
  • ***
  • Posts: 37
    • View Profile
Re: The dreaded MAME black screen on exit
« Reply #9 on: November 16, 2018, 12:10:36 AM »
Without disabling UAC, you can create an elevated Scheduled Task runnable on demand.
I launch elevated frontend with
Code: [Select]
schtasks.exe /Run /TN BartopFrontend
It's a common way to bypass UAC for a specific process.

Elevated attract-mode launches also elevated sub processes.
« Last Edit: November 16, 2018, 12:25:51 AM by alucard »

incrediblehark

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: The dreaded MAME black screen on exit
« Reply #10 on: November 17, 2018, 07:55:26 PM »
2.0.0.cr2 is the ONLY version in the 2's that works properly on my arcade cabinet:  Win7 64bit SP1 aerotheme (necessary) Intel HD2000 integrated graphics.

Give it a go and report back. It could be a good clue for the developers.

^ This - solved all of my problems and 3 days of trying to get AM working with my mame build. Even reinstalled windows 1o because I thought I screwed up something. Thank you jimmer! Going to stick with this version indefinitely.

estefan3112

  • Full Member
  • ***
  • Posts: 35
    • View Profile
    • Retrogaming on my Mac
Re: The dreaded MAME black screen on exit
« Reply #11 on: November 18, 2018, 01:57:19 PM »
I've done it, I've finally done it, damn them all to hell!!! :) :) :)

I've tried everything and finally found a fix for this, at least with my setup.  If you go into the actual MAME config (Config menu, emulators, mame) you'll see an option that says 'Non-blocking Wait Mode', I changed this to 1 (or 2 if your system is slow) and with the latest version of AM, you'll see a quick blank screen (if you're running Attract True Black, if not, it's your desktop) followed by the AM menu!!  Now if I could just figure out how to run Attract True Black to not trigger the Windows UAC...

You are a hero - all problems resolved under MacOS as well! The value 1 in 'Non-blocking Wait Mode' just brought everything back to normal. Many thanks, AM works again!