NES Seg Fault
-
I'm at my wit's end here, hope someone can point me in the right direction.
Running retropie on a pi 4, all games (including NES) worked when originally set up a few months ago. Games for non-NES systems continue to work, but none of the NES games will load with any of the multiple emulators installed (all crash back to emulationstation without loading).
I have verified that the ROMs have headers, and have fully updated all packages and have reinstalled the NES emulators.
Below is a verbose log of a launch using the lr-mess emulator. All emulators give a variety of segmentation fault in the last line. Is there anything to do other than replacing the SD card and fully rebuilding everything?
Parameters: Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mess/mess_libretro.so --config /opt/retropie/configs/nes/retroarch.cfg "/home/pi/RetroPie/roms/nes/Mega_Man_(U).nes" --verbose --appendconfig /dev/shm/retroarch.cfg [INFO] RetroArch 1.9.4 (Git c226bd8) [INFO] === Build ======================================= [INFO] Capabilities: NEON VFPv3 VFPv4 [INFO] Built: Jun 10 2021 [INFO] Version: 1.9.4 [INFO] Git: c226bd8 [INFO] ================================================= [INFO] [Input]: Found input driver: "x". [INFO] [Core]: Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-mess/mess_libretro.so" [INFO] [Overrides]: No core-specific overrides found at "/home/pi/.config/retroarch/config/MAME/MAME.cfg". [INFO] [Overrides]: No content-dir-specific overrides found at "/home/pi/.config/retroarch/config/MAME/nes.cfg". [INFO] [Overrides]: No game-specific overrides found at "/home/pi/.config/retroarch/config/MAME/Mega_Man_(U).cfg". [INFO] [Environ]: SET_VARIABLES. [INFO] [Remaps]: Remap directory: "/opt/retropie/configs/nes/". [INFO] [Overrides]: Redirecting save file to "/home/pi/RetroPie/roms/nes/Mega_Man_(U).srm". [INFO] [Overrides]: Redirecting save state to "/home/pi/RetroPie/roms/nes/Mega_Man_(U).state". [INFO] [Environ]: GET_LOG_INTERFACE. [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/pi/RetroPie/BIOS". [libretro INFO] SYSTEM_DIRECTORY: /home/pi/RetroPie/BIOS [INFO] [Environ]: CORE_ASSETS_DIRECTORY: "/home/pi/.config/retroarch/downloads". [libretro INFO] CONTENT_DIRECTORY: /home/pi/.config/retroarch/downloads [INFO] [Environ]: GET_SAVE_DIRECTORY. [libretro INFO] SAVE_DIRECTORY: /home/pi/RetroPie/roms/nes/ [INFO] [Environ]: SET_PIXEL_FORMAT: XRGB8888. [INFO] [CONTENT LOAD]: Content loading skipped. Implementation will load it on its own. [libretro INFO] Joystick map: disabled [INFO] [Environ]: SET_INPUT_DESCRIPTORS: [INFO] [SRAM]: Skipping SRAM load.. [INFO] Version of libretro API: 1 [INFO] Compiled against API: 1 [libretro INFO] Joystick map: disabled [INFO] [Environ]: SET_INPUT_DESCRIPTORS: [libretro INFO] AV_INFO: width=640 height=480 [libretro INFO] AV_INFO: max_width=640 max_height=480 [libretro INFO] AV_INFO: aspect_ratio = 1.333333 [libretro INFO] AV_INFO: fps = 60.000000 sample_rate = 48000.000000 [INFO] [Audio]: Set audio input rate to: 48000.00 Hz. [INFO] [Video]: Video @ 1360x768 /opt/retropie/supplementary/runcommand/runcommand.sh: line 1305: 3645 Segmentation fault /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mess/mess_libretro.so --config /opt/retropie/configs/nes/retroarch.cfg "/home/pi/RetroPie/roms/nes/Mega_Man_(U).nes" --verbose --appendconfig /dev/shm/retroarch.cfg
-
@0sabotagecopper said in NES Seg Fault:
Below is a verbose log of a launch using the lr-mess emulator.
any particular reason you're using lr-mess for NES games? why not use the default dedicated NES emulators? they almost certainly give a better experience.
as to your segfault, i imagine lr-mess's NES support (if it works - it's an experimental libretro core not typically used for this) it probably expects NES roms from the ~current MAME romset, in a specific format, and zipped. see this reddit post for more info: https://www.reddit.com/r/MAME/comments/d0abh5/what_format_of_roms_does_mame_expect_for_nessnes/ez8f945/ - you probably can't throw random nes roms at it like you can often do for most of the dedicated emulators.
-
I was just using this as an example; all emulators give similar seg fault errors. Some of the default emulators also give a "Romset is unknown" error, but that doesn't seem to be an issue on other systems and I have verified that these have headers. Below is the log for lr-fbneo-nes
Parameters: Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fbneo/fbneo_libretro.so --subsystem nes --config /opt/retropie/configs/nes/retroarch.cfg "/home/pi/RetroPie/roms/nes/Micro Mages.nes" --verbose --appendconfig /dev/shm/retroarch.cfg [INFO] RetroArch 1.9.4 (Git c226bd8) [INFO] === Build ======================================= [INFO] Capabilities: NEON VFPv3 VFPv4 [INFO] Built: Jun 10 2021 [INFO] Version: 1.9.4 [INFO] Git: c226bd8 [INFO] ================================================= [INFO] [Input]: Found input driver: "x". [INFO] [Core]: Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-fbneo/fbneo_libretro.so" [INFO] [Overrides]: No core-specific overrides found at "/home/pi/.config/retroarch/config/FinalBurn Neo/FinalBurn Neo.cfg". [INFO] [Overrides]: No content-dir-specific overrides found at "/home/pi/.config/retroarch/config/FinalBurn Neo/nes.cfg". [INFO] [Overrides]: No game-specific overrides found at "/home/pi/.config/retroarch/config/FinalBurn Neo/Micro Mages.cfg". [INFO] [Remaps]: Remap directory: "/opt/retropie/configs/nes/". [INFO] [Overrides]: Redirecting save file to "/home/pi/RetroPie/roms/nes/Micro Mages.srm". [INFO] [Overrides]: Redirecting save state to "/home/pi/RetroPie/roms/nes/Micro Mages.state". [INFO] [Environ]: GET_LOG_INTERFACE. [INFO] [Environ]: GET_MESSAGE_INTERFACE_VERSION. [INFO] [Environ]: SET_AUDIO_BUFFER_STATUS_CALLBACK. [INFO] [CONTENT LOAD]: Content loading skipped. Implementation will load it on its own. [INFO] [Environ]: GET_SAVE_DIRECTORY. [libretro INFO] Setting save dir to /home/pi/RetroPie/roms/nes/ [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/pi/RetroPie/BIOS". [libretro INFO] Setting system dir to /home/pi/RetroPie/BIOS [INFO] [Environ]: SET_PIXEL_FORMAT: XRGB8888. [libretro ERROR] [FBNeo] Romset is unknown [libretro ERROR] [FBNeo] Read https://docs.libretro.com/library/fbneo/#building-romsets-for-fbneo [INFO] [SRAM]: Skipping SRAM load.. [INFO] Version of libretro API: 1 [INFO] Compiled against API: 1 [INFO] [Audio]: Set audio input rate to: 48000.00 Hz. [INFO] [Video]: Video @ 1360x768 /opt/retropie/supplementary/runcommand/runcommand.sh: line 1305: 8274 Segmentation fault /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fbneo/fbneo_libretro.so --subsystem nes --config /opt/retropie/configs/nes/retroarch.cfg "/home/pi/RetroPie/roms/nes/Micro Mages.nes" --verbose --appendconfig /dev/shm/retroarch.cfg
-
@0sabotagecopper lr-fbneo is another romset-based emulator that needs roms from a specific romset version, and likely in .zip format - even NES games.
indulge me and get a log of these nes games on the default NES emulator for pi4 - lr-fceumm
-
Thanks, please see logs for both using lr-fceumm below
Parameters: Executing: SDL_VIDEO_KMSDRM_CRTCID=87 SDL_VIDEO_KMSDRM_MODEID=10 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fceumm/fceumm_libretro.so --config /opt/retropie/configs/nes/retroarch.cfg "/home/pi/RetroPie/roms/nes/Mega_Man_(U).nes" --verbose --appendconfig /dev/shm/retroarch.cfg [INFO] RetroArch 1.9.4 (Git c226bd8) [INFO] === Build ======================================= [INFO] Capabilities: NEON VFPv3 VFPv4 [INFO] Built: Jun 10 2021 [INFO] Version: 1.9.4 [INFO] Git: c226bd8 [INFO] ================================================= [INFO] [Input]: Found input driver: "x". [INFO] [Core]: Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-fceumm/fceumm_libretro.so" [INFO] [Overrides]: No core-specific overrides found at "/home/pi/.config/retroarch/config/FCEUmm/FCEUmm.cfg". [INFO] [Overrides]: No content-dir-specific overrides found at "/home/pi/.config/retroarch/config/FCEUmm/nes.cfg". [INFO] [Overrides]: No game-specific overrides found at "/home/pi/.config/retroarch/config/FCEUmm/Mega_Man_(U).cfg". [INFO] [Environ]: SET_CONTROLLER_INFO. [INFO] [Remaps]: Remap directory: "/opt/retropie/configs/nes/". [INFO] [Overrides]: Redirecting save file to "/home/pi/RetroPie/roms/nes/Mega_Man_(U).srm". [INFO] [Overrides]: Redirecting save state to "/home/pi/RetroPie/roms/nes/Mega_Man_(U).state". [INFO] [Environ]: GET_LOG_INTERFACE. [INFO] [Environ]: SET_SUPPORT_ACHIEVEMENTS: yes. [INFO] [CONTENT LOAD]: Loading content file: /home/pi/RetroPie/roms/nes/Mega_Man_(U).nes [INFO] Did not find a valid content patch. [INFO] [Environ]: SET_PIXEL_FORMAT: RGB565. [libretro INFO] Frontend supports RGB565 - will use that instead of XRGB1555. [INFO] [Environ]: PERFORMANCE_LEVEL: 5. [INFO] [Environ]: SET_INPUT_DESCRIPTORS: [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/pi/RetroPie/BIOS". [INFO] [Environ]: GET_SAVE_DIRECTORY. [libretro INFO] FCEU_MakeFName: /home/pi/RetroPie/BIOS/nes.pal [INFO] [Environ]: GET_CORE_OPTIONS_VERSION. [INFO] [Environ]: GET_LANGUAGE: "0". [INFO] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_INTL. [INFO] [Environ]: SET_MEMORY_MAPS. [INFO] ndx flags ptr offset start select disconn len addrspace [INFO] 001 M1A1bc 0xafb06f2c 00000000 00000000 FFFFFC00 00000000 00000400 [INFO] 002 M1A1bc 0xafb0732c 00000000 00000400 FFFFFC00 00000000 00000400 [INFO] 003 M1A1bc 0x1017628 00000000 00006000 FFFFFC00 00000000 00000400 [INFO] 004 M1A1bc 0x1017a28 00000000 00006400 FFFFFC00 00000000 00000400 [INFO] 005 M1A1bc 0x1017e28 00000000 00006800 FFFFFC00 00000000 00000400 [INFO] 006 M1A1bc 0x1018228 00000000 00006C00 FFFFFC00 00000000 00000400 [INFO] 007 M1A1bc 0x1018628 00000000 00007000 FFFFFC00 00000000 00000400 [INFO] 008 M1A1bc 0x1018a28 00000000 00007400 FFFFFC00 00000000 00000400 [INFO] 009 M1A1bc 0x1018e28 00000000 00007800 FFFFFC00 00000000 00000400 [INFO] 010 M1A1bc 0x1019228 00000000 00007C00 FFFFFC00 00000000 00000400 [INFO] 011 M1A1bc 0xafb52ad0 00000000 00002000 FFFFFFFC 00000000 00000004 PPUREG [INFO] 012 M1A1bc 0xafb0a0ac 00000000 80002000 80000000 80000000 00000800 NTARAM [INFO] 013 M1A1bc 0xafb7c96c 00000000 80003000 80000000 80000000 00000020 PALRAM [INFO] 014 M1A1bc 0xafb7c744 00000000 80004000 80000000 80000000 00000100 OAM [INFO] [SRAM]: Skipping SRAM load.. [INFO] Version of libretro API: 1 [INFO] Compiled against API: 1 [INFO] [Audio]: Set audio input rate to: 48000.00 Hz. [INFO] [Video]: Game FPS > Monitor FPS. Cannot rely on VSync. [INFO] [Video]: Video @ 1920x1080 /opt/retropie/supplementary/runcommand/runcommand.sh: line 1305: 12356 Segmentation fault SDL_VIDEO_KMSDRM_CRTCID=87 SDL_VIDEO_KMSDRM_MODEID=10 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fceumm/fceumm_libretro.so --config /opt/retropie/configs/nes/retroarch.cfg "/home/pi/RetroPie/roms/nes/Mega_Man_(U).nes" --verbose --appendconfig /dev/shm/retroarch.cfg
Parameters: Executing: SDL_VIDEO_KMSDRM_CRTCID=87 SDL_VIDEO_KMSDRM_MODEID=10 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fceumm/fceumm_libretro.so --config /opt/retropie/configs/nes/retroarch.cfg "/home/pi/RetroPie/roms/nes/Micro Mages.nes" --verbose --appendconfig /dev/shm/retroarch.cfg [INFO] RetroArch 1.9.4 (Git c226bd8) [INFO] === Build ======================================= [INFO] Capabilities: NEON VFPv3 VFPv4 [INFO] Built: Jun 10 2021 [INFO] Version: 1.9.4 [INFO] Git: c226bd8 [INFO] ================================================= [INFO] [Input]: Found input driver: "x". [INFO] [Core]: Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-fceumm/fceumm_libretro.so" [INFO] [Overrides]: No core-specific overrides found at "/home/pi/.config/retroarch/config/FCEUmm/FCEUmm.cfg". [INFO] [Overrides]: No content-dir-specific overrides found at "/home/pi/.config/retroarch/config/FCEUmm/nes.cfg". [INFO] [Overrides]: No game-specific overrides found at "/home/pi/.config/retroarch/config/FCEUmm/Micro Mages.cfg". [INFO] [Environ]: SET_CONTROLLER_INFO. [INFO] [Remaps]: Remap directory: "/opt/retropie/configs/nes/". [INFO] [Overrides]: Redirecting save file to "/home/pi/RetroPie/roms/nes/Micro Mages.srm". [INFO] [Overrides]: Redirecting save state to "/home/pi/RetroPie/roms/nes/Micro Mages.state". [INFO] [Environ]: GET_LOG_INTERFACE. [INFO] [Environ]: SET_SUPPORT_ACHIEVEMENTS: yes. [INFO] [CONTENT LOAD]: Loading content file: /home/pi/RetroPie/roms/nes/Micro Mages.nes [INFO] Did not find a valid content patch. [INFO] [Environ]: SET_PIXEL_FORMAT: RGB565. [libretro INFO] Frontend supports RGB565 - will use that instead of XRGB1555. [INFO] [Environ]: PERFORMANCE_LEVEL: 5. [INFO] [Environ]: SET_INPUT_DESCRIPTORS: [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/pi/RetroPie/BIOS". [INFO] [Environ]: GET_SAVE_DIRECTORY. [libretro INFO] FCEU_MakeFName: /home/pi/RetroPie/BIOS/nes.pal [INFO] [Environ]: GET_CORE_OPTIONS_VERSION. [INFO] [Environ]: GET_LANGUAGE: "0". [INFO] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_INTL. [INFO] [Environ]: SET_MEMORY_MAPS. [INFO] ndx flags ptr offset start select disconn len addrspace [INFO] 001 M1A1bc 0xafb1ff2c 00000000 00000000 FFFFFC00 00000000 00000400 [INFO] 002 M1A1bc 0xafb2032c 00000000 00000400 FFFFFC00 00000000 00000400 [INFO] 003 M1A1bc 0x149b368 00000000 00006000 FFFFFC00 00000000 00000400 [INFO] 004 M1A1bc 0x149b768 00000000 00006400 FFFFFC00 00000000 00000400 [INFO] 005 M1A1bc 0x149bb68 00000000 00006800 FFFFFC00 00000000 00000400 [INFO] 006 M1A1bc 0x149bf68 00000000 00006C00 FFFFFC00 00000000 00000400 [INFO] 007 M1A1bc 0x149c368 00000000 00007000 FFFFFC00 00000000 00000400 [INFO] 008 M1A1bc 0x149c768 00000000 00007400 FFFFFC00 00000000 00000400 [INFO] 009 M1A1bc 0x149cb68 00000000 00007800 FFFFFC00 00000000 00000400 [INFO] 010 M1A1bc 0x149cf68 00000000 00007C00 FFFFFC00 00000000 00000400 [INFO] 011 M1A1bc 0xafb6bad0 00000000 00002000 FFFFFFFC 00000000 00000004 PPUREG [INFO] 012 M1A1bc 0xafb230ac 00000000 80002000 80000000 80000000 00000800 NTARAM [INFO] 013 M1A1bc 0xafb9596c 00000000 80003000 80000000 80000000 00000020 PALRAM [INFO] 014 M1A1bc 0xafb95744 00000000 80004000 80000000 80000000 00000100 OAM [INFO] [SRAM]: Skipping SRAM load.. [INFO] Version of libretro API: 1 [INFO] Compiled against API: 1 [INFO] [Audio]: Set audio input rate to: 48000.00 Hz. [INFO] [Video]: Game FPS > Monitor FPS. Cannot rely on VSync. [INFO] [Video]: Video @ 1920x1080 /opt/retropie/supplementary/runcommand/runcommand.sh: line 1305: 11271 Segmentation fault SDL_VIDEO_KMSDRM_CRTCID=87 SDL_VIDEO_KMSDRM_MODEID=10 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fceumm/fceumm_libretro.so --config /opt/retropie/configs/nes/retroarch.cfg "/home/pi/RetroPie/roms/nes/Micro Mages.nes" --verbose --appendconfig /dev/shm/retroarch.cfg
-
@0sabotagecopper said in NES Seg Fault:
SDL_VIDEO_KMSDRM_CRTCID=87 SDL_VIDEO_KMSDRM_MODEID=10
this doesn't seem standard. perhaps you've got an invalid video mode set via https://retropie.org.uk/docs/Runcommand/ ? you can clear it via going into runcommand when launching a NES game and remove any changes from default for the system.
or are you running via the desktop? if so, this configuration is not supported.
i'm not super familiar with the kms stuff ( @mitu may know!), but in the meantime please provide all the info requested in https://retropie.org.uk/forum/topic/3/read-this-first so we get an idea about anything non-standard on your system.
-
Changing the resolution didn't do the trick, I ended up restarting with a fresh RetroPie install, and everything is working again.
Thanks for the tries to help, something must have gotten corrupted or configured at some point, not sure what that would be, as I changed very little.
-
@0sabotagecopper said in NES Seg Fault:
Below is a verbose log of a launch using the lr-mess emulator.
NES emulation in MAME is not great, and that's a bit of an understatement, so i would really recommend to avoid it.
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.