Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0010785Dwarf FortressTechnical -- Saving/Loadingpublic2018-06-07 16:172018-06-08 13:10
Greyberyl 
 
normalmajorN/A
newopen 
PCwindows 7Pro-64 bit
0.44.10 
 
0010785: Bugged Save
After initiating a save, DF hung for just over three hours (2 hours and 56 mins longer than normal) before I had to reboot the machine in order to regain control. Save now hangs while "Loading local animal population".

Have uploaded a copy of the save here:

http://dffd.bay12games.com/file.php?id=13811 [^]

Am I toast?
Attempted to load within LNP0.13 and outside of it. Hangs every time in the same step.
No unusual activity prior to save. I did just buy out a Dwarf trader of a good many animals to bulk up bone production.
No tags attached.
Issue History
2018-06-07 16:17GreyberylNew Issue
2018-06-08 04:49PatrikLundellNote Added: 0038442
2018-06-08 08:55lethosorNote Added: 0038444
2018-06-08 08:57lethosorNote Added: 0038445
2018-06-08 08:58lethosorNote Edited: 0038445bug_revision_view_page.php?bugnote_id=0038445#r15645
2018-06-08 11:10GreyberylNote Added: 0038446
2018-06-08 13:10lethosorNote Added: 0038447

Notes
(0038442)
PatrikLundell   
2018-06-08 04:49   
In my case the loading of the save cause DF to crash (just disappearing with DFHack, although that typically means non DFHack crashes with a message window popup). I'm on Windows 10.1.

LNP0.13 doesn't tell me much. I would guess that's the version of pyLNP used, but I assume you haven't assembled something yourself, but used a pack (e.g. PeridexisErrant's LNP). The relevant version is the pack version (and the pack name, of course).

Regardless, I would guess the save is corrupt and you do have to start anew, unless you have a backup from a previous point.
(0038444)
lethosor   
2018-06-08 08:55   
df-savecheck output:

region3/world.sav: chunk 5212 (start=16774854, length=2783): Compression error: unexpected EOF
region3/world.sav: 211641672 bytes unread, 16777641 bytes read


So world.sav is corrupted around 16 MB in. Are you short on disk space, or did anything unusual happen while saving last time?

I didn't check other files because there are too many (~20k) to check easily. I don't think it's possible to fix without a backup of at least world.sav, though.
(0038445)
lethosor   
2018-06-08 08:57   
(edited on: 2018-06-08 08:58)
Turns out world.sav starting at exactly 0x01000000 is entirely 0x00 bytes, which is definitely corrupted beyond repair. This is something I've seen before in one or two other reports, but I'm inclined to say it's a system factor, as that's an unusually round number.

(0038446)
Greyberyl   
2018-06-08 11:10   
Thanks for the help folks. Lethosar I have lots of HD space. Absolutely nothing unusual happened prior to the eternal saving process that got hung. In fact, I had only been playing a short while since the last save. Unfortunately, no backup done. That was the learned lesson on this fort.
(0038447)
lethosor   
2018-06-08 13:10   
I was asking about during the save, but apparently I didn't see that part of the original report - if it hung during a save, that might explain how the save got corrupted.
Was DF in the "cleaning game objects" stage yet? Usually a crash during saving doesn't corrupt a save, because DF writes to data/save/current first, then moves everything into the region folder. I'm surprised that a hang while saving could cause something like this.