Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002017Dwarf FortressTechnical -- Saving/Loadingpublic2010-05-21 15:592018-05-08 08:01
Assigned To 
PlatformOSWindows 7OS Version
Product Version0.31.04 
Target VersionFixed in Version 
Summary0002017: Using COMPRESSED_SAVES causes save corruption on some systems
DescriptionI created my fortress, started digging etc, and then saved. As far as I am aware, the saving process didn't encounter any problems and didn't crash. However, whenever I attempt to open the file now, it crashes. My other file in adventurer mode does not crash when opened, and plays just fine.
Tagscrash, load, save game
Attached Files

- Relationships
related to 0002587confirmedlethosor Saving fails silently when folder is not writeable (due to full disk, permissions, etc) 
has duplicate 0002610resolvedFootkerchief Crash during game load, runtime error 
has duplicate 0002998resolvedFootkerchief Savegame corruption - Compressed file error 
has duplicate 0003699resolvedLogical2u Game Save is corrupted 
has duplicate 0004351resolvedFootkerchief While trying to start playing on some worlds, or when loading some save games, reproducible crash 
has duplicate 0004538resolvedDwarfu Dwarf Mode save loading crash 
has duplicate 0004933resolvedDwarfu crash on load 
has duplicate 0005795resolvedFootkerchief In version 34.05 and 34.06 I have started a fort, saved, and then DF crashes when I try to load the save. 
has duplicate 0006204resolvedFootkerchief "One of the compressed files on disk has errors on it". Save directory ("current") blank. 
related to 0002212resolvedlethosor Incompatible saves between Intel and PPC Macs-OSX 
related to 0004915resolvedFootkerchief Crashing when loading save 
related to 0004863resolvedFootkerchief Saved game crashes on unpausing or 'stepping' after loading 
related to 0005036resolvedlethosor Save file gets corrupted, doesn't show up in list 

-  Notes
Footkerchief (manager)
2010-05-21 16:01
edited on: 2010-05-21 16:03

Where's the game installed? If you installed it in Program Files, that causes problems on Windows 7 and Vista. Install it somewhere else instead.

Hydrall (reporter)
2010-05-28 03:07

I did not install it in program files, I did it in Documents. And if I can't save it there, where else can it go?
Logical2u (manager)
2010-05-28 04:51

Documents should be fine as long as you have administrator write access to the folder.

Does your error log have anything useful in it after attempting to load the game?
Hydrall (reporter)
2010-06-01 11:43

No, the error log is completely unchanged.
Footkerchief (manager)
2010-06-01 11:51

Are you on a 64-bit OS? If so, you should try disabling COMPRESSED_SAVES in init.txt. For some reason, save compression frequently results in corruption on 64-bit systems.
Footkerchief (manager)
2010-06-03 12:17

Any updates?
Hydrall (reporter)
2010-06-04 12:39

It appears to be working! Thank you very much!
Footkerchief (manager)
2010-06-21 12:18

Cool. Wish we knew why save compression causes crashes on 64-bit.
Morbs (reporter)
2010-06-21 12:34

I am using Win 7 64 bit. Have had no issues with save compression.
jaked122 (reporter)
2010-06-28 06:45

I am using mac os x snow leopard 64bit and no issues with save compression.
Telarin (reporter)
2010-06-28 07:07

Win XP Pro, 64-bit. Also no problems with save compression.
maluraq (reporter)
2011-01-11 14:02

I've just had the same thing happen myself. I wish I had known in advance to avoid it. Fedora Linux 64-bit here.
zilpin (reporter)
2011-01-24 19:50

For Windows users.
In your INI, disable compressed saves.
Then in Explorer right click on the «save» folder.
Select «Properties».
Click «Advanced».
Check «Compress contents to save disk space».

This will let Windows compress the save games for you.
In addition to the game not corrupting it is faster to save and load than when DF does compression itself. Windows can typical compress my saves to 20% of their uncompressed size with no risk of corruption.

For GNU/Linux users who have ReiserFS a similar workaround may work for you.
Dwarfu (manager)
2011-12-15 07:27
edited on: 2015-07-06 17:23

Phazorx has a save from 0004933:

[file removed]

ninjanomnom (reporter)
2012-01-30 11:57
edited on: 2012-01-30 11:59

I might have something like this but i can't even see my save in the loading screen...

oops sorry for necro

Loci (manager)
2015-06-29 12:36

This may be related to 0002587. Compressing with x64 may increase the chance of a "non-fatal" i/o exception, which Dwarf Fortress blithely ignores, leading to the corruption.

I received this error on a (consistently working) x64 machine when disk space was critically low.
lethosor (manager)
2015-07-06 18:40
edited on: 2015-07-06 18:41

There are a few instances of corruption occurring on 32-bit systems (e.g. 0002610:0010218). In addition, none of the saves I could track down in this report actually exhibit corruption caused by compression. In some cases, the data that is actually compressed is corrupted, but it can be decompressed without issues (i.e. it was most likely corrupted during serialization, before it was compressed). Others, like the save from 0002610, are truncated but otherwise valid, which could be due to 0002587. I'm not sure what caused these issues, but I don't see how any of these saves can be linked to faulty compression.

Loci (manager)
2015-07-08 14:30

