Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0005980Dwarf FortressDwarf Mode -- Jobs, Haulingpublic2012-06-02 20:302014-04-06 11:12
cooky173 
Dwarfu 
normalcrashalways
acknowledgedopen 
Windows 7
0.34.10 
 
0005980: Crash when changing minecart stops around
I extended a portion of track for route 2. In the hauling menu I then removed stop 1 from route 2 (the old end of the line), and created a stop (stop 3) at the new track end. This can be seen in the uploaded game. The minecart is currently sitting at what used to be stop 1.

The crash can be prevented by removing and then reassigning the minecart for route 2.

http://dffd.wimbli.com/file.php?id=6413 [^]
Open the save and wait a couple of seconds http://dffd.wimbli.com/file.php?id=6413 [^]
I believe when playing around with getting the crash to stop, that I was able to get everything working correctly (using the method above), and then remove stop 3, and put a new stop in a section of track to the east of stop 3 without issue. Not 100% on this though.
crash, Fortress Mode, minecart, reproducable, Save Included
related to 0005903resolved Toady One Crash on promoting hauling stop past route title, past top entry 
has duplicate 0006210resolved Dwarfu Crash when deleting hauling route stop 
has duplicate 0006375resolved Footkerchief Crash when removing a stop from a route 
Issue History
2012-06-02 20:30cooky173New Issue
2012-06-02 20:31cooky173Tag Attached: crash
2012-06-02 20:31cooky173Tag Attached: minecart
2012-06-02 20:31cooky173Tag Attached: reproducable
2012-06-02 20:31cooky173Tag Attached: Fortress Mode
2012-06-03 21:09FootkerchiefNote Added: 0022834
2012-06-03 21:09FootkerchiefRelationship addedrelated to 0005903
2012-06-03 21:10FootkerchiefTag Attached: AWAITING UPDATE
2012-06-03 21:10FootkerchiefTag Detached: AWAITING UPDATE
2012-06-03 21:28cooky173Note Added: 0022837
2012-06-04 12:52FootkerchiefNote Added: 0022848
2012-06-13 17:10Cobbler89Note Added: 0022985
2012-07-21 05:33mostevilNote Added: 0023304
2012-07-25 05:54TelarinNote Added: 0023354
2012-07-25 05:54TelarinIssue Monitored: Telarin
2012-09-30 22:55DwarfuRelationship addedhas duplicate 0006210
2012-09-30 22:55DwarfuIssue Monitored: balin
2013-09-24 10:34FootkerchiefRelationship addedhas duplicate 0006375
2013-09-24 10:35FootkerchiefNote Added: 0024138
2013-09-24 12:50FootkerchiefTag Attached: Save Included
2013-10-06 11:48smjjamesNote Added: 0024159
2013-10-06 11:55smjjamesNote Edited: 0024159bug_revision_view_page.php?bugnote_id=0024159#r8984
2014-04-06 11:12DwarfuAssigned To => Dwarfu
2014-04-06 11:12DwarfuStatusnew => acknowledged

Notes
(0022834)
Footkerchief   
2012-06-03 21:09   
Is this covered by 0005903?
(0022837)
cooky173   
2012-06-03 21:28   
It could be related but i don't think its the same. Unless deleting stop 1 is being treated the same as promoting stop 2. I believe my crash occurs when someone tries to do something with the cart...not instantly. I got the impression the other crash was instantaneous?
(0022848)
Footkerchief   
2012-06-04 12:52   
I think you're correct.
(0022985)
Cobbler89   
2012-06-13 17:10   
Sounds kinda similar but nonetheless unrelated to me, as the original reporter of 0005903. Mine was indeed instantaneous. In this case it sounds as though the minecart still has a pointer to a stop object that has been deallocated, or something of that nature. Whereas I think my crash occurs because the actual position of the stop is taken for how many times it may be promoted when the display position in the menu at the time happens to be higher up and thus possible to promote out of the display menu, which probably crashes it because it gets moved past the first entry in the display menu's list/array/whatever.

I could be wrong about either of those, though.
(0023304)
mostevil   
2012-07-21 05:33   
I've also see thism removing a stop cause a crash when the next event on the route triggers. Also I just had a kea steal one of my lumber minecarts causing a crash straight after.
(0023354)
Telarin   
2012-07-25 05:54   
I have gotten similar behavior (crashing) after deconstructing a track stop that was still listed in a route. I'm thinking Cobbler's hypothesis of the route holding a pointer to a now deallocated stop could very well be what is going on.
(0024138)
Footkerchief   
2013-09-24 10:35   
0006375:0024137: http://dffd.wimbli.com/file.php?id=8002 [^]
(0024159)
smjjames   
2013-10-06 11:48   
(edited on: 2013-10-06 11:55)
I'm getting a crash that I thought was because I was assigning a cart to a route without a stop, but after testing with a fresh embark, it looks like it's this one, or at least that crash is closely related.

With the main save, I removed a route and stop a while ago, so I don't even remember which cart was on that route. I tried rearranging the carts around to different stops, didn't work, but when I made a stop on the route, it was fine, even rearranging carts was fine.

I was going to make a new bug report, but it seems closely related to this one because on the quick embark, I did put a cart on a route without a stop and it didn't crash, tried switching the two carts I had made, didn't crash either.