Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0001367Dwarf FortressDwarf Mode -- Abandonment of Fortpublic2010-04-20 06:542017-07-18 09:35
stolide 
Toady One 
highmajorsometimes
resolvedfixed 
Windows Vista
0.31.03 
0.31.06 
0001367: Game crashes on save/abandon
There have been a couple forts I have that after awhile crash when saving. It seemed as though it was always crashing, but it looks like it might work now.

The window stays normal for a few minutes, then says that it is not responding and locks up.
It is my largest fort yet, so perhaps make a large fort and try to save.

My other forts seem to work fine. Again, this is my largest fort so that my be part of it. The population was in the 60's.
If I had to guess, it is taking too long for it to save, so windows says it is not responding or something. I am not really sure.
crash, saving
duplicate of 0000827resolved Toady One Crash on save or abandonment of Fortress 
has duplicate 0006059resolved Footkerchief Crash on abandon 
Issue History
2010-04-20 06:54stolideNew Issue
2010-04-20 06:59JimboOmegaNote Added: 0004328
2010-04-20 07:13JimboOmegaNote Edited: 0004328bug_revision_view_page.php?bugnote_id=0004328#r1460
2010-04-20 09:35FootkerchiefRelationship addedhas duplicate 0001365
2010-04-20 09:36FootkerchiefSummaryThe same fort I reported a few minutes ago for crashing on saving also crashes on abandonment. => Game crashes on save/abandon
2010-04-20 09:36FootkerchiefDescription Updatedbug_revision_view_page.php?rev_id=1464#r1464
2010-04-20 09:36FootkerchiefSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1466#r1466
2010-04-20 09:36FootkerchiefAdditional Information Updatedbug_revision_view_page.php?rev_id=1468#r1468
2010-04-20 09:38FootkerchiefNote Added: 0004338
2010-04-20 09:39FootkerchiefRelationship addedchild of 0000629
2010-04-20 09:41FootkerchiefIssue Monitored: Footkerchief
2010-04-20 09:46KennelTag Attached: crash
2010-04-20 09:46KennelTag Attached: saving
2010-04-20 11:52JimboOmegaNote Added: 0004364
2010-04-20 11:54JimboOmegaNote Edited: 0004364bug_revision_view_page.php?bugnote_id=0004364#r1478
2010-04-20 12:20FootkerchiefNote Added: 0004369
2010-04-20 12:53JimboOmegaNote Added: 0004374
2010-04-20 13:43FootkerchiefNote Added: 0004378
2010-04-21 01:56NimrodNote Added: 0004423
2010-04-21 06:53JimboOmegaIssue Monitored: JimboOmega
2010-04-21 06:58JimboOmegaNote Added: 0004437
2010-04-23 15:15FootkerchiefRelationship deletedchild of 0000629
2010-04-23 15:15FootkerchiefRelationship addedchild of 0000609
2010-04-23 15:15FootkerchiefRelationship deletedchild of 0000609
2010-04-23 15:15FootkerchiefRelationship addedchild of 0001046
2010-05-05 18:48SkilledNewbieNote Added: 0006225
2010-05-21 11:14FootkerchiefRelationship deletedchild of 0001046
2010-05-21 11:14FootkerchiefRelationship addedhas duplicate 0002014
2010-06-03 12:16FootkerchiefRelationship addedchild of 0000827
2010-06-03 12:22FootkerchiefRelationship addedchild of 0000277
2010-06-03 12:22FootkerchiefRelationship deletedchild of 0000827
2010-06-03 12:23FootkerchiefRelationship deletedhas duplicate 0001365
2010-06-03 12:24FootkerchiefRelationship deletedhas duplicate 0002014
2010-06-05 07:37Toady OneNote Added: 0007719
2010-06-05 07:37Toady OneAssigned To => Toady One
2010-06-05 07:37Toady OneStatusnew => acknowledged
2011-04-05 16:12FootkerchiefNote Added: 0017111
2011-04-05 16:12FootkerchiefTag Attached: AWAITING UPDATE
2011-04-05 16:12FootkerchiefRelationship addedduplicate of 0000827
2011-04-05 16:12FootkerchiefRelationship deletedchild of 0000277
2012-09-11 20:55FootkerchiefRelationship addedhas duplicate 0006059
2014-01-20 18:41FootkerchiefStatusacknowledged => resolved
2014-01-20 18:41FootkerchiefResolutionopen => fixed
2014-08-04 15:01FootkerchiefTag Detached: AWAITING UPDATE
2017-07-18 09:35lethosorFixed in Version => 0.31.06

