Memory snapshots

A forum about the Hatari ST/STE/Falcon emulator - the current version is v2.5.0

Moderators: simonsunnyboy, npomarede, thothy, Moderator Team

Post Reply
jury
Captain Atari
Captain Atari
Posts: 376
Joined: Tue Sep 21, 2004 11:11 am
Location: Poland

Memory snapshots

Post by jury »

Generally memory snapshots worked fine so far. But since now when I save a snapshot I can not load it, I always get:
"This memory snapshot includes IPF data different from the ones handled in this version of Hatari" ( its 2.0.0 )
What does it mean? ( I have not been installing/compiling any Hataris in the last few months, and the snapshots saved long time ago still load just fine )
User avatar
Eero Tamminen
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3899
Joined: Sun Jul 31, 2011 1:11 pm

Re: Memory snapshots

Post by Eero Tamminen »

It meas that IPF floppy disk information in the memory snapshot is incompatible with your Hatari version, so Hatari will skip restoring that data.

Most likely it's produced with a Hatari version that used an earlier version of the external IPF/Caps library.
jury
Captain Atari
Captain Atari
Posts: 376
Joined: Tue Sep 21, 2004 11:11 am
Location: Poland

Re: Memory snapshots

Post by jury »

Eero Tamminen wrote: Most likely it's produced with a Hatari version that used an earlier version of the external IPF/Caps library.
But the problem is not beetween different versions of Hatari. Its the same version, when I save the memory state and then right away try to load it I always get this message. So its not possible to use savestates at all :( ( and it worked last time < probably couple of months ago> when I saved and loaded snapshots )
User avatar
Eero Tamminen
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3899
Joined: Sun Jul 31, 2011 1:11 pm

Re: Memory snapshots

Post by Eero Tamminen »

Ok, in that case Nicolas needs to take a look at that, I'm not myself using IPF/Caps library.
User avatar
TheNameOfTheGame
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2592
Joined: Mon Jul 23, 2012 8:57 pm
Location: Almost Heaven, West Virginia

Re: Memory snapshots

Post by TheNameOfTheGame »

I am having an issue with saving memory snapshots with hatari 2.4.0 linux.

I boot to the desktop tos 2.06 and press F12 then "Memory" then "save". I select a filename and then press "OK"

But no .sav file is created in the hatari directory "~/.config/hatari". Is there something else I need to do to get it working?

.cfg files are working fine and they save to the directory, but not memory snapshots.
User avatar
Eero Tamminen
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3899
Joined: Sun Jul 31, 2011 1:11 pm

Re: Memory snapshots

Post by Eero Tamminen »

TheNameOfTheGame wrote: Tue Sep 13, 2022 3:17 pm I am having an issue with saving memory snapshots with hatari 2.4.0 linux.

I boot to the desktop tos 2.06 and press F12 then "Memory" then "save". I select a filename and then press "OK"

But no .sav file is created in the hatari directory "~/.config/hatari". Is there something else I need to do to get it working?

.cfg files are working fine and they save to the directory, but not memory snapshots.
On quick look at the sources I did not see anything obvious, but I'm seeing the same problem with Hatari v.2.4.1.

There was "File ... exists, overwrite?" message in console though.

If I start Hatari with "--alert-level info" option, I see dialog with that question only after closing SDL GUI. WTF?

If I remove the save file before trying to save it again, saving works, but dialog informing about that is also shown only after closing SDL GUI.
User avatar
TheNameOfTheGame
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2592
Joined: Mon Jul 23, 2012 8:57 pm
Location: Almost Heaven, West Virginia

Re: Memory snapshots

Post by TheNameOfTheGame »

Ok, hopefully can get fixed. Memory snapshots are very useful.
cdpjenkins
Atari maniac
Atari maniac
Posts: 79
Joined: Wed Dec 22, 2021 8:37 pm

Re: Memory snapshots

Post by cdpjenkins »

Eero Tamminen wrote: Wed Sep 14, 2022 11:45 am If I start Hatari with "--alert-level info" option, I see dialog with that question only after closing SDL GUI. WTF?

If I remove the save file before trying to save it again, saving works, but dialog informing about that is also shown only after closing SDL GUI.
I think what's happening here is that Hatari only actually attempts to write the snapshot to disk when emulation is unpaused, which in the case of hte SDL GUI happens when the GUI is closed. The relevant code is in MemorySnapShot_OpenFile in Hatari's source tree, which ultimately gets called from the UAE code, though I confess that I don't understand it all yet.

I'm not clear whether this is the cause of the issues reported in this thread though.
User avatar
TheNameOfTheGame
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2592
Joined: Mon Jul 23, 2012 8:57 pm
Location: Almost Heaven, West Virginia

Re: Memory snapshots

Post by TheNameOfTheGame »

cdpjenkins wrote: Wed Sep 14, 2022 10:52 pm
Eero Tamminen wrote: Wed Sep 14, 2022 11:45 am If I start Hatari with "--alert-level info" option, I see dialog with that question only after closing SDL GUI. WTF?

If I remove the save file before trying to save it again, saving works, but dialog informing about that is also shown only after closing SDL GUI.
I think what's happening here is that Hatari only actually attempts to write the snapshot to disk when emulation is unpaused, which in the case of hte SDL GUI happens when the GUI is closed. The relevant code is in MemorySnapShot_OpenFile in Hatari's source tree, which ultimately gets called from the UAE code, though I confess that I don't understand it all yet.

I'm not clear whether this is the cause of the issues reported in this thread though.
Ah, ok, thanks for the explanation. So, yes, if I close the gui window then the snapshot gets saved.
Post Reply

Return to “Hatari”