Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0010501Dwarf FortressGeneralpublic2018-01-04 05:312018-01-07 14:32
sionlife 
Toady One 
normalmajoralways
resolvedfixed 
MacMacOS Sierra10.12.6
0.44.03 
0.44.04 
0010501: Crash after 5s of loading save (inaccessible minecart)
If you load the game below, it will crash 5s after you unpause it. I have tried changing settings in the init files and everything I can think of to no avail. I am running plain vanilla 0.44.03 with no starter packs and no mods or anything like that. I saved the game last night after spending the whole day redesigning my defences, using a whole load of spiked traps (which I have not used yet, so should show no wear). Please can I take a look as I don't fancy abandoning it at this stage. Thanks!

http://dffd.bay12games.com/file.php?id=13384 [^]
Load game, unpause and wait 5 seconds.
No tags attached.
Issue History
2018-01-04 05:31sionlifeNew Issue
2018-01-04 05:42sionlifeNote Added: 0037498
2018-01-04 05:43sionlifeNote Edited: 0037498bug_revision_view_page.php?bugnote_id=0037498#r15173
2018-01-06 11:02LociNote Added: 0037518
2018-01-06 11:02LociSummaryCrash after 5s of loading save => Crash after 5s of loading save (inaccessible minecart)
2018-01-06 16:33sionlifeNote Added: 0037535
2018-01-06 22:51lethosorNote Added: 0037541
2018-01-06 22:52lethosorAssigned To => lethosor
2018-01-06 22:52lethosorStatusnew => confirmed
2018-01-07 14:32Toady OneNote Added: 0037544
2018-01-07 14:32Toady OneStatusconfirmed => resolved
2018-01-07 14:32Toady OneFixed in Version => Next Version
2018-01-07 14:32Toady OneResolutionopen => fixed
2018-01-07 14:32Toady OneAssigned Tolethosor => Toady One

Notes
(0037498)
sionlife   
2018-01-04 05:42   
(edited on: 2018-01-04 05:43)
Well, what do you know, after making this bug report, I continued trying to fix it by doing a d-b-f to forbid everything in x-y-z space, this fixed the crash. I then narrowed it all the way down to a minecart on level z-44 that was inaccessible because I had closed off a hatch to prevent access to that part of the mine track. The game probably crashed as there was no way to find an accessible path to the minecart for a dwarf to move it.

Interesting though is that the minecart was in the same inaccessible state for many hours late last night when I was playing, but the crash only happened upon loading the save this morning for a new playing session.

(0037518)
Loci   
2018-01-06 11:02   
Didn't crash for me on windows with multiple attempts. Perhaps someone else with a Mac can try to reproduce the crash?
(0037535)
sionlife   
2018-01-06 16:33   
I found out what was causing the crash, see my post above. Interesting though that it doesn't happen on Windows. Wonder if that is a memory difference thing between the two computers.
(0037541)
lethosor   
2018-01-06 22:51   
Some DFHack investigation confirmed that the minecart in question (item ID 275623, vehicle ID 5, position 51,46,47) is assigned to the "siege ammo" route. Interestingly, while the item has that position, the vehicle (not sure on the proper name there) has a position of -30000,-30000,-30000. That might be the case for all "off-route" minecarts, though; I'm not sure.

Anyway, forbidding that minecart or unassigning it from the hauling route does seem to stop the crash. I tested it on a Mac, but crashes like this generally aren't tied to specific platforms - they can behave the same way (crashing vs not crashing) fairly consistently on certain systems depending on a variety of factors, but that doesn't mean it'll always crash on OS X and never on Windows.
(0037544)
Toady One   
2018-01-07 14:32   
Fortunately this crashed reliably in the IDE for me, so this bug, which has been haunting Linux/Mac for years, is finally fixed for next time. The seed is planted when you delete the first stop in a route while the V is there, but the crash doesn't happen until a dwarf tries to use the minecart.