Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0011638Dwarf FortressMiscellaneous Crashespublic2020-10-17 11:582020-10-28 09:17
daishi5 
 
normalcrashalways
newopen 
WindowsWindows 10Build 18363
0.47.04 
 
0011638: Crash in early spring unknown cause
My game is crashing every time within 3 months of the latest seasonal save, usually within a couple weeks.

I am using the latest lazy newb pack.

I have tried disabling DF hack, and it still reliably crashes.

I have also tried running it with no utilities or third party programs, still crashes.

I have checked all the equipment lists for my dwarves, and only valid item types and artifacts show up on the lists of possible items.

Running the DFHack script to check for invalid equipment returns no errors.

I have tried suspending all jobs, turning all meeting areas to citizens only, disabling all labor.

The game ran much longer when I disabled all labors and suspended all jobs. However, once I loaded the labors again and they started working, the game crashed in month 3.

Its possible that some combination of labor changes and job changes might prevent the crash (and therefore identify what caused the crash), but it can take up to an hour for the game to crash, so it seems unfeasible to work through all the iterations carefully.


The quickest and most reliable way to make it crash seems to be to load the game. A human attack will come in a few days, when it comes: Change the civilian alert to "attack" and then station the 4 squads of dwarves somewhere. I usually station them near the trading depot (hotkey f2.)
Save file here: https://dffd.bay12games.com/file.php?id=15254 [^]
No tags attached.
Issue History
2020-10-17 11:58daishi5New Issue
2020-10-18 01:53PatrikLundellNote Added: 0040767
2020-10-28 09:17QuietustNote Added: 0040775
2020-10-28 09:18QuietustNote Edited: 0040775bug_revision_view_page.php?bugnote_id=0040775#r16583
2020-10-28 09:25QuietustNote Edited: 0040775bug_revision_view_page.php?bugnote_id=0040775#r16584
2020-10-28 09:29QuietustNote Edited: 0040775bug_revision_view_page.php?bugnote_id=0040775#r16585
2020-10-28 10:46QuietustNote Edited: 0040775bug_revision_view_page.php?bugnote_id=0040775#r16586

Notes
(0040767)
PatrikLundell   
2020-10-18 01:53   
I failed to find the reason for the crash. The time I hooked up a debugger to the game it tried to access a null pointer.
(0040775)
Quietust   
2020-10-28 09:17   
(edited on: 2020-10-28 10:46)
The crash seems to have happened within the code that generates the announcement "[unit] has revealed the presence of [artifact] to [unit].", and it crashed while retrieving some information from unit 5364 (Stukos Thikutog, deceased Axedwarf).

The information being fetched was from a field which DFHack currently knows as "unitst.enemy.unk_v40_sub3.unk_7" - exactly what that field's real name is, I don't know, but it's supposed to be a pointer to another data structure but that pointer is NULL.