mamedev / mame

MAME
https://www.mamedev.org/
Other
7.75k stars 1.95k forks source link

(MacOS) MAME crashes when attempting to quickly scroll past the end in the debugger console #12500

Open wilbertpol opened 1 week ago

wilbertpol commented 1 week ago

MAME version

0.266 (mame0261-2041-g7eb725763ec), single driver build

System information

MacOS 14.5 M1 Pro. MAME used is a single driver build using SOURCES=src/mame/msx/,src/mame/nintendo/gb.cpp

INI configuration details

No response

Emulated system/software

megaduck, hx10

Incorrect behaviour

Open MAME with debugger active (-debug -window megaduck), place cursor above the debugger above and (very) quickly scroll down (swiping with 2 fingers on the touchpad) towards/past the end of the debugger log, then the application will crash with message: "libc++abi: terminating due to uncaught exception of type std::length_error: vector" If I scroll down slowly or normally then no crash occurs only when attempting to scroll quickly.

It does not happen when scrolling up (towards/past the start of the debugger log), nor does it happen in our debugger views as far ass I could see.

The crash happens with multiple drivers, so I assume it is a generic issue.

I do not know if a similar crash can happen on other OSes.

Backtrace from lldb: libc++abi: terminating due to uncaught exception of type std::length_error: vector Process 66712 stopped

Expected behaviour

No more crashes.

Steps to reproduce

Start MAME with debugger active, attempt to scroll fast past the end of the log in the debugger console.

Additional details

-debug -window megaduck or -debug -window hx10