Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
09292 Sound Critical (emulation) Always 3 days ago 1 day ago
Tester 80sRay View Status Public Platform MAME (Official Binary)
Assigned To Resolution Open OS Windows (x64)
Status [?] New Driver
Version 0.281 Fixed in Version Build x64
Fixed in Git Commit Github Pull Request #
Summary 09292: g13jnr: crash in audio system during gameplay
Description During gameplay game will crash somewhere in the audio system. This seems to reliably occur during the black screen transition from the scenes story to gameplay. Using the button to skip scene backstory seems to increase the chance of a crash.

Sometimes, the crash is on the first stage choice, sometimes the second, sometimes the third.

Video is here:
Steps To Reproduce Start game, coin up, choose a scene. Game may crash it may be on the second or third choice.
Additional Information -----------------------------------------------------
Exception at EIP=00007ff60dc1a35a (std::_Function_handler<float (), audio_resampler_lofi::apply(emu::detail::output_buffer_flat<float> const&, std::vector<float, std::allocator<float> >&, unsigned long long, unsigned int, float, unsigned int) const::{lambda()#1}>::_M_invoke(std::_Any_data const&)+0x000a): ACCESS VIOLATION
While attempting to read memory at 000001750a5ebe24
-----------------------------------------------------
RAX=000001750a5ebe24 RBX=00000000003ac000 RCX=00000032aacf9820 RDX=000001750a5ebe28
RSI=000001717efd7e60 RDI=0000000000000f00 RBP=000001717ab3c3b0 RSP=00000032aacf97f8
 R8=0000000000000001 R9=0000000000000004 R10=000001717ab7a910 R11=000001717ab3c3b0
R12=0000000000000001 R13=00000032aacf99f0 R14=00000032aacf9820 R15=00000032aacf9e00
-----------------------------------------------------
Stack crawl:
  00000032aacf97f0: 00007ff60dc1a35a (std::_Function_handler<float (), audio_resampler_lofi::apply(emu::detail::output_buffer_flat<float> const&, std::vector<float, std::allocator<float> >&, unsigned long long, unsigned int, float, unsigned int) const::{lambda()#1}>::_M_invoke(std::_Any_data const&)+0x000a)
  00000032aacf98e0: 00007ff60dc1b233 (audio_resampler_lofi::apply(emu::detail::output_buffer_flat<float> const&, std::vector<float, std::allocator<float> >&, unsigned long long, unsigned int, float, unsigned int) const+0x0133)
  00000032aacf9950: 00007ff6091a4441 (sound_stream::do_update()+0x0111)
  00000032aacf9a60: 00007ff6091ac05f (sound_manager::streams_update()+0x085f)
  00000032aacf9ab0: 00007ff6091b3268 (sound_manager::update(int)+0x0068)
  00000032aacf9b20: 00007ff608bf962b (device_scheduler::timeslice()+0x014b)
  00000032aacf9c70: 00007ff608bf67bf (running_machine::run(bool)+0x01bf)
  00000032aacff280: 00007ff60c118f0b (mame_machine_manager::execute()+0x020b)
  00000032aacff660: 00007ff610159d89 (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&)+0x03c9)
  00000032aacff910: 00007ff61015a33d (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> > > >&)+0x004d)
  00000032aacff970: 00007ff60c1135b9 (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)
  00000032aacffd40: 00007ff611f7516c (luaopen_lfs+0x10688bc)
  00000032aacffe10: 00007ff6049613b1 (__tmainCRTStartup+0x0231)
  00000032aacffe40: 00007ff6049614e6 (mainCRTStartup+0x0016)
  00000032aacffe70: 00007ffeeafa7374 (BaseThreadInitThunk+0x0014)
  00000032aacffef0: 00007ffeeca1cc91 (RtlUserThreadStart+0x0021)
Github Commit
Flags
Regression Version
Affected Sets / Systems g13jnr
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
3
User avatar
No.23769
Robbbert
Moderator
2 days ago
I couldn't get a crash.

Which sound setting are you using? (wasapi, port audio, etc)

Are you using any effects?
User avatar
No.23770
80sRay
Tester
1 day ago
edited on: 1 day ago
The sound is set to auto in the .ini file and I don't use any of the new effects. It's what it defaulted to which is lofi. Windows 10.

Here is my mame.ini file
------------------------------------
#
# CORE CONFIGURATION OPTIONS
#
readconfig 1
writeconfig 0

#
# CORE SEARCH PATH OPTIONS
#
homepath .
rompath roms;chd
hashpath hash
samplepath samples
artpath artwork
ctrlrpath ctrlr
inipath .;ini;ini/presets
fontpath .
cheatpath cheat_wayder;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 0
statename %g
burnin 0

#
# CORE PERFORMANCE OPTIONS
#
autoframeskip 1
frameskip 0
seconds_to_run 0
throttle 1
sleep 0
speed 1.0
refreshspeed 1
lowlatency 0

#
# CORE RENDER OPTIONS
#
keepaspect 1
unevenstretch 0
unevenstretchx 0
unevenstretchy 0
autostretchxy 1
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 1
fallback_artwork
override_artwork

#
# CORE SCREEN OPTIONS
#
brightness 1.0
contrast 1.0
gamma 1.30
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 192000
samples 1
volume 0

#
# CORE INPUT OPTIONS
#
coin_lockout 1
ctrlr
mouse 1
joystick 1
lightgun 0
multikeyboard 0
multimouse 0
steadykey 0
ui_active 0
offscreen_reload 0
joystick_map auto
joystick_deadzone 0.30
joystick_saturation 0.85
joystick_threshold 0.3
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 1
skip_gameinfo 1
uifont default
ui cabinet
ramsize
confirm_quit 0
ui_mouse 0
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 INPUT MAPPING OPTIONS
#
uimodekey SCRLOCK
controller_map none
background_input 0

#
# 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_host localhost
debugger_port 23946
debugger_font auto
debugger_font_size 0
watchdog 0

#
# OSD PERFORMANCE OPTIONS
#
numprocessors auto
bench 0

#
# OSD VIDEO OPTIONS
#
video d3d
numscreens 1
window 0
maximize 1
waitvsync 1
syncrefresh 0
monitorprovider auto

#
# OSD PER-WINDOW VIDEO OPTIONS
#
screen \\.\DISPLAY1
aspect 16:9
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 0
prescale 0

#
# 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 4

#
# OSD MIDI OPTIONS
#
midiprovider auto

#
# OSD EMULATED NETWORKING OPTIONS
#
networkprovider auto

#
# BGFX POST-PROCESSING OPTIONS
#
bgfx_path bgfx
bgfx_backend d3d12
bgfx_debug 0
bgfx_screen_chains
bgfx_shadow_mask slot-mask.png
bgfx_lut lut-default.png
bgfx_avi_name auto

#
# WINDOWS PERFORMANCE OPTIONS
#
priority 0
profile 0

#
# WINDOWS VIDEO OPTIONS
#
attach_window

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlslpath hlsl
hlsl_enable 1
hlsl_oversampling 1
hlsl_write auto
hlsl_snap_width 2048
hlsl_snap_height 1536
shadow_mask_tile_mode 0
shadow_mask_alpha 0.0
shadow_mask_texture shadow-mask.png
shadow_mask_x_count 6
shadow_mask_y_count 4
shadow_mask_usize 0.1875
shadow_mask_vsize 0.25
shadow_mask_uoffset 0.0
shadow_mask_voffset 0.0
distortion 0.0
cubic_distortion 0.0
distort_corner 0.0
round_corner 0.0
smooth_border 0.0
reflection 0.0
vignetting 0.0
scanline_alpha 0.0
scanline_size 1.0
scanline_height 1.0
scanline_variation 1.0
scanline_bright_scale 1.0
scanline_bright_offset 0.0
scanline_jitter 0.0
hum_bar_alpha 0.0
defocus 0.0,0.0
converge_x 0.0,0.0,0.0
converge_y 0.0,0.0,0.0
radial_converge_x 0.0,0.0,0.0
radial_converge_y 0.0,0.0,0.0
red_ratio 1.0,0.0,0.0
grn_ratio 0.0,1.0,0.0
blu_ratio 0.0,0.0,1.0
saturation 1.0
offset 0.0,0.0,0.0
scale 1.0,1.0,1.0
power 1.0,1.0,1.0
floor 0.0,0.0,0.0
phosphor_life 0.0,0.0,0.0
chroma_mode 3
chroma_conversion_gain 0.299,0.587,0.114
chroma_a 0.64,0.33
chroma_b 0.30,0.60
chroma_c 0.15,0.06
chroma_y_gain 0.2126,0.7152,0.0722

#
# NTSC POST-PROCESSING OPTIONS
#
yiq_enable 0
yiq_jitter 0.0
yiq_cc 3.57954545
yiq_a 0.5
yiq_b 0.5
yiq_o 0.0
yiq_p 1.0
yiq_n 1.0
yiq_y 6.0
yiq_i 1.2
yiq_q 0.6
yiq_scan_time 52.6
yiq_phase_count 2

#
# VECTOR POST-PROCESSING OPTIONS
#
vector_beam_smooth 0.0
vector_length_scale 0.5
vector_length_ratio 0.5

#
# BLOOM POST-PROCESSING OPTIONS
#
bloom_blend_mode 0
bloom_scale 0.0
bloom_overdrive 1.0,1.0,1.0
bloom_lvl0_weight 1.0
bloom_lvl1_weight 0.64
bloom_lvl2_weight 0.32
bloom_lvl3_weight 0.16
bloom_lvl4_weight 0.08
bloom_lvl5_weight 0.06
bloom_lvl6_weight 0.04
bloom_lvl7_weight 0.02
bloom_lvl8_weight 0.01
lut_texture lut-default.png
lut_enable 0
ui_lut_texture lut-default.png
ui_lut_enable 0

#
# FULL SCREEN OPTIONS
#
triplebuffer 1
full_screen_brightness 1.0
full_screen_contrast 1.0
full_screen_gamma 1.0

#
# INPUT DEVICE OPTIONS
#
dual_lightgun 0

#
# FRONTEND COMMAND OPTIONS
#
dtd 1
User avatar
No.23771
80sRay
Tester
1 day ago
edited on: 1 day ago
I did some more testing. If I leave frameskip to auto, it doesn't crash. As soon as I switched to frameskip zero, it behaves like the video I linked and crashes with an access violation. Very strange.