-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
MAME version
0.251 8df400b
System information
Fedora 36, x86-64, 16GB RAM, RTX 2080Ti, nvidia proprietary driver 525.60.11
Built with all symbols for debug purposes: make VERBOSE=1 REGENIE=1 SYMBOLS=1 SYMLEVEL=3 OPTIMIZE=0 SOURCES=src/mame/konami/konamigx.cpp,src/mame/sony/taitogn.cpp -j16
But issue also presents with a standard build, i.e. make -j16. Issue observed in GroovyMAME 0.251 as well.
INI configuration details
#
# CORE CONFIGURATION OPTIONS
#
readconfig 1
writeconfig 0
#
# CORE SEARCH PATH OPTIONS
#
homepath .
rompath roms
hashpath hash
samplepath samples
artpath artwork
ctrlrpath ctrlr
inipath .;ini
fontpath .
cheatpath cheat
crosshairpath crosshair
pluginspath plugins
languagepath language
swpath software
#
# CORE OUTPUT DIRECTORY OPTIONS
#
cfg_directory cfg
nvram_directory nvram
input_directory inp
state_directory sta
snapshot_directory snap
diff_directory diff
comment_directory comments
share_directory share
#
# CORE STATE/PLAYBACK OPTIONS
#
state
autosave 0
rewind 0
rewind_capacity 100
playback
record
exit_after_playback 0
mngwrite
aviwrite
wavwrite
snapname %g/%i
snapsize auto
snapview auto
snapbilinear 1
statename %g
burnin 0
#
# CORE PERFORMANCE OPTIONS
#
autoframeskip 0
frameskip 0
seconds_to_run 0
throttle 1
sleep 1
speed 1.0
refreshspeed 0
lowlatency 0
#
# CORE RENDER OPTIONS
#
keepaspect 1
unevenstretch 1
unevenstretchx 0
unevenstretchy 0
autostretchxy 0
intoverscan 0
intscalex 0
intscaley 0
#
# CORE ROTATION OPTIONS
#
rotate 1
ror 0
rol 0
autoror 0
autorol 0
flipx 0
flipy 0
#
# CORE ARTWORK OPTIONS
#
artwork_crop 0
fallback_artwork
override_artwork
#
# CORE SCREEN OPTIONS
#
brightness 1.0
contrast 1.0
gamma 1.0
pause_brightness 0.65
effect none
#
# CORE VECTOR OPTIONS
#
beam_width_min 1.0
beam_width_max 1.0
beam_dot_size 1.0
beam_intensity_weight 0
flicker 0
#
# CORE SOUND OPTIONS
#
samplerate 48000
samples 1
volume 0
compressor 1
speaker_report 0
#
# CORE INPUT OPTIONS
#
coin_lockout 1
ctrlr
mouse 0
joystick 1
lightgun 0
multikeyboard 0
multimouse 0
steadykey 0
ui_active 0
offscreen_reload 0
joystick_map auto
joystick_deadzone 0.3
joystick_saturation 0.85
natural 0
joystick_contradictory 0
coin_impulse 0
#
# CORE INPUT AUTOMATIC ENABLE OPTIONS
#
paddle_device keyboard
adstick_device keyboard
pedal_device keyboard
dial_device keyboard
trackball_device keyboard
lightgun_device keyboard
positional_device keyboard
mouse_device mouse
#
# CORE DEBUGGING OPTIONS
#
verbose 0
log 0
oslog 0
debug 0
update_in_pause 0
debugscript
debuglog 0
#
# CORE COMM OPTIONS
#
comm_localhost 0.0.0.0
comm_localport 15112
comm_remotehost 127.0.0.1
comm_remoteport 15112
comm_framesync 0
#
# CORE MISC OPTIONS
#
drc 1
drc_use_c 0
drc_log_uml 0
drc_log_native 0
bios
cheat 0
skip_gameinfo 0
uifont default
ui cabinet
ramsize
confirm_quit 0
ui_mouse 1
language
nvram_save 1
#
# SCRIPTING OPTIONS
#
autoboot_command
autoboot_delay 0
autoboot_script
console 0
plugins 1
plugin
noplugin
#
# HTTP SERVER OPTIONS
#
http 0
http_port 8080
http_root web
#
# OSD KEYBOARD MAPPING OPTIONS
#
uimodekey auto
#
# OSD FONT OPTIONS
#
uifontprovider auto
#
# OSD OUTPUT OPTIONS
#
output auto
#
# OSD INPUT OPTIONS
#
keyboardprovider auto
mouseprovider auto
lightgunprovider auto
joystickprovider auto
#
# OSD DEBUGGING OPTIONS
#
debugger auto
debugger_port 23946
debugger_font auto
debugger_font_size 0
watchdog 0
#
# OSD PERFORMANCE OPTIONS
#
numprocessors auto
bench 0
#
# OSD VIDEO OPTIONS
#
video auto
numscreens 1
window 0
maximize 1
waitvsync 0
syncrefresh 0
monitorprovider auto
#
# OSD PER-WINDOW VIDEO OPTIONS
#
screen auto
aspect auto
resolution auto
view auto
screen0 auto
aspect0 auto
resolution0 auto
view0 auto
screen1 auto
aspect1 auto
resolution1 auto
view1 auto
screen2 auto
aspect2 auto
resolution2 auto
view2 auto
screen3 auto
aspect3 auto
resolution3 auto
view3 auto
#
# OSD FULL SCREEN OPTIONS
#
switchres 0
#
# OSD ACCELERATED VIDEO OPTIONS
#
filter 1
prescale 1
#
# OpenGL-SPECIFIC OPTIONS
#
gl_forcepow2texture 0
gl_notexturerect 0
gl_vbo 1
gl_pbo 1
gl_glsl 0
gl_glsl_filter 1
glsl_shader_mame0 none
glsl_shader_mame1 none
glsl_shader_mame2 none
glsl_shader_mame3 none
glsl_shader_mame4 none
glsl_shader_mame5 none
glsl_shader_mame6 none
glsl_shader_mame7 none
glsl_shader_mame8 none
glsl_shader_mame9 none
glsl_shader_screen0 none
glsl_shader_screen1 none
glsl_shader_screen2 none
glsl_shader_screen3 none
glsl_shader_screen4 none
glsl_shader_screen5 none
glsl_shader_screen6 none
glsl_shader_screen7 none
glsl_shader_screen8 none
glsl_shader_screen9 none
#
# OSD SOUND OPTIONS
#
sound auto
audio_latency 2
#
# PORTAUDIO OPTIONS
#
pa_api none
pa_device none
pa_latency 0
#
# BGFX POST-PROCESSING OPTIONS
#
bgfx_path bgfx
bgfx_backend auto
bgfx_debug 0
bgfx_screen_chains default
bgfx_shadow_mask slot-mask.png
bgfx_lut lut-default.png
bgfx_avi_name auto
#
# SDL PERFORMANCE OPTIONS
#
sdlvideofps 0
#
# SDL VIDEO OPTIONS
#
centerh 1
centerv 1
scalemode none
#
# SDL FULL SCREEN OPTIONS
#
useallheads 0
attach_window
#
# SDL KEYBOARD MAPPING
#
keymap 0
keymap_file keymap.dat
#
# SDL JOYSTICK MAPPING
#
sixaxis 0
#
# SDL LIGHTGUN MAPPING
#
lightgun_index1 auto
lightgun_index2 auto
lightgun_index3 auto
lightgun_index4 auto
lightgun_index5 auto
lightgun_index6 auto
lightgun_index7 auto
lightgun_index8 auto
#
# SDL LOW-LEVEL DRIVER OPTIONS
#
videodriver auto
renderdriver auto
audiodriver auto
gl_lib auto
#
# FRONTEND COMMAND OPTIONS
#
dtd 1Emulated system/software
crzcross daiskiss le2 salmndr2 sexyparo soccerss tbyahhoo tkmmpzdm vsnetscr
Incorrect behaviour
The default video backend settings work fine for all systems I've tried, except the Konami GX system. After the "imperfect emulation" warning, there is a black screen for a couple seconds followed by a segfault on about half of the software titles.
More than half the software titles for the Konami GX system do not work. After the "imperfect emulation" popup, there is a black screen for a couple seconds followed by a segfault on about half of the software titles.
Affected:
- crzcross
- daiskiss
- le2
- salmndr2
- sexyparo
- soccerss
- tbyahhoo
- tkmmpzdm
- vsnetscr
Not affected:
- dragoona
- opengolf
- racinfrc
- rungun2
- rushhero
- winspike
The following video backend settings reproduce this issue on my machine:
-video bgfx -bgfx_backend vulkan-video bgfx -bgfx_backend gles- (No flags—just
autoinmame.inifor both settings)
And the following settings resolve the issue:
-video none-video soft-video accel-video opengl-video bgfx -bgfx_backend opengl
I haven't seen issues like this outside of the konamigx system.
Expected behaviour
Segfaults should not occur. Vulkan and GLES should work normally, given that they are supported on my machine.
Steps to reproduce
Fresh install of MAME from git. mame.ini is completely default from ./mame -createconfig, except for the removal of $HOME/.mame/ from inipath.
Either load software from commandline or select from UI.
Additional details
Backtraces:
$ gdb mame
(gdb) run sexyparo -video bgfx -bgfx_backend gles
Starting program: /home/lorenzo/src/mame/mame sexyparo -video bgfx -bgfx_backend gles
This GDB supports auto-downloading debuginfo from the following URLs:
https://debuginfod.fedoraproject.org/
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe16a1640 (LWP 200807)]
[New Thread 0x7fffcfdff640 (LWP 200808)]
[New Thread 0x7fffcf5fe640 (LWP 200809)]
[New Thread 0x7fffcedfd640 (LWP 200810)]
[New Thread 0x7fffce3fc640 (LWP 200811)]
[New Thread 0x7fffcc2bb640 (LWP 200812)]
[New Thread 0x7fffbe7fa640 (LWP 200813)]
[New Thread 0x7fffbdff9640 (LWP 200832)]
[Thread 0x7fffbdff9640 (LWP 200832) exited]
Thread 2 "mame" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe16a1640 (LWP 200807)]
0x00007fffd3255834 in ?? () from /lib64/libnvidia-glcore.so.525.60.11
(gdb) bt
#0 0x00007fffd3255834 in ?? () from /lib64/libnvidia-glcore.so.525.60.11
#1 0x00007fffd3224d23 in ?? () from /lib64/libnvidia-glcore.so.525.60.11
#2 0x000000000285f847 in bgfx::vk::BufferVK::update (this=0x7fffe0c98498, _commandBuffer=0x7fffdc33ab50, _offset=0, _size=864,
_data=0x7fffbf3fe040, _discard=false) at ../../../../../3rdparty/bgfx/src/renderer_vk.cpp:4726
#3 0x0000000002868820 in bgfx::vk::RendererContextVK::submit (this=0x7fffe0c77010, _render=0x7fffe26b2440, _clearQuad=...,
_textVideoMemBlitter=...) at ../../../../../3rdparty/bgfx/src/renderer_vk.cpp:8122
#4 0x00000000027e66da in bgfx::Context::renderFrame (this=0x7fffe26b2040, _msecs=5000) at ../../../../../3rdparty/bgfx/src/bgfx.cpp:2455
#5 0x00000000027e4a08 in bgfx::renderFrame (_msecs=-1) at ../../../../../3rdparty/bgfx/src/bgfx.cpp:1489
#6 0x00000000027f83c7 in bgfx::Context::renderThread () at ../../../../../3rdparty/bgfx/src/bgfx_p.h:3148
#7 0x000000000293963f in bx::Thread::entry (this=0x7fffe26b2240) at ../../../../../3rdparty/bx/src/thread.cpp:328
#8 0x0000000002939294 in bx::ThreadInternal::threadFunc (_arg=0x7fffe26b2240) at ../../../../../3rdparty/bx/src/thread.cpp:95
#9 0x00007ffff5e8cded in start_thread (arg=<optimized out>) at pthread_create.c:442
#10 0x00007ffff5f12370 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
$ gdb mame
(gdb) run sexyparo -video bgfx -bgfx_backend vulkan
Starting program: /home/lorenzo/src/mame/mame sexyparo -video bgfx -bgfx_backend vulkan
This GDB supports auto-downloading debuginfo from the following URLs:
https://debuginfod.fedoraproject.org/
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe16a1640 (LWP 202299)]
[New Thread 0x7fffcfdff640 (LWP 202313)]
[New Thread 0x7fffcf5fe640 (LWP 202314)]
[New Thread 0x7fffcedfd640 (LWP 202315)]
[New Thread 0x7fffce3fc640 (LWP 202316)]
[New Thread 0x7fffcc2bb640 (LWP 202317)]
[New Thread 0x7fffbe7fa640 (LWP 202318)]
[New Thread 0x7fffbdff9640 (LWP 202323)]
[Thread 0x7fffbdff9640 (LWP 202323) exited]
Thread 2 "mame" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe16a1640 (LWP 202299)]
0x00007fffd3255834 in ?? () from /lib64/libnvidia-glcore.so.525.60.11
(gdb) bt
#0 0x00007fffd3255834 in ?? () from /lib64/libnvidia-glcore.so.525.60.11
#1 0x00007fffd3224d23 in ?? () from /lib64/libnvidia-glcore.so.525.60.11
#2 0x000000000285f847 in bgfx::vk::BufferVK::update (this=0x7fffe0c98478, _commandBuffer=0x7fffdc3390c0, _offset=0, _size=864,
_data=0x7fffbf9ff040, _discard=false) at ../../../../../3rdparty/bgfx/src/renderer_vk.cpp:4726
#3 0x0000000002868820 in bgfx::vk::RendererContextVK::submit (this=0x7fffe0c77010, _render=0x7fffe3f92b00, _clearQuad=...,
_textVideoMemBlitter=...) at ../../../../../3rdparty/bgfx/src/renderer_vk.cpp:8122
#4 0x00000000027e66da in bgfx::Context::renderFrame (this=0x7fffe26b2040, _msecs=5000) at ../../../../../3rdparty/bgfx/src/bgfx.cpp:2455
#5 0x00000000027e4a08 in bgfx::renderFrame (_msecs=-1) at ../../../../../3rdparty/bgfx/src/bgfx.cpp:1489
#6 0x00000000027f83c7 in bgfx::Context::renderThread () at ../../../../../3rdparty/bgfx/src/bgfx_p.h:3148
#7 0x000000000293963f in bx::Thread::entry (this=0x7fffe26b2240) at ../../../../../3rdparty/bx/src/thread.cpp:328
#8 0x0000000002939294 in bx::ThreadInternal::threadFunc (_arg=0x7fffe26b2240) at ../../../../../3rdparty/bx/src/thread.cpp:95
#9 0x00007ffff5e8cded in start_thread (arg=<optimized out>) at pthread_create.c:442
#10 0x00007ffff5f12370 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81