shonumi / gbe-plus

DMG/GBC/GBA emulator and experimental NDS emulator.
GNU General Public License v2.0
501 stars 79 forks source link

Emulator crashes on Gen 3 Pokémon games #136

Open RivenSkaye opened 1 year ago

RivenSkaye commented 1 year ago

Grabbed the latest release for Windows, but it crashes as soon as I load any ROMs. (would've compiled myself, but see the issue I opened yesterday on why that didn't work out) I know these ROMs work in other emulators, and they're viable patching candidates too. Both of them produce the exact same behavior on both binaries for GBE+.

OS: Windows 10, up to date GBE+: 1.6 Qt/SDL: both OpenGL: both on and off

Error message is nearly identical on either platform. The window opens, resizes to a nice playing size and then it crashes. I suspect it has something to do with the failure to load an audio out device or joystick, which is odd considering I have audio disabled in the settings and I made sure to have rumble off (went through the settings, turned off everything with comments relating to rumble).

Qt printout to stdout ``` GBE+ 1.6 [Qt] GBE::Loaded OSD font MMU::Initialized CPU::Initialized GBE::Launching GBA core MMU::Game Title - POKEMON EMER MMU::Game Code - BPEE MMU::Maker Code - 01 MMU::ROM Size: 16384KB MMU::ROM CRC32: 1f1c08fb MMU::C:/Users/Riven/games/Emerald.gba loaded successfully. MMU::FLASH RAM (128KB) save type detected MMU::Loaded save data file C:/Users/Riven/games/Emerald.gba.sav LCD::Initialized APU::Failed to open audio SIO::Initialized JOY::No joysticks detected MMU::Wrote save data file C:/Users/Riven/games/Emerald.gba.sav MMU::Shutdown CPU::Shutdown SIO::Shutdown APU::Shutdown LCD::Shutdown ```
SDL output ``` GBE+ 1.6 [SDL] GBE::Loaded OSD font MMU::Initialized CPU::Initialized GBE::Launching GBA core MMU::Game Title - POKEMON EMER MMU::Game Code - BPEE MMU::Maker Code - 01 MMU::ROM Size: 16384KB MMU::ROM CRC32: 1f1c08fb MMU::C:\Users\Riven\games\Emerald.gba loaded successfully. MMU::FLASH RAM (128KB) save type detected MMU::Warning - FLASH RAM backup save size too small LCD::Initialized APU::Failed to open audio SIO::Initialized JOY::No joysticks detected MMU::Wrote save data file C:\Users\Riven\games\Emerald.gba.sav MMU::Shutdown CPU::Shutdown SIO::Shutdown APU::Shutdown LCD::Shutdown ```

After the emulated hardware shutdowns with Qt, the window stays open, with some colored pixels. Attempting to load a different ROM subsequently forces it to close. I unfortunately don't have other GBA ROMs to test with at the moment, but I do have some backups of generation one and two games (Red, Blue, Yellow, Gold, Silver and Crystal) if you'd like to see those tested.

Screenshot of the window
RivenSkaye commented 1 year ago

Sorry for the broken formatting; seems like GitHub docs on the matter are wrong. Tried editing it to match it to a tee, including paragraph tags, indentation and relevant language attributes, but the preview tells me that won't work