It's unclear what feedback you are hoping for here. The issue remains that *enabling* compression seems to cause corruption (and, conversely, *disabling* compression prevents it). Though the compression itself may not be at fault, the corruption is a problem that needs to be tracked and fixed.

- Issue History
Date Modified Username Field Change
2010-05-21 15:59 Hydrall New Issue
2010-05-21 16:01 Footkerchief Note Added: 0007148
2010-05-21 16:03 Footkerchief Note Edited: 0007148 View Revisions
2010-05-28 03:07 Hydrall Note Added: 0007415
2010-05-28 03:08 Hydrall Tag Attached: crash
2010-05-28 03:08 Hydrall Tag Attached: load
2010-05-28 03:08 Hydrall Tag Attached: save game
2010-05-28 04:51 Logical2u Note Added: 0007416
2010-06-01 11:43 Hydrall Note Added: 0007536
2010-06-01 11:51 Footkerchief Note Added: 0007538
2010-06-03 12:17 Footkerchief Note Added: 0007624
2010-06-03 12:17 Footkerchief Tag Attached: AWAITING UPDATE
2010-06-04 12:39 Hydrall Note Added: 0007668
2010-06-21 12:18 Footkerchief Note Added: 0008898
2010-06-21 12:18 Footkerchief Status new => resolved
2010-06-21 12:18 Footkerchief Resolution open => no change required
2010-06-21 12:18 Footkerchief Assigned To => Footkerchief
2010-06-21 12:19 Footkerchief Assigned To Footkerchief =>
2010-06-21 12:19 Footkerchief Status resolved => new
2010-06-21 12:21 Footkerchief Summary Crashes on startup => Using COMPRESSED_SAVES causes save corruption on 64-bit systems
2010-06-21 12:34 Morbs Note Added: 0008904
2010-06-21 15:52 Footkerchief Relationship added related to 0002212
2010-06-28 06:45 jaked122 Note Added: 0009211
2010-06-28 07:07 Telarin Note Added: 0009213
2010-06-28 07:23 Footkerchief Summary Using COMPRESSED_SAVES causes save corruption on 64-bit systems => Using COMPRESSED_SAVES causes save corruption on some 64-bit systems
2010-06-29 07:38 Footkerchief Category Technical => Technical -- General
2010-06-29 20:46 Footkerchief Category Technical -- General => Technical -- Saving/Loading
2010-06-29 20:46 Footkerchief Tag Detached: AWAITING UPDATE
2010-07-13 23:27 Footkerchief Relationship added has duplicate 0002610
2010-08-10 06:05 Footkerchief Relationship added has duplicate 0002998
2010-11-20 17:39 Logical2u Relationship added related to 0003699
2010-11-20 22:03 Logical2u Relationship replaced has duplicate 0003699
2011-01-11 14:02 maluraq Note Added: 0014842
2011-01-24 19:50 zilpin Note Added: 0014925
2011-02-06 15:16 Dwarfu Resolution no change required => open
2011-03-26 23:27 Footkerchief Relationship added has duplicate 0004351
2011-04-17 19:28 Logical2u Relationship added related to 0004538
2011-10-05 11:26 Dwarfu Relationship added related to 0004915
2011-10-05 19:18 Dwarfu Relationship deleted related to 0004915
2011-12-11 08:47 Dwarfu Relationship added related to 0004915
2011-12-11 08:50 Dwarfu Relationship replaced has duplicate 0004538
2011-12-11 09:04 Dwarfu Relationship added related to 0004863
2011-12-15 07:26 Dwarfu Relationship added has duplicate 0004933
2011-12-15 07:27 Dwarfu Note Added: 0019178
2012-01-30 11:39 Dwarfu Relationship added related to 0005036
2012-01-30 11:57 ninjanomnom Note Added: 0019435
2012-01-30 11:59 ninjanomnom Note Edited: 0019435 View Revisions
2012-04-11 11:52 Footkerchief Relationship added has duplicate 0005795
2012-09-20 08:06 Footkerchief Relationship added has duplicate 0006204
2014-01-20 19:06 Footkerchief Issue Monitored: stuntaneous
2014-12-30 20:18 Footkerchief Relationship replaced has duplicate 0005036
2014-12-30 20:18 Footkerchief Issue Monitored: ninjanomnom
2015-06-29 12:36 Loci Note Added: 0032821
2015-06-29 13:33 lethosor Relationship added related to 0002587
2015-07-06 17:23 lethosor Note Edited: 0019178 View Revisions
2015-07-06 17:49 lethosor Relationship deleted has duplicate 0005036
2015-07-06 17:54 lethosor Relationship added related to 0005036
2015-07-06 18:40 lethosor Note Added: 0032853
2015-07-06 18:40 lethosor Status new => needs feedback
2015-07-06 18:40 lethosor Summary Using COMPRESSED_SAVES causes save corruption on some 64-bit systems => Using COMPRESSED_SAVES causes save corruption on some systems
2015-07-06 18:41 lethosor Note Edited: 0032853 View Revisions
2015-07-08 14:30 Loci Note Added: 0032864
2015-09-02 10:39 lethosor Reproducibility always => random
2015-09-02 10:39 lethosor Assigned To => lethosor
2015-09-02 10:39 lethosor Status needs feedback => new
2018-05-08 08:01 lethosor Assigned To lethosor =>

Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker