jtothebell / fake-08

A Pico-8 player/emulator for console homebrew
Other
577 stars 48 forks source link

Freeze upon attempt to exit/suspend #90

Closed wesmo closed 2 years ago

wesmo commented 2 years ago

Device: Powkiddy V90 running Miyoo CFW 1.3.3 Version: fake-08 0.0.2.13

Issue: When pressing either the start-select button combination or suspend screen button in-game (rom already loaded and playing) the emulator freezes. Only solution is to switch v90 off and on again.

jtothebell commented 2 years ago

Thanks for reporting this. I've experienced intermittent freezing when exiting the emulator, but it sounds like this is every time if you suspend? Also, what is the start+select button combination supposed to do? Is that also suspend?

wesmo commented 2 years ago

Sorry i should've been more detailed:

1 - the start-select combo is bound by gmenu2x to take a screenshot 2 - the button that is used to suspend (located directly under the screen between the dpad and x button on the p90) is used to suspend the screen from gmenu2x in the miyoo cfw. In most emulators I have tested (pcsx-rearmed, gambatte dms, gp2x, smsplusgx) this button is the screen that brings up the emulator's option screen and allows you to select exit. 3 - The issue seems intermittent. Sometimes when I press the suspend button the fake-08 menu prompt comes up fine and allows me to select exit. Other times the emulator just freezes. I've experienced this behaviour in-game with the following cartridges: original celeste, picoracer-2048, waverace legend and picofox.

jtothebell commented 2 years ago

I've finally started looking in to this some more, and it looks like it has something to do with the callback that fills the audio buffer. I've tried a couple things that seem to help, but I still saw infrequent freezes. If you are still around and would like to check it out, I'm attaching that build here

FAKE08-bittboy-less-freezy.zip

jtothebell commented 2 years ago

Pretty sure I found the actual problem and have a fix. I can't get it to crash any more with this build

FAKE08-crash-on-exit-fix.zip

jtothebell commented 2 years ago

Newest release includes this fix. Closing.