Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0008770Dwarf FortressDwarf Mode -- Jobs, Sleepingpublic2015-01-26 22:392015-01-28 15:13
Vendetta 
Footkerchief 
normalminorhave not tried
assignedopen 
Windows7
0.40.23 
 
0008770: Sleeping militia commander will not wake up
My militia commander fell asleep on the dining room floor and will not wake up, eventually dying due to thirst/hunger. I've tried changing his thirst, hunger, and sleep counters with DFHack's "gui/gm-editor" and only succeeded in keeping him alive and asleep. DFHack's "siren" command doesn't wake him, nor does making noise next to him. I've tried ordering his squad around, disbanding the squad, nothing worked.

I keep resetting his hunger/thirst with DFHack to see if he will wake up on his own, but it doesn't seem to be happening - he's been asleep for almost three seasons now with no change.

He's never had any injuries. The fort was out of booze for a little while but nothing major. I have no idea what caused the sleeping beauty problem.
Unknown; haven't yet pinpointed in my backup saves when the dwarf fell asleep.
I've uploaded a save here: http://dffd.bay12games.com/file.php?id=10504. [^] It is right when I first noticed the issue (a short time before the dwarf, "SilverTotem", dies of thirst, incidentally).
No tags attached.
related to 0002528new  Sleeping dwarf begins drowning, doesn't wake up 
Issue History
2015-01-26 22:39VendettaNew Issue
2015-01-27 01:35VendettaNote Added: 0032087
2015-01-28 01:02VendettaNote Added: 0032092
2015-01-28 07:16FootkerchiefNote Added: 0032094
2015-01-28 07:16FootkerchiefAssigned To => Footkerchief
2015-01-28 07:16FootkerchiefStatusnew => needs feedback
2015-01-28 07:17FootkerchiefRelationship addedrelated to 0002528
2015-01-28 15:13VendettaNote Added: 0032097
2015-01-28 15:13VendettaStatusneeds feedback => assigned
2015-01-28 15:14VendettaNote Edited: 0032097bug_revision_view_page.php?bugnote_id=0032097#r12851
2018-04-13 12:41HuntthetrollIssue Monitored: Huntthetroll

Notes
(0032087)
Vendetta   
2015-01-27 01:35   
Did some further testing: the problem seems to be that this dwarf's sleepiness counter was counting up, not down, as he slept. I let it run to over 130k just to see if it would keep going; showed no sign of stopping. My uneducated guess is that he was effectively in a coma since he was getting sleepier with every passing moment that he slept. Someone on the forums suggested dumping 7/7 water on him with DFHack, which woke him up. He went to bed right after, but now the counter is counting down, presumably like it is supposed to.
(0032092)
Vendetta   
2015-01-28 01:02   
The problem seems to be that a dwarf without an assigned bed who tries to sleep will become stuck, having their job listed as "Sleep" but without being "Unconscious". They will eventually all starve or dehydrate to death. I was able to reproduce this issue after a new migrant wave; all dwarves that did not have beds assigned that went to go to sleep became stuck as well (I didn't test dormitories, however, so I'm not sure if that counts). Assigning them a bed, then using DFHack to first reset their counters and then dump water on them works to unstick the dwarf.

Another user reported what looks like the same issue; discussion here:
http://www.bay12forums.com/smf/index.php?topic=147954.0 [^]
(0032094)
Footkerchief   
2015-01-28 07:16   
Had DFHack altered the game prior to this happening?
(0032097)
Vendetta   
2015-01-28 15:13   
(edited on: 2015-01-28 15:14)
I had been using DFHack (selectively) the entire time with this fort. I used fastdwarf, autodump, workflow, liquids, tiletypes, reveal, rename, and the grow/get plants scripts. I tend to use these with all my forts, though.