Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0000406Dwarf FortressDwarf Mode -- Roomspublic2010-04-04 09:252010-06-09 06:46
axus 
Toady One 
normalcrashalways
closedfixed 
x86WindowsServer 2003
0.31.01 
0.31.02 
0000406: Crash after removing barracks on weapon rack
I've got a guy who's stuck in "Individual Combat Training". He'll take breaks to eat. I removed Training from the barracks, and removed him from the squad, but that's all he's interested in doing.

So, I decide to remove the barracks. I free the room, as soon as I exit the menu, Dwarf Frotress crashes.
Load game, 'q', select weapon rack for barracks, 'f', exit the menu while guy is training.

I can get it to NOT crash if I free the room while he's taking a drink or eating.
training
related to 0001529resolved Footkerchief remove military cabinet and game crashed to desktop 
Issue History
2010-04-04 09:25axusNew Issue
2010-04-04 09:36DoctorZuberNote Added: 0000878
2010-04-04 09:38DoctorZuberNote Deleted: 0000878
2010-04-04 09:39DoctorZuberNote Added: 0000879
2010-04-04 10:10DoctorZuberNote Edited: 0000879bug_revision_view_page.php?bugnote_id=0000879#r272
2010-04-04 10:10axusNote Added: 0000882
2010-04-04 10:11DoctorZuberNote Edited: 0000879bug_revision_view_page.php?bugnote_id=0000879#r273
2010-04-04 10:12DoctorZuberNote Edited: 0000879bug_revision_view_page.php?bugnote_id=0000879#r274
2010-04-04 13:27FootkerchiefNote Added: 0000913
2010-04-04 13:58axusNote Added: 0000930
2010-04-04 17:22QloosTag Attached: training
2010-04-06 06:19axusNote Added: 0001411
2010-04-06 06:43DoctorZuberNote Added: 0001418
2010-04-07 10:32axusNote Added: 0001784
2010-04-07 14:29SirPenguinNote Added: 0001856
2010-04-08 06:38Toady OneNote Added: 0002008
2010-04-08 06:38Toady OneStatusnew => resolved
2010-04-08 06:38Toady OneFixed in Version => 0.31.02
2010-04-08 06:38Toady OneResolutionopen => fixed
2010-04-08 06:38Toady OneAssigned To => Toady One
2010-06-09 06:46Toady OneStatusresolved => closed
2011-04-01 07:58FootkerchiefRelationship addedrelated to 0001529

Notes
(0000879)
DoctorZuber   
2010-04-04 09:39   
(edited on: 2010-04-04 10:12)
so... it only happens if he's training, not drinking or eating. I'll have to see if I can verify that, seems simple enough.

I was unable to generate a crash, here is the process I tried using. If this process is wrong, or if you can offer a better process for generating this crash, please update.

1. (b-r) build weapon rack
2. (q) select weapon rack
3. (t) select one or more squads to train here
4. Wait, verify from (u) user menu and from observation that one or more dwarves is here doing an "individual combat drill"
5. (q) select weapon rack
6. (x) remove weapon rack

(0000882)
axus   
2010-04-04 10:10   
Hah, I saved it after I freed the zone and he was drinking. Now about 10-20 seconds after I reload, it crashes. If I re-enable the zone, it doesn't crash. So it's looking very likely that it's this guy crashing me when he tries to train ;p
(0000913)
Footkerchief   
2010-04-04 13:27   
axus, it sounds like it the crash may depend on the circumstances of that save. It might be helpful if you uploaded your save to the DFFD. http://dffd.wimbli.com/ [^]
(0000930)
axus   
2010-04-04 13:58   
I did a (f)ree room, not a (x) remove weapon rack. I'll have to try that ;p

Thanks for the link. I've made an upload, it is here:
http://dffd.wimbli.com/file.php?id=1983 [^]
(0001411)
axus   
2010-04-06 06:19   
Removing the weapon rack crashes ... creating a burrow away from the weapon rack and restricting him to it crashes... Maybe he knew something I didn't, because a large goblin invasion came and with his well-trained skills he was the only one who was not dead or dying at the end. I'm pretty sure that he activated with everyone else when I told his group to kill goblins. After the fight was over I cancelled the orders and he went right back to training.

I've noticed that usually the training job is yellow, same color as "No Job", but sometimes its a dark cyan color. Also, he has a tendency to hold on to alcohol barrels after he drinks, but if I mark them as forbidden eventually he'll drop them.
(0001418)
DoctorZuber   
2010-04-06 06:43   
for the alcohol hauling behavior refer to 0000300
(0001784)
axus   
2010-04-07 10:32   
Another note, not sure if it helps... The goblins finally killed that fort, all the extra training did help stave them off though :) I embarked a new one, and had similar problems with people doing individual combat training over and over. I heard that it might be tied to their personality? Anyways, I (f)reed the bed that the barracks was defined on, and then everyone stopped training, and there was no crash. They seem to be not very interested in civilian jobs, but they aren't stuck in a training loop either.
(0001856)
SirPenguin   
2010-04-07 14:29   
Well sir, just wanted to congratulate you on have the most dwarfiest fortress I've ever seen. Not 10 seconds into loading I notice a War Gorilla and a War Leopard fight a pair of horses in your entrance. There is blood everywhere. 3 of the military captains are dead. A baby claims he is too insane to clean himself.

Well done.

I've tried all sorts of combinations and different tricks to get this dwarf to stop caring about the weapon stand. Changing squads, removing him from squads, making another barracks for him, etc., all don't work. Comically, he'll allow the room to be resized and he'll obey its size. He was training on top of the damn weapon rack when I set the size to 1 tile.

Still gonna look at it, though.
(0002008)
Toady One   
2010-04-08 06:38   
Okay, this should be fixed for next time. Thanks for the save!