Memory snapshots
Moderators: simonsunnyboy, npomarede, thothy, Moderator Team
Memory snapshots
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 )
"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 )
- Eero Tamminen
- Fuji Shaped Bastard

- Posts: 3899
- Joined: Sun Jul 31, 2011 1:11 pm
Re: Memory snapshots
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.
Most likely it's produced with a Hatari version that used an earlier version of the external IPF/Caps library.
Re: Memory snapshots
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 allEero Tamminen wrote: Most likely it's produced with a Hatari version that used an earlier version of the external IPF/Caps library.
- Eero Tamminen
- Fuji Shaped Bastard

- Posts: 3899
- Joined: Sun Jul 31, 2011 1:11 pm
Re: Memory snapshots
Ok, in that case Nicolas needs to take a look at that, I'm not myself using IPF/Caps library.
- TheNameOfTheGame
- Fuji Shaped Bastard

- Posts: 2592
- Joined: Mon Jul 23, 2012 8:57 pm
- Location: Almost Heaven, West Virginia
Re: Memory snapshots
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.
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.
- Eero Tamminen
- Fuji Shaped Bastard

- Posts: 3899
- Joined: Sun Jul 31, 2011 1:11 pm
Re: 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.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.
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.
- TheNameOfTheGame
- Fuji Shaped Bastard

- Posts: 2592
- Joined: Mon Jul 23, 2012 8:57 pm
- Location: Almost Heaven, West Virginia
Re: Memory snapshots
Ok, hopefully can get fixed. Memory snapshots are very useful.
-
cdpjenkins
- Atari maniac

- Posts: 79
- Joined: Wed Dec 22, 2021 8:37 pm
Re: Memory snapshots
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.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'm not clear whether this is the cause of the issues reported in this thread though.
- TheNameOfTheGame
- Fuji Shaped Bastard

- Posts: 2592
- Joined: Mon Jul 23, 2012 8:57 pm
- Location: Almost Heaven, West Virginia
Re: Memory snapshots
Ah, ok, thanks for the explanation. So, yes, if I close the gui window then the snapshot gets saved.cdpjenkins wrote: ↑Wed Sep 14, 2022 10:52 pmI 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.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'm not clear whether this is the cause of the issues reported in this thread though.