mgba-emu / mgba

mGBA Game Boy Advance Emulator
https://mgba.io/
Mozilla Public License 2.0
5.66k stars 777 forks source link

Crash/Hang in Gradius Galaxies Stage 3 #2091

Closed Zylysh closed 3 years ago

Zylysh commented 3 years ago

Found in mGBA 0.9.0, Windows x64 build on Windows 10 64-bit. In Stage 3, there's a section where there are many fireballs that emit 3 projectiles each. If too many projectiles and fireballs are on the screen, the game hangs or crashes. This can be avoided by continually moving upward/downward to de-spawn the fireballs. When the game crashes, the dialogue box says "Jumped to invalid address: FFFFFC80" or a similarly high value. The attached file was generated using the bug reporter and includes a save state in the area where the bug occurs.

Gradius Galaxies.zip

endrift commented 3 years ago

You appear to have a bad dump. I'm having trouble reproducing this on a good dump (but maybe I'm just bad at the game).

Zylysh commented 3 years ago

I tested the stage out again on my dump and a good dump and neither produced the bug. I have to assume it was the savestate, as I was using them extensively in my playthrough.

endrift commented 3 years ago

Unfortunate but possible. There are still savestate bugs lurking.

endrift commented 3 years ago

Though I was never able to reproduce, this was likely caused by the same root issue as #2097, which has been fixed. Tentatively closing this, and you can let me know if it reproduces it dev or 0.9.1 when it comes out.