Segfault with lr-mupen64plus-next on fresh install of bookworm lite 64bit, Pi 5.
-
Pi Model or other hardware: Pi5 8GB
Power Supply used: official, 5.1V 5A 27W
RetroPie Version Used: 4.8.6
Built From: Bookworm Lite 64bit
USB Devices connected: Gamepad
Controller used: Logitech ChillStream
Error messages received: none, launch rom goes to black screen then back to launcher
Verbose log (if relevant): Below
Guide used: https://retropie.org.uk/docs/Manual-Installation/, + generic instructions on compiling en_US.UTF-8 for locale as bookworm lite only had en_GB.UTF-8 by default
Emulator: lr-mupen64plus-next
How to replicate the problem: transfer some known good roms (.n64 files) using sftp, attempt to launch them from Emustation.I'd like to point out that any other emulator I tried so far works. All systems work flawlessly: GBA, MAME, Turbografx16, whatever. Only N64 fails.
Parameters: Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mupen64plus-next/mupen64plus_next_libretro.so --config /opt/retropie/configs/n64/retroarch.cfg "/home/denis/RetroPie/roms/n64/007 - GoldenEye (USA).n64" --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] Capabilities: ASIMD [INFO] Version: 1.16.0 [INFO] Git: e89a7ce [INFO] Built: Dec 23 2023 [INFO] ================================================= [INFO] [Input]: Found input driver: "x". [INFO] [Core]: Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-mupen64plus-next/mupen64plus_next_libretro.so" [INFO] [Config]: Loading config: "/opt/retropie/configs/n64/retroarch.cfg". [INFO] [Config]: Appending config: "/dev/shm/retroarch.cfg". [INFO] [Environ]: GET_CORE_OPTIONS_VERSION. [INFO] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_V2. [INFO] [Environ]: SET_CONTROLLER_INFO. [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/denis/RetroPie/roms/n64/007 - GoldenEye (USA).srm". [INFO] [Overrides]: Redirecting save state to "/home/denis/RetroPie/roms/n64/007 - GoldenEye (USA).state". [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/denis/RetroPie/BIOS". [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/denis/RetroPie/BIOS". [INFO] [Environ]: GET_LOG_INTERFACE. [INFO] [Environ]: GET_PERF_INTERFACE. [INFO] [Environ]: SET_PIXEL_FORMAT: XRGB8888. [INFO] [Environ]: GET_RUMBLE_INTERFACE. [libretro INFO] mupen64plus-next: Using full mem base [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/denis/RetroPie/BIOS". [INFO] [Content]: Loading content file: "/home/denis/RetroPie/roms/n64/007 - GoldenEye (USA).n64". [ERROR] [Environ]: GET_VARIABLE: mupen64plus-next-EnableN64DepthCompare - Invalid value. [ERROR] [Environ]: GET_VARIABLE: mupen64plus-next-EnableShadersStorage - Invalid value. [INFO] [Environ]: SET_HW_RENDER, context type: gl. [INFO] Requesting OpenGLES3 context. [libretro INFO] mupen64plus-next: Goodname: GoldenEye 007 (U) [!] [libretro INFO] mupen64plus-next: Name: GOLDENEYE [libretro INFO] mupen64plus-next: MD5: 70C525880240C1E838B8B1BE35666C3B [libretro INFO] mupen64plus-next: CRC: DCBC50D1 09FD1AA3 [libretro INFO] mupen64plus-next: Imagetype: .v64 (byteswapped) [libretro INFO] mupen64plus-next: Rom size: 12582912 bytes (or 12 Mb or 96 Megabits) [libretro INFO] mupen64plus-next: ClockRate = F [libretro INFO] mupen64plus-next: Version: 1447 [libretro INFO] mupen64plus-next: Manufacturer: Nintendo [libretro INFO] mupen64plus-next: Cartridge_ID: 4547 [libretro INFO] mupen64plus-next: Country: USA [libretro INFO] mupen64plus-next: PC = 80000400 [libretro INFO] mupen64plus-next: Save type: 0 [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: 640x480, Aspect: 1.333, FPS: 60.00, Sample rate: 44100.00 Hz. [INFO] [Audio]: Set audio input rate to: 44100.00 Hz. [INFO] [Video]: Set video size to: 2560x1440. [INFO] [Video]: Using HW render, OpenGL driver forced. [INFO] [Video]: Using configured "gl" driver for GL HW render. [INFO] [DRM]: Found 2 connectors. [INFO] [DRM]: Connector 0 connected: yes [INFO] [DRM]: Connector 0 has 37 modes. [INFO] [DRM]: Connector 0 assigned to monitor index: #1. [INFO] [DRM]: Connector 1 connected: no [INFO] [DRM]: Connector 1 has 0 modes. [INFO] [DRM]: Mode 0: (2560x1440) 2560 x 1440, 59.950550 Hz [INFO] [DRM]: Mode 1: (1920x1080) 1920 x 1080, 120.000000 Hz [INFO] [DRM]: Mode 2: (1920x1080) 1920 x 1080, 119.880005 Hz [INFO] [DRM]: Mode 3: (1920x1080) 1920 x 1080, 60.000000 Hz [INFO] [DRM]: Mode 4: (1920x1080) 1920 x 1080, 59.940201 Hz [INFO] [DRM]: Mode 5: (1920x1080) 1920 x 1080, 50.000000 Hz [INFO] [DRM]: Mode 6: (1920x1080) 1920 x 1080, 30.000000 Hz [INFO] [DRM]: Mode 7: (1920x1080) 1920 x 1080, 29.970100 Hz [INFO] [DRM]: Mode 8: (1920x1080) 1920 x 1080, 25.000000 Hz [INFO] [DRM]: Mode 9: (1920x1080) 1920 x 1080, 24.000000 Hz [INFO] [DRM]: Mode 10: (1920x1080) 1920 x 1080, 23.976080 Hz [INFO] [DRM]: Mode 11: (1280x1024) 1280 x 1024, 75.024673 Hz [INFO] [DRM]: Mode 12: (1280x1024) 1280 x 1024, 60.019741 Hz [INFO] [DRM]: Mode 13: (1440x900) 1440 x 900, 59.901459 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: (1440x576) 1440 x 576, 50.000000 Hz [INFO] [DRM]: Mode 19: (1024x768) 1024 x 768, 75.028580 Hz [INFO] [DRM]: Mode 20: (1024x768) 1024 x 768, 70.069359 Hz [INFO] [DRM]: Mode 21: (1024x768) 1024 x 768, 60.003841 Hz [INFO] [DRM]: Mode 22: (1440x480) 1440 x 480, 60.000000 Hz [INFO] [DRM]: Mode 23: (1440x480) 1440 x 480, 59.940060 Hz [INFO] [DRM]: Mode 24: (832x624) 832 x 624, 74.551270 Hz [INFO] [DRM]: Mode 25: (800x600) 800 x 600, 75.000000 Hz [INFO] [DRM]: Mode 26: (800x600) 800 x 600, 72.187569 Hz [INFO] [DRM]: Mode 27: (800x600) 800 x 600, 60.316540 Hz [INFO] [DRM]: Mode 28: (800x600) 800 x 600, 56.250000 Hz [INFO] [DRM]: Mode 29: (720x576) 720 x 576, 50.000000 Hz [INFO] [DRM]: Mode 30: (720x480) 720 x 480, 60.000000 Hz [INFO] [DRM]: Mode 31: (720x480) 720 x 480, 59.940060 Hz [INFO] [DRM]: Mode 32: (640x480) 640 x 480, 75.000000 Hz [INFO] [DRM]: Mode 33: (640x480) 640 x 480, 66.666664 Hz [INFO] [DRM]: Mode 34: (640x480) 640 x 480, 60.000000 Hz [INFO] [DRM]: Mode 35: (640x480) 640 x 480, 59.940475 Hz [INFO] [DRM]: Mode 36: (720x400) 720 x 400, 70.081665 Hz [INFO] [GL]: Found GL context: "kms". [INFO] [GL]: Detecting screen resolution: 2560x1440. [INFO] [EGL] Found EGL client version >= 1.5, trying eglGetPlatformDisplay [INFO] [EGL]: EGL version: 1.4 [INFO] [EGL]: Current context: 0x5555c96bf250. [INFO] [KMS]: New FB: 2560x1440 (stride: 10240). [INFO] [GL]: Vendor: Broadcom, Renderer: V3D 7.1. [INFO] [GL]: Version: OpenGL ES 3.1 Mesa 23.2.1-1~bpo12+rpt2. [INFO] [GL]: Using resolution 2560x1440. [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 1 textures. [INFO] [GL]: Loaded 1 program(s). [INFO] [GL]: Initializing HW render (1024x1024). [INFO] [GL]: Max texture size: 4096 px, renderbuffer size: 4096 px. [INFO] [GL]: Supports FBO (render-to-texture). [INFO] [udev]: Keyboard #0: "pwr_button" (/dev/input/event0). [INFO] [udev]: Keyboard #1: "vc4-hdmi-0" (/dev/input/event2). [INFO] [udev]: Keyboard #2: "vc4-hdmi-1" (/dev/input/event3). [INFO] [udev]: Pad #0 (/dev/input/event1) supports force feedback. [INFO] [udev]: Pad #0 (/dev/input/event1) supports 16 force feedback effects. [INFO] [Joypad]: Found joypad driver: "udev". [INFO] [Video]: Found display server: "kms". [INFO] [Environ]: SET_INPUT_DESCRIPTORS: [INFO] [ALSA] Using ALSA version 1.2.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.2.8 [INFO] [Microphone]: Initialized microphone driver. [INFO] [Display]: Found display driver: "gl". [INFO] [Environ]: SET_SUBSYSTEM_INFO. [INFO] [Playlist]: Loading history file: "/opt/retropie/configs/n64/content_history.lpl". [INFO] [Playlist]: Loading history file: "/opt/retropie/configs/n64/content_music_history.lpl". [INFO] [Playlist]: Loading history file: "/opt/retropie/configs/n64/content_video_history.lpl". [INFO] [Playlist]: Loading history file: "/opt/retropie/configs/n64/content_image_history.lpl". [INFO] [Playlist]: Loading favorites file: "/opt/retropie/configs/n64/content_favorites.lpl". [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/denis/RetroPie/BIOS". [libretro INFO] mupen64plus-next: Game controller 0 (Standard controller) has a Memory pak plugged in [libretro INFO] mupen64plus-next: Game controller 1 (Standard controller) has nothing plugged in [libretro INFO] mupen64plus-next: Game controller 2 (Standard controller) has nothing plugged in [libretro INFO] mupen64plus-next: Game controller 3 (Standard controller) has nothing plugged in [libretro INFO] mupen64plus-next: Using CIC type X102 [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/denis/RetroPie/BIOS". [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/denis/RetroPie/BIOS". [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/denis/RetroPie/BIOS". [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/denis/RetroPie/BIOS". [INFO] [KMS]: New FB: 2560x1440 (stride: 10240). [INFO] [KMS]: New FB: 2560x1440 (stride: 10240). [libretro INFO] mupen64plus-next: Initializing 4 RDRAM modules for a total of 8 MB [libretro INFO] mupen64plus-next: Starting R4300 emulator: Dynamic Recompiler [libretro INFO] mupen64plus-next: Init new dynarec /opt/retropie/supplementary/runcommand/runcommand.sh: line 1319: 3846 Segmentation fault /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mupen64plus-next/mupen64plus_next_libretro.so --config /opt/retropie/configs/n64/retroarch.cfg "/home/denis/RetroPie/roms/n64/007 - GoldenEye (USA).n64" --verbose --appendconfig /dev/shm/retroarch.cfg
-
Try the following suggestion and reinstall the core :
https://retropie.org.uk/forum/post/292147 -
@windg said in Segfault with lr-mupen64plus-next on fresh install of bookworm lite 64bit, Pi 5.:
Try the following suggestion and reinstall the core :
https://retropie.org.uk/forum/post/292147Sir, you are a genius. It worked, thank you!
I rebooted with kernel=kernel8.img added to /boot/firmware/config.txt.
Then reinstalled the core from source. And it fixed lr-mupen64plus-next.Wishing you a wonderful holiday season.
-
I Mitu
I follow the instruction for my Pi5. My Atomiswave (screen offset to the right), Naomi, Dreamcast work but not my NU64 with lr-mupen64plus-next
here's my log. Any ideas.
/opt/retropie/configs/all/retroarch-core-options.cfg
mupen64plus-next-EnableNativeResFactor = "1" mupen64plus-next-EnableOverscan = "Disabled" mupen64plus-next-HybridFilter = "False" mupen64plus-next-ThreadedRenderer = "True"
Pi Model 5 (with homemade handheld)
Power Supply used: 3.0A official Pi power supply
RetroPie Version Used : 4.8.8
Built From:Manual installation
USB Devices connected: USB Audio (usb to 3.5 mm jack) + Teensy lc (for gamepad)
Controller used: Teensy lc (for gamepad) -
Solved
I addedmupen64plus-next-cpucore = "cached_interpreter" parallel-n64-cpucore = "cached_interpreter"
in
/opt/retropie/configs/all/retroarch-core-options.cfg
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.