dolphin icon indicating copy to clipboard operation
dolphin copied to clipboard

Freezing upon loading savestates

Open BLCRAFT210 opened this issue 2 years ago • 9 comments

I've noticed a few ways that savestate functions can cause Dolphin to freeze. The first is when you attempt to load a savestate with the scripting API that wasn't created using the API. (Edit: This actually works, but for some reason the game speed is much faster than normal upon loading.) Likewise, attempting to load a savestate with a hotkey will also cause a freeze if the savestate was created using the API. Finally, loading a savestate twice in the same program causes a freeze. This is a quick program that causes that:

from dolphin import event, savestate

await event.frameadvance()
savestate.load_from_file([path to file]) #this one works fine
for i in range(60):
    await event.frameadvance()
savestate.load_from_file([path to file]) #this one crashes

I don't know why these freezes happen, and there might be some other bugs with the savestate module.

BLCRAFT210 avatar Feb 06 '23 20:02 BLCRAFT210