Segfault with GBA emulators on Raspberry Pi4
-
Pi Model or other hardware: Pi4
Power Supply used: Power Over Ethernet HAT
RetroPie Version Used: 4.8.6
Built From: Raspberry Pi Imager 1.8.3
USB Devices connected: None
Controller used: Logitech K400r keyboard and APower Nintendo switch wired controller
Error messages received: none, launch rom goes to black screen then back to launcher
Verbose log (if relevant): Below
Guide used: Not a guide, but found the most similarities with this thread. https://retropie.org.uk/forum/topic/34770/segmentation-faults-in-runcommand-sh-when-running-n64-games
File: /opt/retropie/supplementary/runcommand/runcommand.sh: line 1319
Emulator: All GBA avaliable
How to replicate the problem: I used the imager, then put the BIOS and roms in the correct locations. Emulationstation gave me the GBA launcher and launched rom.From the thread i referenced, the only thing that i could think of is that it is a problem with the lr- retroarch emulators. And I don't see any standalone GBA emulators for the Pi4.
Any help would be greatly appreciated even if it is to say that I'm out of luck.
Thank you in advance.
Verbos Log:
Blockquote
Parameters:
Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-gpsp/gpsp_libretro.so --config /opt/retropie/configs/gba/retroarch.cfg "/home/pi/RetroPie/roms/gba/PokemonFireRed.gba" --verbose --appendconfig /dev/shm/retroarch.cfg
[WARN] [GameMode]: GameMode cannot be enabled on this system ("dlopen failed - libgamemode.so: cannot open shared object file: No such file or directory.") https://github.com/FeralInteractive/gamemode needs to be installed.
[WARN] [Config]: GameMode unsupported - disabling..
[INFO] RetroArch 1.16.0 (Git e89a7ce)
[INFO] Saving files in content directory is set. This overrides other save file directory settings.
[INFO] Saving save states in content directory is set. This overrides other save state file directory settings.
[INFO] === Build =======================================
[INFO] CPU Model Name: ARMv7 Processor rev 3 (v7l)
[INFO] Capabilities: NEON VFPV3 VFPV4
[INFO] Version: 1.16.0
[INFO] Git: e89a7ce
[INFO] Built: Nov 19 2023
[INFO] =================================================
[INFO] [Input]: Found input driver: "x".
[INFO] [Core]: Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-gpsp/gpsp_libretro.so"
[INFO] [Config]: Loading config: "/opt/retropie/configs/gba/retroarch.cfg".
[INFO] [Config]: Appending config: "/dev/shm/retroarch.cfg".
[INFO] [Environ]: GET_LOG_INTERFACE.
[INFO] [Environ]: GET_PERF_INTERFACE.
[INFO] [Environ]: GET_VFS_INTERFACE. Core requested version >= V2, providing V3.
[INFO] [Environ]: GET_CORE_OPTIONS_VERSION.
[INFO] [Environ]: GET_LANGUAGE: "30".
[INFO] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_INTL.
[INFO] Saving files in content directory is set. This overrides other save file directory settings.
[INFO] Saving save states in content directory is set. This overrides other save state file directory settings.
[INFO] [Overrides]: Redirecting save file to "/home/pi/RetroPie/roms/gba/PokemonFireRed.srm".
[INFO] [Overrides]: Redirecting save state to "/home/pi/RetroPie/roms/gba/PokemonFireRed.state".
[INFO] [Content]: Content loading skipped. Implementation will load it on its own.
[INFO] [Environ]: SET_AUDIO_BUFFER_STATUS_CALLBACK.
[INFO] [Environ]: SET_INPUT_DESCRIPTORS:
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] [Environ]: SYSTEM_DIRECTORY: "/home/pi/RetroPie/BIOS".
[INFO] [Environ]: GET_RUMBLE_INTERFACE.
[INFO] [Environ]: SET_MEMORY_MAPS.
[INFO] [Replay]: Found last replay slot: #0
[INFO] [SRAM]: Skipping SRAM load.
[INFO] [Core]: Version of libretro API: 1, Compiled against API: 1
[INFO] [Core]: Geometry: 240x160, Aspect: 1.500, FPS: 59.73, Sample rate: 65536.00 Hz.
[INFO] [Audio]: Set audio input rate to: 65835.00 Hz.
[INFO] [Video]: Set video size to: 1920x1080.
[INFO] [Video]: Starting threaded video driver..
[INFO] [DRM]: Found 1 connectors.
[INFO] [DRM]: Connector 0 connected: yes
[INFO] [DRM]: Connector 0 has 38 modes.
[INFO] [DRM]: Connector 0 assigned to monitor index: #1.
[INFO] [DRM]: Mode 0: (1920x1080) 1920 x 1080, 60.000000 Hz
[INFO] [DRM]: Mode 1: (1920x1080) 1920 x 1080, 59.940201 Hz
[INFO] [DRM]: Mode 2: (1920x1080i) 1920 x 1080, 30.000000 Hz
[INFO] [DRM]: Mode 3: (1920x1080i) 1920 x 1080, 29.970100 Hz
[INFO] [DRM]: Mode 4: (1920x1080) 1920 x 1080, 50.000000 Hz
[INFO] [DRM]: Mode 5: (1920x1080i) 1920 x 1080, 25.000000 Hz
[INFO] [DRM]: Mode 6: (1920x1080) 1920 x 1080, 24.000000 Hz
[INFO] [DRM]: Mode 7: (1920x1080) 1920 x 1080, 23.976080 Hz
[INFO] [DRM]: Mode 8: (1680x1050) 1680 x 1050, 59.883251 Hz
[INFO] [DRM]: Mode 9: (1280x1024) 1280 x 1024, 75.024673 Hz
[INFO] [DRM]: Mode 10: (1280x1024) 1280 x 1024, 60.019741 Hz
[INFO] [DRM]: Mode 11: (1440x900) 1440 x 900, 59.901459 Hz
[INFO] [DRM]: Mode 12: (1280x960) 1280 x 960, 60.000000 Hz
[INFO] [DRM]: Mode 13: (1280x800) 1280 x 800, 59.909546 Hz
[INFO] [DRM]: Mode 14: (1152x864) 1152 x 864, 75.000000 Hz
[INFO] [DRM]: Mode 15: (1280x720) 1280 x 720, 60.000000 Hz
[INFO] [DRM]: Mode 16: (1280x720) 1280 x 720, 59.940201 Hz
[INFO] [DRM]: Mode 17: (1280x720) 1280 x 720, 50.000000 Hz
[INFO] [DRM]: Mode 18: (1024x768) 1024 x 768, 75.028580 Hz
[INFO] [DRM]: Mode 19: (1024x768) 1024 x 768, 70.069359 Hz
[INFO] [DRM]: Mode 20: (1024x768) 1024 x 768, 60.003841 Hz
[INFO] [DRM]: Mode 21: (832x624) 832 x 624, 74.551270 Hz
[INFO] [DRM]: Mode 22: (800x600) 800 x 600, 75.000000 Hz
[INFO] [DRM]: Mode 23: (800x600) 800 x 600, 72.187569 Hz
[INFO] [DRM]: Mode 24: (800x600) 800 x 600, 60.316540 Hz
[INFO] [DRM]: Mode 25: (800x600) 800 x 600, 56.250000 Hz
[INFO] [DRM]: Mode 26: (720x576) 720 x 576, 50.000000 Hz
[INFO] [DRM]: Mode 27: (720x576i) 720 x 576, 25.000000 Hz
[INFO] [DRM]: Mode 28: (720x480) 720 x 480, 60.000000 Hz
[INFO] [DRM]: Mode 29: (720x480) 720 x 480, 59.940060 Hz
[INFO] [DRM]: Mode 30: (720x480i) 720 x 480, 30.001110 Hz
[INFO] [DRM]: Mode 31: (720x480i) 720 x 480, 29.970030 Hz
[INFO] [DRM]: Mode 32: (640x480) 640 x 480, 75.000000 Hz
[INFO] [DRM]: Mode 33: (640x480) 640 x 480, 72.808800 Hz
[INFO] [DRM]: Mode 34: (640x480) 640 x 480, 66.666664 Hz
[INFO] [DRM]: Mode 35: (640x480) 640 x 480, 60.000000 Hz
[INFO] [DRM]: Mode 36: (640x480) 640 x 480, 59.940475 Hz
[INFO] [DRM]: Mode 37: (720x400) 720 x 400, 70.081665 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: 0xac529400.
[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] [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).
[INFO] [udev]: Keyboard #0: "Logitech K400" (/dev/input/event0).
[INFO] [udev]: Keyboard #1: "" (/dev/input/mouse0).
[INFO] [udev]: Mouse/Touch #0: "Logitech K400" (REL) /dev/input/event0.
[INFO] [udev]: Pad #0 (/dev/input/event4) supports 0 force feedback effects.
[INFO] [Autoconf]: Bensussen Deutsch & Associates,Inc.(BDA) Core (Plus) Wired Controller configured in port 1.
[INFO] [Joypad]: Found joypad driver: "udev".
[INFO] [Video]: Found display server: "kms".
[INFO] [ALSA]: Using ALSA version 1.1.8
[INFO] [ALSA]: Using FLOAT_LE sample format for PLAYBACK device "default"
[INFO] [ALSA]: Period: 4 periods per buffer (768 frames, 6144 bytes)
[INFO] [ALSA]: Buffer size: 3072 frames (24576 bytes)
[INFO] [ALSA]: Can pause: no.
[INFO] [ALSA]: Initialized PLAYBACK device "default"
[INFO] [Audio]: Started synchronous audio driver.
[INFO] [ALSA] Using ALSA version 1.1.8
[INFO] [Microphone]: Initialized microphone driver.
[INFO] [Display]: Found display driver: "gl".
[INFO] [Playlist]: Loading history file: "/opt/retropie/configs/gba/content_history.lpl".
[INFO] [Playlist]: Loading history file: "/opt/retropie/configs/gba/content_music_history.lpl".
[INFO] [Playlist]: Loading history file: "/opt/retropie/configs/gba/content_video_history.lpl".
[INFO] [Playlist]: Loading history file: "/opt/retropie/configs/gba/content_image_history.lpl".
[INFO] [Playlist]: Loading favourites file: "/opt/retropie/configs/gba/content_favorites.lpl".
[INFO] [Environ]: RETRO_ENVIRONMENT_SET_MINIMUM_AUDIO_LATENCY.
/opt/retropie/supplementary/runcommand/runcommand.sh: line 1319: 2866 Segmentation fault /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-gpsp/gpsp_libretro.so --config /opt/retropie/configs/gba/retroarch.cfg "/home/pi/RetroPie/roms/gba/PokemonFireRed.gba" --verbose --appendconfig /dev/shm/retroarch.cfg
-
@KingIceMan said in Segfault with GBA emulators on Raspberry Pi4:
From the thread i referenced, the only thing that i could think of is that it is a problem with the lr- retroarch emulators. And I don't see any standalone GBA emulators for the Pi4.
Yes, there are no standalone GBA emulators, but there are several libretro-based ones. Install
lr-mgba
, it should have better compatibility and it's still developed. But I'd also check that the BIOS file is correct (gba.bin
), even if old, GPSP should still run for most of the games. -
@mitu Thank you for your response. I compared the checksum values of the bios with the value listed on the forum and it matches up as well as the emulators requested naming structure.
I installed lr-mgba from source and ran it again with verbos after it failed.
The first warning I see from my log says that I'm missing GameMode.
I found this thread from about 2 years ago.
https://retropie.org.uk/forum/topic/32246/game-mode
I'm wondering if GameMode is used more now and if i should install it.
I also tried another rom and the result is the same.Blockquote
Parameters:
Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mgba/mgba_libretro.so --config /opt/retropie/configs/gba/retroarch.cfg "/home/pi/RetroPie/roms/gba/PokemonFireRed.gba" --verbose --appendconfig /dev/shm/retroarch.cfg
[WARN] [GameMode]: GameMode cannot be enabled on this system ("dlopen failed - libgamemode.so: cannot open shared object file: No such file or directory.") https://github.com/FeralInteractive/gamemode needs to be installed.
[WARN] [Config]: GameMode unsupported - disabling..
[INFO] RetroArch 1.16.0 (Git e89a7ce)
[INFO] Saving files in content directory is set. This overrides other save file directory settings.
[INFO] Saving save states in content directory is set. This overrides other save state file directory settings.
[INFO] === Build =======================================
[INFO] CPU Model Name: ARMv7 Processor rev 3 (v7l)
[INFO] Capabilities: NEON VFPV3 VFPV4
[INFO] Version: 1.16.0
[INFO] Git: e89a7ce
[INFO] Built: Nov 19 2023
[INFO] =================================================
[INFO] [Input]: Found input driver: "x".
[INFO] [Core]: Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-mgba/mgba_libretro.so"
[INFO] [Config]: Loading config: "/opt/retropie/configs/gba/retroarch.cfg".
[INFO] [Config]: Appending config: "/dev/shm/retroarch.cfg".
[INFO] [Environ]: GET_CORE_OPTIONS_VERSION.
[INFO] [Environ]: GET_LANGUAGE: "30".
[INFO] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_V2_INTL.
[INFO] Saving files in content directory is set. This overrides other save file directory settings.
[INFO] Saving save states in content directory is set. This overrides other save state file directory settings.
[INFO] [Overrides]: Redirecting save file to "/home/pi/RetroPie/roms/gba/PokemonFireRed.srm".
[INFO] [Overrides]: Redirecting save state to "/home/pi/RetroPie/roms/gba/PokemonFireRed.state".
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] [Environ]: SET_INPUT_DESCRIPTORS:
[INFO] [Environ]: GET_LOG_INTERFACE.
[INFO] [Content]: Loading content file: "/home/pi/RetroPie/roms/gba/PokemonFireRed.gba".
[INFO] [Content]: Failed to process content file: "/home/pi/RetroPie/roms/gba/PokemonFireRed.gba".
[ERROR] [Content]: Failed to load content
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[INFO] [Core]: Unloading core..
[INFO] [Core]: Unloading core symbols..
[INFO] [Core]: Saved core options file to "/opt/retropie/configs/all/retroarch-core-options.cfg". -
GameMode is not the issue here. Most likely your ROM is not correct - what's the checksum (MD5) of the PokemonFireRed.gba file ?
-
@mitu Funny thing, I went to check the value you asked for and when I looked at it file in Filezilla I realized that I must have messed it up during the original transfer because the file size was "0". I re-uploaded the original rom and it booted right up. I apologize for wasting your time on this, but I appreciate you helping me through it.
Thank you again. -
No problem, sometimes these kind of things creep up.
Happy holidays and have fun gaming !
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.