Author Topic: Attract-Mode locking up on MAME launch (All ROMS)  (Read 2176 times)

trufus

  • Newbie
  • *
  • Posts: 3
    • View Profile
Attract-Mode locking up on MAME launch (All ROMS)
« on: June 11, 2020, 01:56:04 PM »
Hey guys, Happy to have found attract-mode.  It is a great project.  Unfortunately, I am about to pull my hair out and need this community's help.

I have attract-mode installed (2.6.1) and configured (what I believe to be properly) and added MAME .0221 / (SDLMAME64) as an emulator.  Rom paths appear to be correct as adding to collections and mapping artwork assets is working fine.

When I launch any MAME rom from attract-mode it fades to black, launches the game in question, and then freezes within seconds.  When it freezes, the game (at whatever point in the "boot process") remains displayed on the screen and cannot be exited using hotkeys.  I cannot navigate away in any fashion whatsoever unless I do a force-quit via OSX keyboard shortcut and even then it takes 2-5 attempts.

This is universal across all rooms.  The only difference is how far it makes it into the checksum display or nag screen before freezing at that point.  All roms without exception launch from MAME via command line or the M64 executable flawlessly.

Any help whatsoever would be super appreciated!!!

System:
Mid 2011 iMac
2.7gz i5
AMD Radeon HD 6770M 512 MB
16gb RAM
Mac OSX High Sierra (newest available OS for my system)

--

Attract.cfg

Code: [Select]
# Generated by Attract-Mode v2.6.1
#
display MAME
layout               nevato
romlist              MAME
in_cycle             yes
in_menu              yes
filter               All
filter               Favourites
rule                 Favourite equals 1

sound
sound_volume         100
ambient_volume       100
movie_volume         100

input_map
configure            Tab
prev_letter          LControl+Up
next_letter          LControl+Down
filters_menu         LControl+Left
next_filter          LControl+Right
configure            Escape+Up
edit_game            Escape+Down
add_favourite        Escape+LControl
prev_letter          Joy0 Up+Joy0 Button0
next_letter          Joy0 Down+Joy0 Button0
filters_menu         Joy0 Left+Joy0 Button0
next_filter          Joy0 Right+Joy0 Button0
configure            Joy0 Up+Joy0 Button1
edit_game            Joy0 Down+Joy0 Button1
add_favourite        Joy0 Button0+Joy0 Button1
back                 Escape
back                 Joy0 Button1
up                   Up
up                   Joy0 Up
down                 Down
down                 Joy0 Down
left                 Left
left                 Joy0 Left
right                Right
right                Joy0 Right
select               Return
select               LControl
select               Joy0 Button0
exit_to_desktop      Subtract
default             back exit
default             up prev_game
default             down next_game
default             left prev_display
default             right next_display

general
language             en
exit_command         
exit_message         
default_font         Arial Narrow
font_path            /Library/Fonts/;$HOME/Library/Fonts/
screen_saver_timeout 600
displays_menu_exit   yes
hide_brackets        no
startup_mode         default
confirm_favourites   yes
confirm_exit         yes
mouse_threshold      10
joystick_threshold   75
window_mode          window
filter_wrap_mode     default
track_usage          yes
multiple_monitors    no
smooth_images        yes
selection_max_step   128
selection_speed_ms   40
move_mouse_on_launch no
scrape_snaps         yes
scrape_marquees      yes
scrape_flyers        yes
scrape_wheels        yes
scrape_fanart        no
scrape_videos        no
scrape_overview      yes
thegamesdb_key       
video_decoder       
menu_prompt          Displays Menu
menu_layout         


--

mame.ini
Code: [Select]
#
# CORE CONFIGURATION OPTIONS
#
readconfig                1
writeconfig               0

#
# CORE SEARCH PATH OPTIONS
#
homepath                  .
rompath                   roms
hashpath                  hash
samplepath                samples
artpath                   artwork
ctrlrpath                 ctrlr
inipath                   "$HOME/Library/Application Support/mame;$HOME/.mame;.;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

#
# CORE STATE/PLAYBACK OPTIONS
#
state                     
autosave                  0
rewind                    0
rewind_capacity           100
playback                 
record                   
record_timecode           0
exit_after_playback       0
mngwrite                 
aviwrite                 
wavwrite                 
snapname                  %g/%i
snapsize                  auto
snapview                  internal
snapbilinear              1
statename                 %g
burnin                    0

