Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0002587Dwarf FortressTechnical -- Saving/Loadingpublic2010-07-07 15:462015-06-29 13:32
SeveQ 
lethosor 
normalmajorhave not tried
confirmedopen 
0.31.08 
 
0002587: Saving fails silently when folder is not writeable (due to full disk, permissions, etc)
I've just lost a well running fortress to save game corruption caused by a full harddisk.

In my opinion DF should at least tell me that it can't save the game for any reason and give me options to retry saving (after freeing up some space), abort saving completely (means losing the fortress) or return to the fortress.

Just silently killing the savegame is kind of irritating.
saving
has duplicate 0003271resolved Logical2u DF does not check for available diskspace when saving game 
has duplicate 0005773resolved Footkerchief Crashes when accepting newly generated world 
related to 0004824new  DF doesn't notice if "export image/info" fails due to file system permissions etc 
related to 0002017acknowledged Loci Using COMPRESSED_SAVES causes save corruption on some systems 
Issue History
2010-07-07 15:46SeveQNew Issue
2010-07-10 14:19SeveQTag Attached: saving
2010-07-10 15:55smjjamesNote Added: 0009892
2010-07-22 05:28SeveQNote Added: 0010810
2010-09-18 09:37QuietustNote Added: 0012791
2010-09-18 09:38QuietustNote Edited: 0012791bug_revision_view_page.php?bugnote_id=0012791#r4963
2010-09-18 10:44Logical2uRelationship addedhas duplicate 0003271
2011-11-04 03:08zweiIssue Monitored: zwei
2011-11-04 03:15zweiNote Added: 0018942
2014-01-21 19:55FootkerchiefRelationship addedhas duplicate 0005773
2014-01-21 19:56FootkerchiefRelationship addedrelated to 0004824
2014-01-21 19:57FootkerchiefSummaryDF silently fails to save game when disk is full => DF silently fails to save game when folder is not writeable (due to full disk, permissions, etc)
2014-01-21 19:57FootkerchiefSummaryDF silently fails to save game when folder is not writeable (due to full disk, permissions, etc) => Saving fails silently when folder is not writeable (due to full disk, permissions, etc)
2015-06-29 12:38LociNote Added: 0032822
2015-06-29 13:32lethosorAssigned To => lethosor
2015-06-29 13:32lethosorStatusnew => confirmed
2015-06-29 13:33lethosorRelationship addedrelated to 0002017

Notes
(0009892)
smjjames   
2010-07-10 15:55   
Thats your problem right there, just remove some stuff off the harddisk or move the DF directory to a different disk, or move stuff on the harddisk to a flash drive.
(0010810)
SeveQ   
2010-07-22 05:28   
Yeah, sure. My full harddisk causes this. But DF shouldn't silently ignore that and destroy the savegame. Other software that isn't able to save its data to the harddisk due to insufficient space throws error messages at you with the opportunity to correct the problem before the next attempt to save. IMHO DF should do likewise.

DF could somehow estimate the size of the savegame the moment the user chooses "Save" from the game menu (might be cumbersome). Or save process could be put before the quit event so that the game is only eventually quit on a successful save.

It's really a minor thing that won't appear as long as you keep enough free space on your harddisk. But sometimes, yeah, sometimes, unexpectedly... I've lost a very good turn to that.
(0012791)
Quietust   
2010-09-18 09:37   
(edited on: 2010-09-18 09:38)
Considering that Dwarf Fortress, for the very purpose of avoiding savegame corruption if it happens to crash while saving, always saves your game as a copy in the "Current" folder and then, once it has finished, moves it into the appropriate region folder (after deleting the previous contents), I'd say that it should absolutely be handling this situation more gracefully.

(0018942)
zwei   
2011-11-04 03:15   
I had ths happen recently, it is quite annoying to loose season because of simple oversight.

Autosave with autobackup eats up disk space steadily.

Lack of disk space definitelly calls for some kind of soluton other than "crash df" or "corrupt savegame".
(0032822)
Loci   
2015-06-29 12:38   
Still occurs in v0.40.24.