Here's my log for failing GM with pulseaudio on Arch Linux when launched from the Attract Mode emulator... works fine when launched directly or when launched from AM with alsa as the device rather than pulseaudio:
Starting Attract-Mode v2.2.0 (Linux)
Config: /home/robee/.attract/attract.cfg
*** Initializing display: 'mame'
- Loaded master romlist 'mame' in 286 ms (33918 entries kept, 0 discarded)
- Constructed 2 filters in 132 ms (67836 comparisons)
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
Error opening input file: /usr/local/share/attract/intro/intro_4x3.mp4
ERROR loading video: /usr/local/share/attract/intro/intro_4x3.mp4
Error opening input file: /usr/local/share/attract/intro/intro.mp4
ERROR loading video: /usr/local/share/attract/intro/intro.mp4
1.33333 using settings[4x3][aspectDepend][res_x] : 1600
using settings[4x3][aspectDepend][res_y] : 1200
using settings[4x3][aspectDepend][maskFactor] : 1.6
using settings[4x3][aspectDepend][snap_skewX] : 62.5
using settings[4x3][aspectDepend][snap_skewY] : -12.9
using settings[4x3][aspectDepend][snap_pinchX] : 0
using settings[4x3][aspectDepend][snap_pinchY] : 40
using settings[4x3][aspectDepend][snap_rotation] : 1
using settings[4x3][aspectDepend][snap_skewX] : 62.5
using settings[4x3][aspectDepend][snap_skewY] : -12.9
using settings[4x3][aspectDepend][snap_pinchX] : 0
using settings[4x3][aspectDepend][snap_pinchY] : 40
using settings[4x3][aspectDepend][snap_rotation] : 1
using settings[4x3][aspectDepend][snap_skewX] : 62.5
using settings[4x3][aspectDepend][snap_skewY] : -12.9
using settings[4x3][aspectDepend][snap_pinchX] : 0
using settings[4x3][aspectDepend][snap_pinchY] : 40
using settings[4x3][aspectDepend][snap_rotation] : 1
settings[4x3][aspectDepend][marquee_skewX] does not exist
using default value: 17
settings[4x3][aspectDepend][marquee_skewY] does not exist
using default value: 0
settings[4x3][aspectDepend][marquee_pinchX] does not exist
using default value: -2
settings[4x3][aspectDepend][marquee_pinchY] does not exist
using default value: 7
settings[4x3][aspectDepend][marquee_rotation] does not exist
using default value: 6.2
settings[4x3][aspectDepend][marquee_skewX] does not exist
using default value: 17
settings[4x3][aspectDepend][marquee_skewY] does not exist
using default value: 0
settings[4x3][aspectDepend][marquee_pinchX] does not exist
using default value: -2
settings[4x3][aspectDepend][marquee_pinchY] does not exist
using default value: 7
settings[4x3][aspectDepend][marquee_rotation] does not exist
using default value: 6.2
using settings[4x3][aspectDepend][wheelNumElements] : 10
- Loaded layout: /home/robee/.attract/layouts/nevato/ (layout.nut)
*** Running: /home/mame/groovymame -v gryzor1
SwitchRes: v0.016_final, Monitor: lcd, Orientation: horizontal, Modeline generation: enabled
SwitchRes: Using default vfreq range for LCD 59.000000-61.000000
SwitchRes: Found output connector 'DVI-I-1'
SwitchRes: Creating automatic specs for LCD based on VESA GTF
SwitchRes: Monitor range 73278.00-75762.00,59.00-61.00,0.696,1.044,1.740,0.013,0.040,0.510,0,1,1200,1200,0,0
SwitchRes: -resolution was set at command line or in .ini file as 1600x1200@60
SwitchRes: Entering switchres_modeline_setup
SwitchRes: v0.016_final:[gryzor1] Calculating best video mode for 224x280@60.000000 orientation: rotated
SwitchRes: [1600]x[1200]_(60=60.000000Hz)
rng(0): 1600 x1200_60.000000p 74.520000 [integ] scale(4, 4, 1) diff(0.44, 8.05, 0.0000) ratio(7.143, 4.286)
SwitchRes: [gryzor1] (1) vertical (224x280@60.000000)->(1600x1200@60.000000)
rng(0): 1600 x1200_60.000000p 74.520000 [integ] scale(4, 4, 1) diff(0.44, 8.05, 0.0000) ratio(7.143, 4.286)
SwitchRes: Modeline "1600x1200_60 74.520000KHz 60.000000Hz" 160.963200 1600 1712 1880 2160 1200 1201 1204 1242 -hsync +vsync
SwitchRes: Running 'xrandr --newmode "1600x1200_60.000000" 160.963200 1600 1712 1880 2160 1200 1201 1204 1242 -hsync +vsync'
SwitchRes: Running 'xrandr --addmode DVI-I-1 "1600x1200_60.000000"'
SwitchRes: Running 'xrandr --output DVI-I-1 --mode "1600x1200_60.000000"'
SwitchRes: Setting option -rotate
SwitchRes: Setting option -noror
SwitchRes: Setting option -noautoror
SwitchRes: Setting option -norol
SwitchRes: Setting option -noautorol
SwitchRes: Setting option -keepaspect
SwitchRes: Setting option -nounevenstretch
SwitchRes: Setting option -nounevenstretchx
SwitchRes: Setting option -noblack_frame_insertion
SwitchRes: Setting option -nosyncrefresh
SwitchRes: Setting option -nowaitvsync
SwitchRes: Setting option -nofilter
Available videodrivers: x11 wayland dummy
Current Videodriver: x11
Display #0
Renderdrivers:
opengl (0x0)
opengles2 (0x0)
opengles (0x0)
software (0x0)
Available audio drivers:
pulseaudio
alsa
dsp
disk
dummy
Build version: 0.182 (unknown)
Build architecure:
Build defines 1: SDLMAME_UNIX=1 SDLMAME_X11=1 SDLMAME_LINUX=1
Build defines 1: LSB_FIRST=1 PTR64=1
SDL/OpenGL defines: SDL_COMPILEDVERSION=2005 USE_OPENGL=1
Compiler defines A: __GNUC__=6 __GNUC_MINOR__=2 __GNUC_PATCHLEVEL__=1 __VERSION__="6.2.1 20160830"
Compiler defines B: __amd64__=1 __x86_64__=1 __unix__=1
Compiler defines C: __USE_FORTIFY_LEVEL=0
Enter init_monitors
Adding monitor screen0 (1600 x 1200)
Leave init_monitors
Enter sdlwindow_init
Using SDL multi-window OpenGL driver (SDL 2.0+)
/dev/dri/card0 successfully opened
Hints:
SDL_FRAMEBUFFER_ACCELERATION (null)
SDL_RENDER_DRIVER (null)
SDL_RENDER_OPENGL_SHADERS (null)
SDL_RENDER_SCALE_QUALITY (null)
SDL_RENDER_VSYNC (null)
SDL_VIDEO_X11_XVIDMODE (null)
SDL_VIDEO_X11_XINERAMA (null)
SDL_VIDEO_X11_XRANDR (null)
SDL_GRAB_KEYBOARD (null)
SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS (null)
SDL_IOS_IDLE_TIMER_DISABLED (null)
SDL_IOS_ORIENTATIONS (null)
SDL_XINPUT_ENABLED (null)
SDL_GAMECONTROLLERCONFIG (null)
SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS (null)
SDL_ALLOW_TOPMOST (null)
SDL_TIMER_RESOLUTION (null)
SDL_RENDER_DIRECT3D_THREADSAFE (null)
SDL_VIDEO_ALLOW_SCREENSAVER (null)
SDL_ACCELEROMETER_AS_JOYSTICK (null)
SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK (null)
SDL_VIDEO_WIN_D3DCOMPILER (null)
SDL_VIDEO_WINDOW_SHARE_PIXEL_FORMAT (null)
SDL_VIDEO_MAC_FULLSCREEN_SPACES (null)
SDL_MOUSE_RELATIVE_MODE_WARP (null)
SDL_RENDER_DIRECT3D11_DEBUG (null)
SDL_VIDEO_HIGHDPI_DISABLED (null)
SDL_WINRT_PRIVACY_POLICY_URL (null)
SDL_WINRT_PRIVACY_POLICY_LABEL (null)
SDL_WINRT_HANDLE_BACK_BUTTON (null)
Leave sdlwindow_init
unzip: opened archive file artwork/contra.zip
unzip: found artwork/contra.zip ECD
unzip: artwork/contra.zip has no ZIP64 ECD locator
unzip: read artwork/contra.zip central directory
unzip: closing archive file artwork/contra.zip and sending to cache
unzip: found artwork/contra.zip in cache
unzip: opened archive file artwork/contra.zip
unzip: closing archive file artwork/contra.zip and sending to cache
Enter sdl_info::create
OpenGL: nouveau
OpenGL: Gallium 0.4 on NVC8
OpenGL: 3.0 Mesa 13.0.2
OpenGL: texture rectangle supported
OpenGL: non-power-of-2 textures supported (new method)
OpenGL: vertex buffer supported
OpenGL: pixel buffers supported
OpenGL: framebuffer object supported
OpenGL: GLSL supported, but disabled
OpenGL: max texture size 16384 x 16384
Leave renderer_ogl::create
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
PortAudio: API ALSA has 11 devices
PortAudio: ALSA: "HDA Intel: ALC888 Analog (hw:0,0)"
PortAudio: ALSA: "HDA Intel: ALC888 Digital (hw:0,1)" (default)
PortAudio: ALSA: "HDA Intel: ALC888 Alt Analog (hw:0,2)"
PortAudio: ALSA: "HDA NVidia: HDMI 0 (hw:1,3)"
PortAudio: ALSA: "HDA NVidia: HDMI 0 (hw:1,7)"
PortAudio: ALSA: "HDA NVidia: HDMI 0 (hw:1,8)"
PortAudio: ALSA: "HDA NVidia: HDMI 0 (hw:1,9)"
PortAudio: ALSA: "sysdefault"
PortAudio: ALSA: "iec958"
PortAudio: ALSA: "spdif"
PortAudio: ALSA: "default"
PortAudio: API OSS has 0 devices
PortAudio: Unable to find specified API or device or none set, reverting to default
PortAudio: Using device "HDA Intel: ALC888 Digital (hw:0,1)" on API "ALSA"
PortAudio: Sample rate is 48000 Hz, device output latency is 5.75 ms
PortAudio: Allowed additional buffering latency is 10.00 ms/480 frames
Keyboard: Start initialization
Input: Adding keyboard #0: System keyboard (device id: System keyboard)
Keyboard: Registered System keyboard
Keyboard: End initialization
Mouse: Start initialization
Input: Adding mouse #0: System mouse (device id: System mouse)
Mouse: Registered System mouse
Mouse: End initialization
Joystick: Start initialization
Input: Adding joystick #0: UltimarcIPAC2UltimarcIPAC2 (device id: UltimarcIPAC2UltimarcIPAC2)
Joystick: Ultimarc IPAC 2 Ultimarc IPAC 2
Joystick: ... 4 axes, 32 buttons 1 hats 0 balls
Joystick: ... Physical id 0 mapped to logical id 1
Joystick: End initialization
unzip: found artwork/contra.zip in cache
unzip: closing archive file artwork/contra.zip and sending to cache
unzip: found artwork/contra.zip in cache
unzip: opened archive file artwork/contra.zip
unzip: closing archive file artwork/contra.zip and sending to cache
OpenGL: VBO supported
OpenGL: PBO supported
OpenGL: FBO supported
OpenGL: using vid filter: 0
Region ':maincpu' created
unzip: opened archive file roms/gryzor1.zip
unzip: found roms/gryzor1.zip ECD
unzip: roms/gryzor1.zip has no ZIP64 ECD locator
unzip: read roms/gryzor1.zip central directory
unzip: closing archive file roms/gryzor1.zip and sending to cache
unzip: found roms/gryzor1.zip in cache
unzip: opened archive file roms/gryzor1.zip
unzip: closing archive file roms/gryzor1.zip and sending to cache
Region ':audiocpu' created
unzip: found roms/gryzor1.zip in cache
unzip: closing archive file roms/gryzor1.zip and sending to cache
unzip: opened archive file roms/contra.zip
unzip: found roms/contra.zip ECD
unzip: roms/contra.zip has no ZIP64 ECD locator
unzip: read roms/contra.zip central directory
unzip: closing archive file roms/contra.zip and sending to cache
Region ':gfx1' created
unzip: found roms/gryzor1.zip in cache
unzip: closing archive file roms/gryzor1.zip and sending to cache
unzip: found roms/contra.zip in cache
unzip: opened archive file roms/contra.zip
unzip: closing archive file roms/contra.zip and sending to cache
unzip: found roms/gryzor1.zip in cache
unzip: closing archive file roms/gryzor1.zip and sending to cache
unzip: found roms/contra.zip in cache
unzip: opened archive file roms/contra.zip
unzip: closing archive file roms/contra.zip and sending to cache
Region ':gfx2' created
unzip: found roms/gryzor1.zip in cache
unzip: closing archive file roms/gryzor1.zip and sending to cache
unzip: found roms/contra.zip in cache
unzip: opened archive file roms/contra.zip
unzip: closing archive file roms/contra.zip and sending to cache
unzip: found roms/gryzor1.zip in cache
unzip: closing archive file roms/gryzor1.zip and sending to cache
unzip: found roms/contra.zip in cache
unzip: opened archive file roms/contra.zip
unzip: closing archive file roms/contra.zip and sending to cache
Region ':proms' created
unzip: found roms/gryzor1.zip in cache
unzip: closing archive file roms/gryzor1.zip and sending to cache
unzip: found roms/contra.zip in cache
unzip: opened archive file roms/contra.zip
unzip: closing archive file roms/contra.zip and sending to cache
unzip: found roms/gryzor1.zip in cache
unzip: closing archive file roms/gryzor1.zip and sending to cache
unzip: found roms/contra.zip in cache
unzip: opened archive file roms/contra.zip
unzip: closing archive file roms/contra.zip and sending to cache
unzip: found roms/gryzor1.zip in cache
unzip: closing archive file roms/gryzor1.zip and sending to cache
unzip: found roms/contra.zip in cache
unzip: opened archive file roms/contra.zip
unzip: closing archive file roms/contra.zip and sending to cache
unzip: found roms/gryzor1.zip in cache
unzip: closing archive file roms/gryzor1.zip and sending to cache
unzip: found roms/contra.zip in cache
unzip: opened archive file roms/contra.zip
unzip: closing archive file roms/contra.zip and sending to cache
Region ':pals' created
unzip: found roms/gryzor1.zip in cache
unzip: closing archive file roms/gryzor1.zip and sending to cache
unzip: found roms/contra.zip in cache
unzip: closing archive file roms/contra.zip and sending to cache
unzip: found roms/gryzor1.zip in cache
unzip: closing archive file roms/gryzor1.zip and sending to cache
007766.20d.bin NOT FOUND (NO GOOD DUMP KNOWN) (tried in gryzor1 contra gryzor1)
WARNING: the machine might not run correctly.
Starting Gryzor (set 2) ':'
(missing dependencies; rescheduling)
Starting HD6309 ':maincpu'
Starting M6809 ':audiocpu'
Starting Video Screen ':screen'
(missing dependencies; rescheduling)
Starting gfxdecode ':gfxdecode'
Starting palette ':palette'
Starting K007121 Sprite/Tilemap Controller ':k007121_1'
Starting K007121 Sprite/Tilemap Controller ':k007121_2'
Starting Speaker ':lspeaker'
(missing dependencies; rescheduling)
Starting Speaker ':rspeaker'
(missing dependencies; rescheduling)
Starting Generic 8-bit latch ':soundlatch'
Starting YM2151 ':ymsnd'
Starting Gryzor (set 2) ':'
(missing dependencies; rescheduling)
Starting Video Screen ':screen'
Starting Speaker ':lspeaker'
Starting Speaker ':rspeaker'
Starting Gryzor (set 2) ':'
Starting Gryzor (set 2)
hiscore: found hiscore.dat entry for gryzor1
Searching font Liberation Sans in -. path/s
font Liberation Sans|Regular is not TrueType or BDF, using MAME default
GL texture: copy 1, shader 0, dynamic 1, 280x224 280x224 [PALETTE16, Equal: 0, Palette: 1,
scale 1x1, border 0, pitch 296,280/16384], bytes/pix 4
GL texture: copy 1, shader 0, dynamic 1, 280x224 280x224 [PALETTE16, Equal: 0, Palette: 1,
scale 1x1, border 0, pitch 296,280/16384], bytes/pix 4
hiscore: scores read
Average speed: 99.52% (9 seconds)
Sound: overflows=5 underflows=8
Enter sdlwindow_exit
Leave sdlwindow_exit
SwitchRes: Restoring desktop resolution: 1600x1200
SwitchRes: Running 'xrandr --output DVI-I-1 --mode 1600x1200'
SwitchRes: Running 'xrandr --delmode DVI-I-1 "1600x1200_60.000000"'
SwitchRes: Running 'xrandr --rmmode "1600x1200_60.000000"'