View Issue Details

IDProjectCategoryView StatusLast Update
0002017Dwarf FortressTechnical -- Saving/Loadingpublic2019-10-07 14:14
ReporterHydrall Assigned ToLoci  
PriorityhighSeveritycrashReproducibilityrandom
Status acknowledgedResolutionopen 
OSWindows 7 
Product Version0.31.04 
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

Relationships

related to 0002587 confirmedlethosor Saving fails silently when folder is not writeable (due to full disk, permissions, etc) 
has duplicate 0002610 resolveduser6 Crash during game load, runtime error 
has duplicate 0002998 resolveduser6 Savegame corruption - Compressed file error 
has duplicate 0003699 resolvedLogical2u Game Save is corrupted 
has duplicate 0004351 resolveduser6 While trying to start playing on some worlds, or when loading some save games, reproducible crash 
has duplicate 0004538 resolveduser11 Dwarf Mode save loading crash 
has duplicate 0004933 resolveduser11 crash on load 
has duplicate 0005795 resolveduser6 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 0006204 resolveduser6 "One of the compressed files on disk has errors on it". Save directory ("current") blank. 
related to 0002212 resolvedlethosor Incompatible saves between Intel and PPC Macs-OSX 
related to 0004915 resolveduser6 Crashing when loading save 
related to 0004863 resolveduser6 Saved game crashes on unpausing or 'stepping' after loading 
related to 0005036 resolvedlethosor Save file gets corrupted, doesn't show up in list 

Activities

user6

2010-05-21 16:01

  ~0007148

Last edited: 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

2010-05-28 03:07

reporter   ~0007415

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

2010-05-28 04:51

manager   ~0007416

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

2010-06-01 11:43

reporter   ~0007536

No, the error log is completely unchanged.

user6

2010-06-01 11:51

  ~0007538

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.

user6

2010-06-03 12:17

  ~0007624

Any updates?

Hydrall

2010-06-04 12:39

reporter   ~0007668

It appears to be working! Thank you very much!

user6

2010-06-21 12:18

  ~0008898

Cool. Wish we knew why save compression causes crashes on 64-bit.

Morbs

2010-06-21 12:34

reporter   ~0008904

I am using Win 7 64 bit. Have had no issues with save compression.

jaked122

2010-06-28 06:45

reporter   ~0009211

I am using mac os x snow leopard 64bit and no issues with save compression.

Telarin

2010-06-28 07:07

reporter   ~0009213

Win XP Pro, 64-bit. Also no problems with save compression.

maluraq

2011-01-11 14:02

reporter   ~0014842

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

2011-01-24 19:50

reporter   ~0014925

WORKAROUND:
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.

user11

2011-12-15 07:27

  ~0019178

Last edited: 2015-07-06 17:23

Phazorx has a save from 0004933:

[file removed]

ninjanomnom

2012-01-30 11:57

reporter   ~0019435

Last edited: 2012-01-30 11:59

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

EDIT
oops sorry for necro

Loci

2015-06-29 12:36

viewer   ~0032821

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

2015-07-06 18:40

manager   ~0032853

Last edited: 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

2015-07-08 14:30

viewer   ~0032864

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 user6 Note Added: 0007148
2010-05-21 16:03 user6 Note Edited: 0007148
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 user6 Note Added: 0007538
2010-06-03 12:17 user6 Note Added: 0007624
2010-06-03 12:17 user6 Tag Attached: AWAITING UPDATE
2010-06-04 12:39 Hydrall Note Added: 0007668
2010-06-21 12:18 user6 Note Added: 0008898
2010-06-21 12:18 user6 Status new => resolved
2010-06-21 12:18 user6 Resolution open => no change required
2010-06-21 12:18 user6 Assigned To => user6
2010-06-21 12:19 user6 Assigned To user6 =>
2010-06-21 12:19 user6 Status resolved => new
2010-06-21 12:21 user6 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 user6 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 user6 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 user6 Category Technical => Technical -- General
2010-06-29 20:46 user6 Category Technical -- General => Technical -- Saving/Loading
2010-06-29 20:46 user6 Tag Detached: AWAITING UPDATE
2010-07-13 23:27 user6 Relationship added has duplicate 0002610
2010-08-10 06:05 user6 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 user11 Resolution no change required => open
2011-03-26 23:27 user6 Relationship added has duplicate 0004351
2011-04-17 19:28 Logical2u Relationship added related to 0004538
2011-10-05 11:26 user11 Relationship added related to 0004915
2011-10-05 19:18 user11 Relationship deleted related to 0004915
2011-12-11 08:47 user11 Relationship added related to 0004915
2011-12-11 08:50 user11 Relationship replaced has duplicate 0004538
2011-12-11 09:04 user11 Relationship added related to 0004863
2011-12-15 07:26 user11 Relationship added has duplicate 0004933
2011-12-15 07:27 user11 Note Added: 0019178
2012-01-30 11:39 user11 Relationship added related to 0005036
2012-01-30 11:57 ninjanomnom Note Added: 0019435
2012-01-30 11:59 ninjanomnom Note Edited: 0019435
2012-04-11 11:52 user6 Relationship added has duplicate 0005795
2012-09-20 08:06 user6 Relationship added has duplicate 0006204
2014-12-30 20:18 user6 Relationship replaced has duplicate 0005036
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
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 => 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
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 feedback => new
2018-05-08 08:01 lethosor Assigned To lethosor =>
2019-10-07 14:14 Loci Assigned To => Loci
2019-10-07 14:14 Loci Status new => acknowledged