Segmentation fault when playing specific games
-
I have been using retropie for years and I have never had that problem before. When launching some games, I get a segmentation fault . In this case, I can replicate it consistently with the Asteroids games for Mame.
This is the output of the runcommand log file:
pi@retropie:~ $ cat /dev/shm/runcommand.log Parameters: Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mame2000/mame2000_libretro.so --config /opt/retropie/configs/arcade/retroarch.cfg "/home/pi/RetroPie/roms/arcade/asteroid.zip" --verbose --appendconfig /dev/shm/retroarch.cfg [INFO] RetroArch 1.8.8 (Git 9552f87) [INFO] Redirecting save file to "/home/pi/RetroPie/savegames/asteroid.srm". [INFO] Redirecting save state to "/home/pi/RetroPie/savegames/asteroid.state". [INFO] === Build ======================================= [INFO] Capabilities: NEON VFPv3 VFPv4 [INFO] Built: Nov 2 2020 [INFO] Version: 1.8.8 [INFO] Git: 9552f87 [INFO] ================================================= [INFO] Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-mame2000/mame2000_libretro.so" [INFO] [Overrides] no core-specific overrides found at /home/pi/.config/retroarch/config/MAME 2000/MAME 2000.cfg. [INFO] [Overrides] no content-dir-specific overrides found at /home/pi/.config/retroarch/config/MAME 2000/arcade.cfg. [INFO] [Overrides] no game-specific overrides found at /home/pi/.config/retroarch/config/MAME 2000/asteroid.cfg. [INFO] [Environ]: SET_VARIABLES. [INFO] [Remaps]: remap directory: /opt/retropie/configs/arcade/ [INFO] Redirecting save file to "/home/pi/RetroPie/savegames/asteroid.srm". [INFO] Redirecting save state to "/home/pi/RetroPie/savegames/asteroid.state". [INFO] Content loading skipped. Implementation will load it on its own. [INFO] [Environ]: SET_INPUT_DESCRIPTORS: [INFO] [Environ]: SET_PIXEL_FORMAT: RGB565. [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/pi/RetroPie/BIOS". CONTENT_DIRECTORY: /home/pi/RetroPie/roms/arcade/ SYSTEM_DIRECTORY: /home/pi/RetroPie/BIOS SAVE_DIRECTORY: /home/pi/RetroPie/savegames MAME2000_SYS_DIRECTORY: /home/pi/RetroPie/BIOS/mame2000 MAME2000_SAVE_DIRECTORY: /home/pi/RetroPie/savegames/mame2000 loading 035145.02 loading 035144.02 loading 035143.02 loading 035127.02 [INFO] Skipping SRAM load.. [INFO] Version of libretro API: 1 [INFO] Compiled against API: 1 [INFO] [Cheats]: Load game-specific cheatfile: /home/pi/.config/retroarch/cheats/MAME 2000/asteroid.cht [INFO] [Audio]: Set audio input rate to: 32000.00 Hz. [INFO] [Video]: Video @ 1920x1080 [INFO] [Video]: Starting threaded video driver ... [INFO] [DRM]: Found 1 connectors. [INFO] [DRM]: Connector 0 connected: yes [INFO] [DRM]: Connector 0 has 36 modes. [INFO] [DRM]: Connector 0 assigned to monitor index: #1. [INFO] [DRM]: Mode 0: (1920x1080) 1920 x 1080, 60 Hz [INFO] [DRM]: Mode 1: (4096x2160) 4096 x 2160, 30 Hz [INFO] [DRM]: Mode 2: (4096x2160) 4096 x 2160, 30 Hz [INFO] [DRM]: Mode 3: (4096x2160) 4096 x 2160, 25 Hz [INFO] [DRM]: Mode 4: (4096x2160) 4096 x 2160, 24 Hz [INFO] [DRM]: Mode 5: (4096x2160) 4096 x 2160, 24 Hz [INFO] [DRM]: Mode 6: (3840x2160) 3840 x 2160, 30 Hz [INFO] [DRM]: Mode 7: (3840x2160) 3840 x 2160, 30 Hz [INFO] [DRM]: Mode 8: (3840x2160) 3840 x 2160, 25 Hz [INFO] [DRM]: Mode 9: (3840x2160) 3840 x 2160, 24 Hz [INFO] [DRM]: Mode 10: (3840x2160) 3840 x 2160, 24 Hz [INFO] [DRM]: Mode 11: (1920x1080) 1920 x 1080, 60 Hz [INFO] [DRM]: Mode 12: (1920x1080i) 1920 x 1080, 60 Hz [INFO] [DRM]: Mode 13: (1920x1080i) 1920 x 1080, 60 Hz [INFO] [DRM]: Mode 14: (1920x1080) 1920 x 1080, 50 Hz [INFO] [DRM]: Mode 15: (1920x1080i) 1920 x 1080, 50 Hz [INFO] [DRM]: Mode 16: (1920x1080) 1920 x 1080, 30 Hz [INFO] [DRM]: Mode 17: (1920x1080) 1920 x 1080, 30 Hz [INFO] [DRM]: Mode 18: (1920x1080) 1920 x 1080, 25 Hz [INFO] [DRM]: Mode 19: (1920x1080) 1920 x 1080, 24 Hz [INFO] [DRM]: Mode 20: (1920x1080) 1920 x 1080, 24 Hz [INFO] [DRM]: Mode 21: (1280x1024) 1280 x 1024, 60 Hz [INFO] [DRM]: Mode 22: (1360x768) 1360 x 768, 60 Hz [INFO] [DRM]: Mode 23: (1152x864) 1152 x 864, 60 Hz [INFO] [DRM]: Mode 24: (1280x720) 1280 x 720, 60 Hz [INFO] [DRM]: Mode 25: (1280x720) 1280 x 720, 60 Hz [INFO] [DRM]: Mode 26: (1280x720) 1280 x 720, 50 Hz [INFO] [DRM]: Mode 27: (1024x768) 1024 x 768, 60 Hz [INFO] [DRM]: Mode 28: (800x600) 800 x 600, 60 Hz [INFO] [DRM]: Mode 29: (720x576) 720 x 576, 50 Hz [INFO] [DRM]: Mode 30: (720x576i) 720 x 576, 50 Hz [INFO] [DRM]: Mode 31: (720x480) 720 x 480, 60 Hz [INFO] [DRM]: Mode 32: (720x480) 720 x 480, 60 Hz [INFO] [DRM]: Mode 33: (640x480) 640 x 480, 60 Hz [INFO] [DRM]: Mode 34: (640x480) 640 x 480, 60 Hz [INFO] [DRM]: Mode 35: (720x400) 720 x 400, 70 Hz [INFO] [GL]: Found GL context: kms [INFO] [GL]: Detecting screen resolution 1920x1080. [INFO] [EGL] Found EGL client version >= 1.5, trying eglGetPlatformDisplay [INFO] [EGL]: EGL version: 1.4 [INFO] [EGL]: Current context: 0xae139b20. [INFO] [KMS]: New FB: 1920x1080 (stride: 7680). [INFO] [GL]: Vendor: Broadcom, Renderer: V3D 4.2. [INFO] [GL]: Version: OpenGL ES 3.1 Mesa 19.3.2. [INFO] [GL]: Using resolution 1920x1080 [INFO] [GL]: Default shader backend found: glsl. [INFO] [Shaders]: preset directory: /home/pi/.config/retroarch/config [INFO] [Shaders]: preset directory: /opt/retropie/configs/arcade/ [INFO] [Shaders]: preset directory: /home/pi/.config/retroarch/shaders/presets [INFO] [Shader driver]: Using GLSL shader backend. [WARN] [GL]: Stock GLSL shaders will be used. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GL]: Using 4 textures. [INFO] [GL]: Loaded 1 program(s). [WARN] [udev]: Couldn't open any keyboard, mouse or touchpad. Are permissions set correctly for /dev/input/event*? [INFO] [udev]: Plugged pad: Sony PLAYSTATION(R)3 Controller (1356:616) on port #0. [INFO] [udev]: Pad #0 (/dev/input/event2) supports force feedback. [INFO] [udev]: Pad #0 (/dev/input/event2) supports 16 force feedback effects. [INFO] [Joypad]: Found joypad driver: "udev". [INFO] [Font]: Using font rendering backend: stb-unicode. [INFO] [Video]: Found display server: null [INFO] Found shader "/home/pi/.config/retroarch/shaders/2xsal-level2-crt.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/2xsal.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/2xScaleHQ.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/barrel-distortion.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/barrel-distortion_lanczos4.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/barrel-distortion_phosphor.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/barrel-distortion_snes.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/Brighter-with_Contrast.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/bsnes_gamma_ramp.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/crt-pi-curvature-vertical.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/crt-pi-curvature.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/crt-pi-vertical.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/crt-pi.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/gameboy-screen-grid.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/gameboy.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/gameboy2.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/gba-color.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/hq2x&lcd3x.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/hq2x.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/hq2x2.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/hq2x_lcd3x.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/hq2x_phosphor.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/hq2xwaterpaint.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/hq2xwaterpaintscanline.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/hq4x.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/hq4x_lcd3x.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/nds-color.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/nds.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/nedi.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/palm-color.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/phosphor.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/psp-color.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/sharp-bilinear-2x-prescale.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/sharp-bilinear-scanlines.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/sharp-bilinear-simple.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/snes.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/snes2.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_hq2x.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_hq2xwaterpaint.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_hq2xwaterpainthicontrast.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_hq2xwaterpaintscanline.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_lcd3x.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_phosphor.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_scanline.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_waterpaint.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/stock.glsl" [INFO] Found shader "/home/pi/.config/retroarch/shaders/super-2xsai.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/super-eagle.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/vba-color.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/xbr-lv1-noblend.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/zfast_crt_curve.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/zfast_crt_curve_vertical.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/zfast_crt_standard.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/zfast_crt_standard_vertical.glslp" [INFO] Found shader "/home/pi/.config/retroarch/shaders/zfast_lcd_standard.glslp" [INFO] [ALSA]: Using signed 16-bit format. [INFO] [ALSA]: Period size: 768 frames [INFO] [ALSA]: Buffer size: 3072 frames [INFO] [ALSA]: Can pause: no. [INFO] [Menu]: Found menu display driver: "gl". [INFO] [Font]: Using font rendering backend: stb-unicode. [INFO] [Font]: Using font rendering backend: stb-unicode. [INFO] [Font]: Using font rendering backend: stb-unicode. [INFO] [Menu]: Found menu display driver: "gl". [INFO] [Font]: Using font rendering backend: stb-unicode. [INFO] [Font]: Using font rendering backend: stb-unicode. [INFO] [Font]: Using font rendering backend: stb-unicode. [INFO] [Font]: Using font rendering backend: stb-unicode. [INFO] [Font]: Using font rendering backend: stb-unicode. [INFO] [Font]: Using font rendering backend: stb-unicode. [INFO] [LED]: LED driver = 'null' 0x4b477c [INFO] [MIDI]: Initializing ... [INFO] [MIDI]: Input disabled. [INFO] [MIDI]: Output disabled. [INFO] [MIDI]: Initialized "alsa" driver. [INFO] Loading history file: [/opt/retropie/configs/arcade/content_history.lpl]. [INFO] Loading history file: [/opt/retropie/configs/arcade/content_music_history.lpl]. [INFO] Loading history file: [/opt/retropie/configs/arcade/content_video_history.lpl]. [INFO] Loading history file: [/opt/retropie/configs/arcade/content_image_history.lpl]. [INFO] Loading favorites file: [/opt/retropie/configs/arcade/content_favorites.lpl]. [INFO] [KMS]: New FB: 1920x1080 (stride: 7680). [INFO] [KMS]: New FB: 1920x1080 (stride: 7680). /opt/retropie/supplementary/runcommand/runcommand.sh: line 1283: 8151 Segmentation fault /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mame2000/mame2000_libretro.so --config /opt/retropie/configs/arcade/retroarch.cfg "/home/pi/RetroPie/roms/arcade/asteroid.zip" --verbose --appendconfig /dev/shm/retroarch.cfg
I thought it may have something to do with the retropie version, but I just updated everything right now and restarted my RPI4, and the problem persist.
I have played this game multiple times in this machine with the same configuration, without any issues.
Any ideas what could be happening?
Edit: It seems to be only this game. All other games I have tried from the same romset (Mame 037b5) run just fine with mame2000. But it used to work in the past...
-
@xwons maybe some core changes or some issue due to newer GCC. It's a very old codebase. It's not a good emulator choice btw for anything but a raspberry pi 1/0 - you would do better to use at least mame2003 (or advancemame with some configuration can be excellent for vector games).
-
@buzz Thanks for your response.
I might be that. I used that specific version of mame because I already had some roms from the appropiate romset.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.