View Issue Details

IDProjectCategoryView StatusLast Update
0000536Dwarf FortressDwarf Mode -- Jobs, Militarypublic2010-06-15 09:09
Reporterneomaster321365 Assigned ToToady One  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
OSWindows 7 
Product Version0.31.01 
Fixed in Version0.31.07 
Summary0000536: Crash after unpausing - militia commander's squad info doesn't point back at squad
DescriptionThe short version is I have a save where, assuming the save is loaded paused, you can move around the area and go up and down levels and go to the different menu screens like the military screen and the squad screen and exit them just fine, but if I just unpause and wait a few seconds, it crashes. Every single time. Tried it like seven times. I think it's curious that while going to the military and squad screens, seemingly very popular for crashes, isn't doing a thing, simply allowing the game to simulate five seconds does make it crash. I realized just now that we can't upload saves, so contact me by email if you want the save. Otherwise just ignore this, Toady. I can't fathom a guess why it's crashing. I just had an immigration wave, but every single one of them are already done blinking when the save is loaded. General dwarven activities are going on, and it just extremely reliably crashes five or so seconds after unpausing.
Steps To ReproduceContact me at collin.reeser@gmail.com for the save, load it, and unpause. Wait five seconds. Crash.
Additional InformationI didn't know we couldn't upload stuff, so contact me at collin.reeser@gmail.com to figure out a way to send you the save if you actually end up wanting it. I'm sure whatever is causing this crash is something not very obvious in my case, obvious in others, and will get fixed without you ever having to even consider taking a look at my save, but it's there for your request regardless. Have an excellent day and happy coding!
TagsNo tags attached.

Relationships

related to 0000378 resolvedToady One Crash when selecting specific squad in military screen (daggers) 
related to 0001644 resolveduser6 Unassigning squad leader in nobles screen causes hard crash when entering military screen 
related to 0001647 resolveduser6 Attempting to open Military Screen Causes Crash 
related to 0000319 resolvedToady One Militia commander/captain positions are assignable on the nobles screen, but silently change back 
parent of 0000910 resolvedToady One Reproducible crash with save, possibly caused by dwarf who can't be removed from military and gets a mood 
parent of 0000452 resolvedToady One Training military dwarf causes crash - Includes Save Game 
parent of 0000204 resolvedToady One Reproducible crash - military related 
parent of 0001593 resolvedToady One Sleeping Militia Commander causes crash - SAVE INCLUDED 
parent of 0001784 resolvedToady One Militia commander causes crash 
parent of 0001335 resolvedToady One Military/squad related crash (with save) 
parent of 0000384 resolvedToady One Militia commander causes crash 
parent of 0001419 resolveduser6 Crash upon killing salt titan 
parent of 0000233 resolvedToady One Crash with general "encountered problem" error involving military units. 
related to 0002298 resolvedToady One crash after trying to access squad members from a non assigne squad 
related to 0001255 resolvedToady One Crash, caused either by human siege or battling forgotten beast 
related to 0001421 resolveduser6 Military related crash - barracks destruction also possible 
related to 0006452 resolveduser6 Save crashes unless military is disbanded 

Activities

Logical2u

2010-04-05 16:22

manager   ~0001257

Upload things here - http://dffd.wimbli.com/index.php
Can you check the gamelog and see what sort of stuff shows up? I'm personally curious of it's related to 0000495.
How much RAM does your PC have?

neomaster321365

2010-04-05 19:14

reporter   ~0001296

My computer has 4GB of RAM. This fort has been going for a few hours so I don't think it has to do with any early-game errors like what happened in 0000495. In the gamelog, **Loading Fortress** is the very last entry. Nothing happens between loading the save, unpausing, and waiting five seconds for the crash. I'm waiting on my activation email for the DFFD, so I'll upload my save as soon as I can log in to upload.

neomaster321365

2010-04-05 19:29

reporter   ~0001302

The save is available for download at the following link: http://dffd.wimbli.com/file.php?id=2006

Thank you Logical2u for the link to the DFFD.

Logical2u

2010-04-05 20:11

manager   ~0001315

Crash confirmed in Windows 7 x64.

By any chance is that what you're using as well?

The crash specifically occurs a few frames after the two carpenters cross paths near the trade depot.

I used reveal to try and see if there was some invisible event causing the crash but nothing jumped out at me.

neomaster321365

2010-04-07 00:29

reporter   ~0001699

I am indeed using Windows 7 x64. I'm just hoping that this is related to some other crash and it just isn't obvious in this case. Otherwise this will be a pretty tricky one to pin down.

SirPenguin

2010-04-07 10:17

reporter   ~0001778

Confirmed on Windows 7, x86, 2 gigs of RAM. The fact it doesn't happen immediately is cool. I think I'll play around with disabling certain things until I figure it out.

SirPenguin

2010-04-07 10:19

reporter   ~0001781

Last edited: 2010-04-07 11:14

Alright, I fixed it. Disabling both squads did the trick. Crash is related to the military. Now to narrow it down. I'll edit in my findings to this comment.