Notes
(0004328)
JimboOmega   
2010-04-20 06:59   
(edited on: 2010-04-20 07:13)
There seem to be issues at a certain size threshold where crashes become more numerous - around 50/60 (around when you get a mayor).

See also:

http://www.bay12games.com/dwarves/mantisbt/view.php?id=629 [^]
and I think both of yours are a duplicate of:
http://www.bay12games.com/dwarves/mantisbt/view.php?id=827 [^]

I posted a save in 629 that demonstrates all these issues - actually, I never tried abandoning, but it crashes on save and crashes within a minute of being started...

http://dffd.wimbli.com/file.php?id=2127 [^]

It's a game breaker for me - crash on save was bad, but since the save wasn't corrupted, it was okay. Crash after a few minutes is a ruiner, though.

UPDATE: As expected, it crashes on abandon too

(0004338)
Footkerchief   
2010-04-20 09:38   
This didn't need two separate reports. You can add extra info in a note. I'm merging the reports now.

How large is the save folder currently? What's the setting for the COMPRESSED_SAVES init option? How high does DF's memory usage get during the save/abandon process?
(0004364)
JimboOmega   
2010-04-20 11:52   
(edited on: 2010-04-20 11:54)
Footkerchief - I can answer for my own save experiencing identical problems in addition to a crash left running (the save/abandon issue cropped up first):
Compressed Saves is ON in my case

Memory usage on opening my save game shoots up to a little over 500MB. It stays there until a crash, whether caused by save or abandon, or letting the game run. It does seem possible it's bouncing off a 512MB cap and that is causing my crashes (how could I find out?)

The save folder was about 30MB in both cases. I uploaded a copy linked in a previous comment if you want to take a look.

(0004369)
Footkerchief   
2010-04-20 12:20   
512MB is no problem. The memory limit is 2 GB. I was wondering if the RAM usage gets that high during the process of saving the game -- some large worlds and embark areas are blowing out the limit in this version -- but if your save is only 30MB, that's probably not the case.
(0004374)
JimboOmega   
2010-04-20 12:53   
Does the save crash for you on save, abandon, and run? I have had the problem on both computers I tried it on. (Both Windows XP).

I was thinking it was 512 MB becasue all of those lead to a crash for me. My thinking was it starts about there and when any of save, run, or abandon uses even a little more memory, it crashes since it hits the limit. But based on what you said, I suppose not.

The trouble started with the save (and possibly abandon) issue a few real life hours before it came to its current state (where running even briefly leads to a crash).

My only real guess is it has something to do with the # of immigrants - most people seem to start hitting this around 50/60. Or possibly hospital or military related - I have an almost obscene number of injured dwarves and someone suggested it could be related to a recently set up hospital.
(0004378)
Footkerchief   
2010-04-20 13:43   
Save crash: check
Abandon crash: check
Run-for-a-few-minutes crash: check
(0004423)
Nimrod   
2010-04-21 01:56   
I can reproduce a save crash when i got some (ex goblin) copper items marked for melting. I removed the melting tag - no more save crash

Maybe thats related
(0004437)
JimboOmega   
2010-04-21 06:58   
I can confirm that my save (the one I posted) does NOT crash on save (didn't check abandon) when all the melt designations are removed. (via z-stocks)

My save still crashes when allowed to run for a time, unfortunately. Two separate issues, it seems like.

Perhaps the reason this is associated with a higher number of dwarves is because that's also when higher numbers of goblins - and their stuff which gets tagged for melting - appears.
(0006225)
SkilledNewbie   
2010-05-05 18:48   
Here's a save that crashes on abandon but does not crash while saving.

http://dffd.wimbli.com/file.php?id=2303 [^]
(0007719)
Toady One   
2010-06-05 07:37   
I didn't get a chance to check if JimboOmega's save is still broken, but SkilledNewbie's save still had an abandon crash in 0.31.05. It comes from abandoning if you have a box/cabinet master room assigned to somebody. This is fixed for 0.31.06.
(0017111)
Footkerchief   
2011-04-05 16:12   
Reminder sent to: JimboOmega

Does your save still crash in 0.31.25?