View Issue Details

IDProjectCategoryView StatusLast Update
0012608Dwarf FortressTechnical -- Saving/Loadingpublic2023-11-19 15:22
Reporterc0reDump Assigned Tolethosor  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionduplicate 
Product Version50.11 
Summary0012608: Missing error handling on disk write failures -- saved state can be lost
DescriptionAll versions appear to be lacking disk I/O error handling. Game's state will be lost if there is an issue writing to disk, with no warnings given to the user and no option for the user to take corrective actions before the state is irrevocably lost -- the error is "silently ignored" (and nothing is written to the gamelog.txt or to the terminal console).

Disk write failures can happen for many reasons: disk/partition is full, lack of write permissions issue with the "save" folder, disk is network attached and lost its mount (becomes read-only on intermittent network issue), etc.
Steps To ReproduceAn easy way to reproduce a disk write failure is to change the permissions of the "save" folder so the current user does not have write access -- then create a new world, and save/exit back to the main menu. Notice that there is no warning in the user interface letting the user know that there was a problem writing the state to disk, and the save folder remains empty.
Additional InformationSuggest implementing a modal popup notifying the user of the failure to save the game's state to disk (with all the details), and provide user with options to either "Retry" or "Ignore" the failure.
TagsNo tags attached.

Relationships

duplicate of 0002587 confirmedlethosor Saving fails silently when folder is not writeable (due to full disk, permissions, etc) 

Activities

lethosor

2023-11-19 15:22

manager   ~0041874

Duplicate of 0002587. Consolidating.

Issue History

Date Modified Username Field Change
2023-11-19 07:21 c0reDump New Issue
2023-11-19 15:22 lethosor Assigned To => lethosor
2023-11-19 15:22 lethosor Status new => resolved
2023-11-19 15:22 lethosor Resolution open => duplicate
2023-11-19 15:22 lethosor Note Added: 0041874
2023-11-19 15:22 lethosor Relationship added duplicate of 0002587