shonumi / gbe-plus

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

Out of bounds error, LOZ Minish Cap #94

Open glaciel opened 5 years ago

glaciel commented 5 years ago

I'm sorry if this issue is duplicated but I have exact the same issue as this topic: https://github.com/shonumi/gbe-plus/issues/76 even though I have installed the latest version which is gbe+ 1.3

Screenshot from 2019-04-02 16-19-07

My emulator freeze and crash at this scene. CPU::Warning: ARM instruction uses reserved conditional code NV SWI::Error - Unknown BIOS function 0xff CPU::Warning - ARM.10 Offset Register is PC Out of bounds read : 0xfdfff3f5 Out of bounds read : 0xfdfff3f4

shonumi commented 5 years ago

Please send me the game save (the .sav file) and I'll take a look.

EDIT: It's probably not be a duplicate of #76. I believe the European version might be doing something else that wasn't fixed in that issue.

glaciel commented 5 years ago

Yep, here it is: https://drive.google.com/open?id=1y-zT0Eq2O1RlfaxWS0vbr0DsBnSixvd8

shonumi commented 5 years ago

Weird. I just tried it, and no crashes, no errors either. Do you mind sending me the save state you're using? There might be some clues with that.

glaciel commented 5 years ago

Save state file: https://drive.google.com/open?id=1Ql23vnSqn_woz9wg4e5hJx7Gy-73rtOv ROM I used in case you need it: snip

shonumi commented 5 years ago

No need to link to the ROM, but thanks for the save state. I'll look into it again.

shonumi commented 5 years ago

One more question: if you load a game normally (no save state, only using native game saves), do you still get the issue? I couldn't recreate the problem when loading from a native game save, and loading from save states I made myself worked okay too.

I suspect that something might have happened when GBE+ made your save state (one of the CPU registers, the one that tells the CPU where to fetch + execute code, looks incorrect for some reason). I want to know if GBE+ somehow corrupted the save state when writing it. So far, that save state is the only way I've been able to get the crash to happen, but under normal circumstances, any save state should be just fine.

glaciel commented 5 years ago

Yaaaa, if I load from native game save, everything is normal. I still can save and load state at that scene as usual. Thank you so much for your help, I think I will need to spend time to collect some items again. But I still wonder that I got stuck at the same scene as that issue is just a coincidence right? LOL

shonumi commented 5 years ago

I think there is some issue with the way the GBA core handles save states. It's mostly stable but in some cases just crashes. I've seen it happen elsewhere, just not sure where the problem is yet. I'll keep looking for the cause.