1: Alright, it's the first squad, the Blockade Flags who are the troublemakers
2: Well this is interesting. Disabling the schedules for all the squads also stops it from crashing. However, the moment you hit "(m)ilitary" again, the game crashes every time. Tested it out 3 times
3: Canceling their orders via the "(s)quad" screens produces identical results as (2)
4: Giving them a different order (i.e., "Move") replicates crash from (2) as well
5: Removing every squad member but the commander still causes the initial crash
6: Removing equipment from every squad member still causes the initial crash
7: Deleting/Disbanding the squad removes the crash AND allows you to go back to the Military screen
8: Changing the squad leader (after kicking everyone else out) removes the crash AND allows you to go back to the Military screen
9: Observation: The squad leader that causes the crash is "Resting" with a broken foot
10: Removing the arsenal dwarf, removing all equipment from the dwarves, and telling the squad to be inactive removes both crashes as well
11: First conclusion: arsenal dwarf is attempting to assign equipment to a resting dwarf causing it to crash?
12: Removing just the arsenal dwarf is not enough. Still crashes.
13: Removing the arsenal dwarf AND the equipment of the commander still results in the crash
14: Removing the A. dwarf, removing equipment from commander, and telling the squad to be inactive fixes both crashes
15: Removing the A. dwarf and telling the squad to be inactive fixes both problems
16: TOTALLY DIFFERENT DIRECTION: removing a soldier who is currently "picking up equipment" and telling the squad to be inactive fixes both crashes
17: Simply removing the dwarf is not enough to stop the initial crash
18: Observation: Following the dwarf who is picking up the equipment shows he is repeatedly trying to pick up a giant spider hood despite already wearing a hood. Game crashes after the 3rd attempt to put the hat on
19: Turning the squad inactive and removing the A. dwarf AND waiting for the dwarf trying to pick up the equipment to "fix himself" fixes crashes


Final conclusion: something with the equipment is fucked up. His refusal to put it on is probably causing the initial crash, and when the initial crash is fixed the crash on the military screen is probably because the game expects him to be wearing the hat but isn't.

Logical2u

2010-04-07 11:00

manager   ~0001798

You are a better and more patient man than I, SirPenguin.

Confirmed that disabling the Blockaded Flags stops the crash, at least temporarily.

Confirmed that setting all their statuses to "no orders" also stops the crash. But it didn't crash for me after hitting military again - the second time, though, it did.

The new crash is slightly different from the old one - it looks more like the crash from 0000629 then it did originally now, but removing the military doesn't stop 0000629 's crash.

SirPenguin

2010-04-07 11:15

reporter   ~0001805

Submitted my final conclusion and findings. Not much else I can do without being able to tinker with code.

neomaster321365

2010-04-07 12:10

reporter   ~0001818

Wow, SirPenguin. You just... You just painstakingly and methodically destroyed the mystery around that bug. My regards, and my thanks for "fixing" my save. Is there anything I need to do to alter this ticket or is it still a valid standalone report?

SirPenguin

2010-04-07 12:14

reporter   ~0001820

Haha, as a programmer I really enjoy bugtesting and Quality Assurance. I figured narrowing it down helps you and Toady.

DoctorZuber

2010-04-07 12:18

reporter   ~0001822

um... wow... That was some quality work SirPenguin. Good Job!

DoctorZuber

2010-04-07 12:23

reporter   ~0001823

"2: Well this is interesting. Disabling the schedules for all the squads also stops it from crashing. However, the moment you hit "(m)ilitary" again, the game crashes every time. Tested it out 3 times"

This may be a HUGE clue as to what is going on in another bug report. Let me track that down real quick.

refer to 0000378 and 0000444

neomaster321365

2010-04-07 12:27

reporter   ~0001825

Well SirPenguin, I too am a programmer, albeit as a student and as a hobby. I just much prefer actually having code to look at when I'm hunting for bugs. :P

Toady One

2010-06-13 01:58

administrator   ~0008258

Somehow the militia commander's squad information got changed so that it no longer points back to the squad, and this messed it up all sorts of ways. It loads in that state, so I'm not sure what caused it. Possibly related to 0001644.

user6

2010-06-13 12:54

  ~0008310

Reminder sent to: Toady One

Hey Toady -- there were apparently a lot of crashes that could be solved by removing the militia commander, so I've brought (hopefully) all those reports together under this one. I'm not sure any of them will be useful for figuring out how the squad info got corrupted, though.

user6

2010-06-13 12:57

  ~0008311

Reminder sent to: Toady One

I also added a relationship to 0000319, which seems potentially able to cause problems like this.

Toady One

2010-06-15 03:04

administrator   ~0008480

The bad interplay between 'n' and 'm' is definitely suspect, but I couldn't get it to reproduce the squad info disconnect precisely. I'm going to continue working through those errors, and if the error logs related to broken squad info clear up, we can call it good. The crashes should be patched up in either case.

Toady One

2010-06-15 04:38

administrator   ~0008492

