Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
08645 Crash/Freeze Critical (emulator) Always May 29, 2023, 11:57 May 30, 2023, 11:17
Tester ICEknight View Status Public Platform MAME (Official Binary)
Assigned To Resolution Open OS Windows 10/11 (64-bit)
Status [?] Confirmed Driver
Version 0.254 Fixed in Version Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 08645: UI: Bgfx: Crash when switching to/from fullscreen while tilde menu is on-screen
Description It seems that certain options from the Tilde menu are somehow causing MAME to crash if they're on screen while pressing Alt+Enter in Windows.

Some example error logs are attached, as well as a pop-up error that MAME displayed only once.
Steps To Reproduce -Start any driver in MAME.
-Press the Tilde key.
-Select "Screen Vert Position" option or below.
-Press Alt+Enter, MAME may crash.
-If it doesn't crash, press Alt+Enter again. (Moving the selection up/down might work as well?)
Additional Information Tested with Opengl and Vulkan backends.
Might be random, but the chain-related options ("Window 0, Screen 0 Effect x" and below) seem to have a better chance of crashing it.
Github Commit
Flags
Regression Version
Affected Sets / Systems UI
Attached Files
png file icon error.png (4,312 bytes) May 29, 2023, 11:57 Uploaded by ICEknight
ICEknight
txt file icon error1.txt (2,644 bytes) May 29, 2023, 11:58 Uploaded by ICEknight
[Show Content]
txt file icon error2.txt (2,652 bytes) May 29, 2023, 11:58 Uploaded by ICEknight
[Show Content]
txt file icon error3.txt (2,797 bytes) May 29, 2023, 11:58 Uploaded by ICEknight
[Show Content]
txt file icon error4.txt (2,960 bytes) May 29, 2023, 11:58 Uploaded by ICEknight
[Show Content]
txt file icon error5.txt (105 bytes) May 29, 2023, 12:00 Uploaded by ICEknight
[Show Content]
Relationships
There are no relationship linked to this issue.
Notes
1
User avatar
No.21471
Robbbert
Senior Tester
May 30, 2023, 11:17
Looks like part of a wider problem.

I used
>mame pacman -video bgfx (my default backend is d3d11 and my default is Windowed).

After playing the game, I pressed Tilde and selected the "Screen Vert Position" but didn't change anything.

Pressing Alt Enter worked, so I pressed it again - worked again. Then I pressed the Down key to choose another slider, and it crashed.

C:\MAME>mame pacman -video bgfx

-----------------------------------------------------
Exception at EIP=0000015f75a7db00 (+0x75a7db00): ACCESS VIOLATION
While attempting to write memory at 0000015f75a7db00
-----------------------------------------------------
RAX=0000015f65456960 RBX=0000015f7596d5e0 RCX=0000015f75a7d920 RDX=0000004db4d896e0
RSI=0000000000000001 RDI=0000015f75a7d920 RBP=0000000000000000 RSP=0000004db4d89668
 R8=0000004db4d896d8 R9=0000000000000000 R10=000000000000000c R11=00000750aaf1926f
R12=0000015f7596d530 R13=0000000000000001 R14=00007ff693193300 R15=0000004db4d89d60
-----------------------------------------------------
Stack crawl:
  0000004db4d89660: 0000015f75a7db00 (+0x75a7db00)
  0000004db4d89730: 00007ff68e417382 (luaopen_lfs+0x127c2)
  0000004db4d89790: 00007ff68e411ee4 (luaopen_lfs+0xd324)
  0000004db4d898b0: 00007ff68d3b1a19 (mame_ui_manager::update_and_render(render_container&)+0x0189)
  0000004db4d89940: 00007ff68950272e (video_manager::frame_update(bool)+0x021e)
  0000004db4d899b0: 00007ff685dbdcc3 (screen_device::vblank_begin(int)+0x0233)
  0000004db4d89a20: 00007ff685dd65fb (device_scheduler::timeslice()+0x014b)
  0000004db4d89ba0: 00007ff685dd37df (running_machine::run(bool)+0x01bf)
  0000004db4d8f0d0: 00007ff68935945b (mame_machine_manager::execute()+0x024b)
  0000004db4d8f4c0: 00007ff68d3e8cf6 (cli_frontend::start_execution(mame_machine_manager*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)+0x03e6)
  0000004db4d8f7a0: 00007ff68d3e931b (cli_frontend::execute(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)+0x007b)
  0000004db4d8f800: 00007ff689353c19 (emulator_info::start_frontend(emu_options&, osd_interface&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)+0x0029)
  0000004db4d8fbc0: 00007ff68ef69643 (luaopen_lfs+0xb64a83)
  0000004db4d8fc90: 00007ff6816d13b1 (__tmainCRTStartup+0x0231)
  0000004db4d8fcc0: 00007ff6816d14e6 (mainCRTStartup+0x0016)
  0000004db4d8fcf0: 00007ff8fbfb7614 (BaseThreadInitThunk+0x0014)
  0000004db4d8fd70: 00007ff8fd7826a1 (RtlUserThreadStart+0x0021)