libretro / gpsp

gpSP for libretro.
GNU General Public License v2.0
55 stars 52 forks source link

Pokemon Emerald/Sapphire/Ruby only load via 'Load Content' #16

Closed sl33k closed 1 year ago

sl33k commented 8 years ago

Pokemon Emerald GBA in various versions (U/E,G,U) crashes directly on load. Loading it by first starting a different ROM and then loading it via 'Load Content' works fine.

runcommand.log

/opt/retropie/supplementary/runcommand/runcommand.sh: line 704:  3061 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/1986 - Pokemon - Emerald Version (UE).gba" --appendconfig /tmp/retroarch.cfg

Retroarch Log File

RetroArch [INFO] :: === Build =======================================RetroArch [INFO] :: [CPUID]: Features:
Built: Oct  5 2015
RetroArch [INFO] :: Version: 1.2.2
RetroArch [INFO] :: Git: c6c250b
RetroArch [INFO] :: =================================================
RetroArch [INFO] :: [CPUID]: Features:
RetroArch [INFO] :: Config: appending config "/tmp/retroarch.cfg"
RetroArch [INFO] :: Config: loading config from: /opt/retropie/configs/gba/retroarch.cfg.
RetroArch [INFO] :: Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-gpsp/gpsp_libretro.so"
RetroArch [INFO] :: Environ GET_LOG_INTERFACE.
RetroArch [INFO] :: Environ GET_PERF_INTERFACE.
RetroArch [INFO] :: Environ SET_VARIABLES.
RetroArch [INFO] :: Remaps: core name: gpSP
RetroArch [INFO] :: Remaps: game name: /home/pi/RetroPie/roms/gba/1986 - Pokemon - Emerald Version (UE)
RetroArch [INFO] :: Remaps: remap directory: /opt/retropie/configs/gba/
RetroArch [INFO] :: Remaps: no game-specific remap found at /opt/retropie/configs/gba/gpSP/1986 - Pokemon - Emerald Version (UE).rmp
RetroArch [INFO] :: Remaps: no core-specific remap found at /opt/retropie/configs/gba/gpSP/gpSP.rmp
RetroArch [INFO] :: Version of libretro API: 1
RetroArch [INFO] :: Compiled against API: 1
RetroArch [INFO] :: Content loading skipped. Implementation will load it on its own.
RetroArch [INFO] :: Environ GET_VARIABLE gpsp_drc:
RetroArch [INFO] ::     enabled
RetroArch [INFO] :: Environ SET_INPUT_DESCRIPTORS:
RetroArch [INFO] ::     RetroPad, User 1, Button "B (bottom)" => "B"
RetroArch [INFO] ::     RetroPad, User 1, Button "Select" => "Select"
RetroArch [INFO] ::     RetroPad, User 1, Button "Start" => "Start"
RetroArch [INFO] ::     RetroPad, User 1, Button "D-Pad Up" => "D-Pad Up"
RetroArch [INFO] ::     RetroPad, User 1, Button "D-Pad Down" => "D-Pad Down"
RetroArch [INFO] ::     RetroPad, User 1, Button "D-Pad Left" => "D-Pad Left"
RetroArch [INFO] ::     RetroPad, User 1, Button "D-Pad Right" => "D-Pad Right"
RetroArch [INFO] ::     RetroPad, User 1, Button "A (right)" => "A"
RetroArch [INFO] :: Environ SET_PIXEL_FORMAT: RGB565.
RetroArch [INFO] :: Environ SYSTEM_DIRECTORY: "/home/pi/RetroPie/BIOS".
RetroArch [INFO] :: Environ SAVE_DIRECTORY: "".
RetroArch [INFO] :: Skipping SRAM load..
RetroArch [INFO] :: Set audio input rate to: 65835.00 Hz.
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/2xBR.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/5xbr-retro.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/5xbr-retro.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/5xbr-retro_phosphor.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/5xBR-v3.5.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/bead.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/blinky.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/box-1x.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/box-2x.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/box-3x.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/box-4x.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/box-max.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/bsnes_gamma_ramp.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/bsnes_gamma_ramp.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/cgwg-CRT-flat.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/cgwg-CRT-flat.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/CRT_cgwg.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/CRT_cgwg.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/dot.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/Edge.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/gamma.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/gamma2.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/hq2x&lcd3x.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/hq2x.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/hq2x.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/hq2x2.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/hq2x2.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/hq2x_lcd3x.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/hq2x_phosphor.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/hq2xwaterpaint.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/hq2xwaterpaintscanline.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/hq4x.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/hq4x.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/hq4x_lcd3x.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/lcd3x.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/ntsc-pass1.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/ntsc-pass2.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/ntsc-pass3.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/ntsc-pass4.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/ntsc-pass5.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/ntsc.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/phosphor-normalgamma.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/phosphor.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/phosphor.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/pixellate.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/quilez.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/retro-v2.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/retroarch.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/SABR-v1.0.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/scanline.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/sharp-bilinear.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/snes-hires-blend.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/snes.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/snes2.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/snes3.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/snes_hq2x.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/snes_hq2xwaterpaint.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/snes_hq2xwaterpainthicontrast.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/snes_hq2xwaterpaintscanline.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/snes_lcd3x.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/snes_phosphor.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/snes_scanline.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/snes_waterpaint.glslp"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/stock.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/super2xSal.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/water.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/waterpaint-hicontrast.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/waterpaint-scanline.glsl"
RetroArch [INFO] :: Found shader "/opt/retropie/emulators/retroarch/shader/waterpaint.glsl"
RetroArch [INFO] :: Video @ 720x480
RetroArch [INFO] :: Starting threaded video driver ...
RetroArch [INFO] :: [VC/EGL]: Initializing...
RetroArch [INFO] :: Found GL context: videocore
RetroArch [INFO] :: Detecting screen resolution 720x480.
RetroArch [INFO] :: [GL]: Vendor: Broadcom, Renderer: VideoCore IV HW.
RetroArch [INFO] :: [GL]: Version: OpenGL ES 2.0.
RetroArch [INFO] :: Querying GL extension: BGRA8888 => exists
RetroArch [WARN] :: [GL]: GLES implementation does not have BGRA8888 extension.
32-bit path will require conversion.
RetroArch [INFO] :: Querying GL extension: GL_EXT_unpack_subimage => doesn't exist
RetroArch [INFO] :: Querying GL extension: EXT_sRGB => doesn't exist
RetroArch [INFO] :: GL: Using resolution 720x480
RetroArch [INFO] :: [GL]: Default shader backend found: glsl.
RetroArch [INFO] :: [GL]: Using GLSL shader backend.
RetroArch [WARN] :: [GL]: Stock GLSL shaders will be used.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Shader log: Compiled
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Shader log: Compiled
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Shader log: Compiled
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Shader log: Compiled
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Shader log: Compiled
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Shader log: Compiled
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: [GL]: Using 4 textures.
RetroArch [INFO] :: [GL]: Loaded 1 program(s).
RetroArch [INFO] :: Querying EGL extension: KHR_image => exists
RetroArch [INFO] :: Using font rendering backend: freetype.
RetroArch [INFO] :: Graphics driver did not initialize an input driver. Attempting to pick a suitable driver.
RetroArch [WARN] :: [udev]: Couldn't open any keyboard, mouse or touchpad. Are permissions set correctly for /dev/input/event*?
RetroArch [INFO] :: [udev]: Plugged pad: Twin USB Joystick (0810:0001) on port #0.
RetroArch [INFO] :: Autodetect: 2 profiles found
RetroArch [INFO] :: Autodetect: configuration file: /opt/retropie/configs/all/retroarch-joypads/TwinUSBJoystick.cfg score: 2
RetroArch [INFO] :: Autodetect: configuration file: /opt/retropie/configs/all/retroarch-joypads/MicrosoftX-Box360pad.cfg score: 0
RetroArch [INFO] :: Autodetect: selected configuration: /opt/retropie/configs/all/retroarch-joypads/TwinUSBJoystick.cfg
RetroArch [INFO] :: Autodetect: Twin USB Joystick configured in port #0.
RetroArch [INFO] :: [udev]: Pad #0 (/dev/input/event0) supports 0 force feedback effects.
RetroArch [INFO] :: [udev]: Plugged pad: Twin USB Joystick (0810:0001) on port #1.
RetroArch [INFO] :: Autodetect: 2 profiles found
RetroArch [INFO] :: Autodetect: configuration file: /opt/retropie/configs/all/retroarch-joypads/TwinUSBJoystick.cfg score: 2
RetroArch [INFO] :: Autodetect: configuration file: /opt/retropie/configs/all/retroarch-joypads/MicrosoftX-Box360pad.cfg score: 0
RetroArch [INFO] :: Autodetect: selected configuration: /opt/retropie/configs/all/retroarch-joypads/TwinUSBJoystick.cfg
RetroArch [INFO] :: Autodetect: Twin USB Joystick configured in port #1.
RetroArch [INFO] :: [udev]: Pad #1 (/dev/input/event1) supports 0 force feedback effects.
RetroArch [INFO] :: Found joypad driver: "udev".
RetroArch [INFO] :: [CPUID]: Features:
RetroArch [INFO] :: ALSA: Using signed 16-bit format.
RetroArch [INFO] :: ALSA: Period size: 384 frames
RetroArch [INFO] :: ALSA: Buffer size: 1536 frames
RetroArch [INFO] :: [CPUID]: Features:
RetroArch [INFO] :: null: [/opt/retropie/configs/gba/content_history.lpl].

lr-gpsp version:both binary and source build via RetroPie Setup exhibit this behaviour.

see also: libretro/Lakka#177

wimberlyw commented 8 years ago

Experiencing this issue, except the game does not load for me by choosing this menu. I feel like I've tried everything. I have the config file and the bios in every folder in every configuration, I've tried 5 different versions of Pokemon roms for gba, including Pinball, and nothing loads. I can get to a splash screen in Ruby and Sapphire using a different emu, that tells me who dumped the rom, but it will not load past that. Would really like to get any of the versions up and running. I've also tried all of the emus I can find for retropie, and I've got nothing.

david-simoes-93 commented 6 years ago

You may need to define somewhere that the save type is Flash 128k (this has to be done for emulators like Mednafen)

andymcca commented 1 year ago

Another one that was fixed by a combination of the timer bug resolution commit 413157dedd92aeda6850e92c73d5b3b4809bcb73 and also the subsequent changes to IRQ handling. All Pokemon games I have tested work fine as of the latest commit. @davidgfnet this one can be closed now.