I can get the squad info disconnect if I have a guy in two militia leadership positions with squads created (captain twice or commander/captain) and then remove the dwarf from the second squad. It is a bug (like 0000266) to have a dwarf leading two squads at once -- if you ever had a dwarf leading two squads at once (even as a temporary accident on the mil screen without going back to the main mode), it could create this crash. Does that sound familiar to anybody? Or have squad disconnect crashes happened in situations with only one squad?

Toady One

2010-06-15 06:25

administrator   ~0008499

Hopefully that'll be it. It's all I can find, and it is fixed up now for 0.31.07. Feel free to reopen this if we continue to have disconnects in new forts (there will be a log message for the repair on old forts).

Issue History

Date Modified Username Field Change
2010-04-05 16:13 neomaster321365 New Issue
2010-04-05 16:22 Logical2u Note Added: 0001257
2010-04-05 19:14 neomaster321365 Note Added: 0001296
2010-04-05 19:29 neomaster321365 Note Added: 0001302
2010-04-05 20:11 Logical2u Note Added: 0001315
2010-04-07 00:29 neomaster321365 Note Added: 0001699
2010-04-07 10:17 SirPenguin Note Added: 0001778
2010-04-07 10:19 SirPenguin Note Added: 0001781
2010-04-07 10:23 SirPenguin Note Edited: 0001781
2010-04-07 10:26 SirPenguin Note Edited: 0001781
2010-04-07 10:38 SirPenguin Note Edited: 0001781
2010-04-07 10:47 SirPenguin Note Edited: 0001781
2010-04-07 11:00 Logical2u Note Added: 0001798
2010-04-07 11:14 SirPenguin Note Edited: 0001781
2010-04-07 11:15 SirPenguin Note Added: 0001805
2010-04-07 12:10 neomaster321365 Note Added: 0001818
2010-04-07 12:14 SirPenguin Note Added: 0001820
2010-04-07 12:18 DoctorZuber Note Added: 0001822
2010-04-07 12:23 DoctorZuber Note Added: 0001823
2010-04-07 12:27 neomaster321365 Note Added: 0001825
2010-04-10 11:17 user6 Relationship added related to 0000910
2010-05-01 05:19 Logical2u Category General => Dwarf Mode -- Jobs, Military
2010-05-01 05:19 Logical2u Summary Crash after unpausing => Crash after unpausing - knife using military
2010-05-01 05:19 Logical2u Relationship added related to 0000378
2010-06-13 01:58 Toady One Note Added: 0008258
2010-06-13 01:58 Toady One Assigned To => Toady One
2010-06-13 01:58 Toady One Status new => acknowledged
2010-06-13 01:59 Toady One Relationship added related to 0001644
2010-06-13 10:08 user6 Relationship replaced parent of 0001644
2010-06-13 10:08 user6 Relationship replaced parent of 0000910
2010-06-13 10:08 user6 Relationship added parent of 0001647
2010-06-13 10:08 user6 Relationship added parent of 0002298
2010-06-13 10:10 user6 Relationship added parent of 0000452
2010-06-13 10:10 user6 Summary Crash after unpausing - knife using military => Crash after unpausing - militia commander dissociated from squad
2010-06-13 10:44 Logical2u Relationship added related to 0000204
2010-06-13 12:44 user6 Relationship added parent of 0001593
2010-06-13 12:45 user6 Relationship added parent of 0001784
2010-06-13 12:46 user6 Relationship added parent of 0001335
2010-06-13 12:46 user6 Relationship added parent of 0000384
2010-06-13 12:48 user6 Relationship added parent of 0001419
2010-06-13 12:48 user6 Relationship added parent of 0000233
2010-06-13 12:49 user6 Relationship added parent of 0001255
2010-06-13 12:50 user6 Relationship replaced parent of 0000204
2010-06-13 12:50 user6 Relationship added parent of 0001421
2010-06-13 12:50 user6 Sticky Issue No => Yes
2010-06-13 12:54 user6 Note Added: 0008310
2010-06-13 12:55 user6 Summary Crash after unpausing - militia commander dissociated from squad => Crash after unpausing - militia commander's squad info doesn't point back at squad
2010-06-13 12:56 user6 Relationship added related to 0000319
2010-06-13 12:57 user6 Note Added: 0008311
2010-06-15 03:04 Toady One Note Added: 0008480
2010-06-15 03:26 Toady One Relationship replaced related to 0002298
2010-06-15 03:59 Toady One Relationship replaced related to 0001421
2010-06-15 04:24 Toady One Relationship replaced related to 0001255
2010-06-15 04:38 Toady One Note Added: 0008492
2010-06-15 06:24 Toady One Relationship replaced related to 0001647
2010-06-15 06:24 Toady One Relationship replaced related to 0001644
2010-06-15 06:25 Toady One Note Added: 0008499
2010-06-15 06:25 Toady One Status acknowledged => resolved
2010-06-15 06:25 Toady One Fixed in Version => 0.31.07
2010-06-15 06:25 Toady One Resolution open => fixed
2010-06-15 09:09 user6 Sticky Issue Yes => No
2014-03-04 07:24 user6 Relationship added related to 0006452