#
# CORE PERFORMANCE OPTIONS
#
autoframeskip             1
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_intensity_weight     0
flicker                   0

#
# CORE SOUND OPTIONS
#
samplerate                48000
samples                   1
volume                    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               mouse
trackball_device          mouse
lightgun_device           mouse
positional_device         keyboard
mouse_device              mouse

#
# CORE DEBUGGING OPTIONS
#
verbose                   0
log                       0
oslog                     0
debug                     0
update_in_pause           0
debugscript               

#
# 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             1
uifont                    default
ui                        cabinet
ramsize                   
confirm_quit              0
ui_mouse                  1
language                  English
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                 DEL

#
# 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                     opengl
numscreens                1
window                    0
maximize                  1
waitvsync                 1
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                    0
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

#
# CoreAudio-SPECIFIC OPTIONS
#
audio_output              auto
audio_effect0             none
audio_effect1             none
audio_effect2             none
audio_effect3             none
audio_effect4             none
audio_effect5             none
audio_effect6             none
audio_effect7             none
audio_effect8             none
audio_effect9             none

#
# 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                 
bgfx_avi_name             auto

#
# SDL PERFORMANCE OPTIONS
#
sdlvideofps               0

#
# SDL VIDEO OPTIONS
#
centerh                   1
centerv                   1
scalemode                 none

#
# SDL KEYBOARD MAPPING
#
keymap                    0
keymap_file               keymap.dat

#
# SDL JOYSTICK MAPPING
#
joy_idx1                  auto
joy_idx2                  auto
joy_idx3                  auto
joy_idx4                  auto
joy_idx5                  auto
joy_idx6                  auto
joy_idx7                  auto
joy_idx8                  auto
sixaxis                   0

#
# SDL MOUSE MAPPING
#
mouse_index1              auto
mouse_index2              auto
mouse_index3              auto
mouse_index4              auto
mouse_index5              auto
mouse_index6              auto
mouse_index7              auto
mouse_index8              auto

#
# SDL KEYBOARD MAPPING
#
keyb_idx1                 auto
keyb_idx2                 auto
keyb_idx3                 auto
keyb_idx4                 auto
keyb_idx5                 auto
keyb_idx6                 auto
keyb_idx7                 auto
keyb_idx8                 auto

#
# SDL LOW-LEVEL DRIVER OPTIONS
#
videodriver               auto
renderdriver              auto
audiodriver               auto
gl_lib                    /System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib

#
# FRONTEND COMMAND OPTIONS
#
dtd                       1


« Last Edit: June 11, 2020, 02:57:59 PM by trufus »

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Attract-Mode locking up on MAME launch (All ROMS)
« Reply #1 on: June 11, 2020, 04:14:56 PM »
 I literally have the same exact iMac, except I installed 12gb of ram instead of 16gb. Also running the same version of macos and attract. Absolutely no issue, except with apple for requiring metal.

Please post your mame.cfg.

Try these two values:
Code: [Select]
nb_mode_wait         1
exit_hotkey          Escape

trufus

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Attract-Mode locking up on MAME launch (All ROMS)
« Reply #2 on: June 11, 2020, 06:25:22 PM »
Thank you so much for your reply.  Well, holy shit man for some damn reason my mame.cfg had an insane value for pause_hotkey that I cannot explain to save my life. 

Code: [Select]
# Generated by Attract-Mode v2.6.1
#
executable           $HOME/mame/mame64
args                 "[name]"
workdir              $HOME/mame
rompath              $HOME/mame/roms/
romext               .zip;.7z;<DIR>
system               Arcade
info_source          listxml
exit_hotkey          Backspace
pause_hotkey         $HOME/mame/marquee
artwork    marquee         $HOME/mame/marquee
artwork    snap            $HOME/mame/video;$HOME/mame/snap

I had uninstalled and reinstalled the emulator in Attract-Mode with the same results each time.  I was going down this path by watching the process in terminal and seeing this:

Code: [Select]
- Working directory:/mame/
*** Running: /mame/mame64 "1941"
 - Pause Hotkey pressed, sending SIGSTOP signal to process 12617

Checking my default.cfg in MAME folder showed the default P as being the pause input.  In any event, I have been banging my head on the wall with this one and off for 2 days.  Everything is operational now.  I owe you an effing beer and I mean that.