Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
09091 Crash/Freeze Minor Always 1 day ago 1 day ago
Tester trebor View Status Public Platform MAME (Official Binary)
Assigned To Resolution Open OS Windows 10/11 (64-bit)
Status [?] New Driver
Version 0.273 Fixed in Version Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 09091: punchout, spnchout: Access Violation crash with numscreens 2 for ini file under bgfx video
Description When trying to utilize two displays for the games Punch-Out!! and Super Punch-Out!!, creating the respective *.ini file, specifying 'numscreens 2' results in an Access Violation crash.

Delete the *.ini file, or just remove the 'numscreens 2' line, both games run without issue.
Steps To Reproduce Create a punchout.ini or spnchout.ini file and place the line numscreens 2. Run "mame punchout" (or "mame spnchout")

MAME crashes with an Access Violation error:

D:\MAME>mame punchout
-----------------------------------------------------
Exception at EIP=00007ff6ad530a94 (bgfx::d3d11::RendererContextD3D11::init(bgfx::Init const&)+0x1224): ACCESS VIOLATION
While attempting to read memory at 00007ff6b8574750
-----------------------------------------------------
RAX=0000000004000010 RBX=0000016e04dc1040 RCX=0000016e04dce3d8 RDX=0000000000000007
RSI=00000004b30f8b40 RDI=00007ff6b4574e70 RBP=00007ff6b45743a0 RSP=00000004b30f8a90
 R8=ffffffffffffffe0 R9=0000016e04dce408 R10=baac1f10365eb170 R11=00000004b30f8a60
R12=00007ff6b4574740 R13=00000004b30f8b40 R14=0000016e04dc1040 R15=0000000000000001
-----------------------------------------------------
Stack crawl:
  00000004b30f8f80: 00007ff6ad530a94 (luaopen_lfs+0x9b3314)
  00000004b30f8fd0: 00007ff6ad528785 (luaopen_lfs+0x9ab005)
  00000004b30f9120: 00007ff6ad07ba44 (luaopen_lfs+0x4fe2c4)
  00000004b30f92e0: 00007ff6ad08ad96 (luaopen_lfs+0x50d616)
  00000004b30f9340: 00007ff6ad08ae22 (luaopen_lfs+0x50d6a2)
  00000004b30f93b0: 00007ff6ad08b4fd (luaopen_lfs+0x50dd7d)
  00000004b30f9420: 00007ff6ad08b822 (luaopen_lfs+0x50e0a2)
  00000004b30f9450: 00007ff6ad08c1c3 (luaopen_lfs+0x50ea43)
  00000004b30f95a0: 00007ff6abebfc37 (renderer_bgfx::draw(int)+0x0647)
  00000004b30f9600: 00007ff6a7f55973 (win_window_info::draw_video_contents(HDC__*, bool)+0x0063)
  00000004b30f9710: 00007ff6a7f5a166 (win_window_info::video_window_proc(HWND__*, unsigned int, unsigned long long, long long)+0x0736)


Remove the numscreens line or delete the ini file and the game runs fine under just one screen.
Additional Information I'm running an 11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz | 2.50 GHz desktop. 16.0 GB (15.6 GB usable). Windows 11 Home. Version 23H2. NVIDIA GeForce GTX 1660 Ti. Driver Version 32.0.15.5612.
Github Commit
Flags
Regression Version
Affected Sets / Systems punchout, spnchout
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
4
User avatar
No.22870
Robbbert
Moderator
1 day ago
edited on: 1 day ago
Works for me - no crash. Using "auto" video on Windows 10.

You haven't said what video setting you're using. Going by the dump it appears to be

-video bgfx -bgfx_backend d3d11

I tried that and it still worked.
User avatar
No.22871
trebor
Tester
1 day ago
edited on: 1 day ago
You actually nailed the cause for me.

Starting with a clean/brand new install folder

If I have this set in mame.ini...

# OSD VIDEO OPTIONS
#
video auto

The above with numscreens 2 enabled in punchout.ini file created runs fine.

However...

# OSD VIDEO OPTIONS
#
video bgfx

The above with numscreens 2 enabled in punchout.ini file created crashes mame.
User avatar
No.22872
trebor
Tester
1 day ago
I updated the Report Summary to better reflect the issue.
User avatar
No.22873
Robbbert
Moderator
1 day ago
Have to wait for what other people say, since it works for me.