Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0006545Dwarf FortressCreaturespublic2014-07-07 20:222014-08-11 06:19
slwstctt 
Toady One 
normalminorrandom
resolvedfixed 
WindowsWindows 7 x64
0.40.01 
0.40.05 
0006545: Flying creatures stop flying, fall to the ground, and explode
While on an embark containing flying creatures, I find that they sometimes spontaneously stop flying, plummeting to the ground and dying. In at least one of these instances, there were no other creatures on the screen, so it was not a result of combat or anything similar.

When this happens, I sometimes get job cancellations from nearby dwarves on the surface that say "Urist McDwarf has cancelled job X: Horrified"

I would be too, Urist.
Start dwarf mode in an area containing flying creatures and wait. Because this only happens randomly, reproduction is difficult. That said, I am not the only person to report this, since it was also mentioned here: http://www.bay12games.com/dwarves/mantisbt/view.php?id=6534#c24895 [^] .
No tags attached.
related to 0005421new  Adventurer flight empairment 
related to 0006737confirmed Toady One Flying animals (e.g. birds) stuck in mid air (prevents invasions?) 
has duplicate 0006626resolved Footkerchief Flying creatures keep exploding into pieces and dying: Are they crashing into trees? 
has duplicate 0006628resolved Footkerchief Birds (and other fliers) fall from the sky under trees 
has duplicate 0007286resolved Footkerchief Buzzards sometimes suicidally dive-bomb into the ground, instantly killing themselves as a result; corpses not butchurable 
has duplicate 0007449resolved Footkerchief Dwarf Mode: Ravens smash into cliffs 
Issue History
2014-07-07 20:22slwstcttNew Issue
2014-07-07 21:56AseaHeruNote Added: 0024926
2014-07-08 05:52slwstcttNote Added: 0025007
2014-07-08 06:51FootkerchiefRelationship addedhas duplicate 0006626
2014-07-08 06:52FootkerchiefSummarySuicidal flying creatures (Flying creatures stop flying at random?) => Flying creatures stop flying, fall to the ground, and explode
2014-07-08 07:07FootkerchiefRelationship addedhas duplicate 0006628
2014-07-08 07:07FootkerchiefSummaryFlying creatures stop flying, fall to the ground, and explode => Flying creatures crash into trees, stop flying, fall to the ground, and explode
2014-07-10 17:58FirehoundNote Added: 0025636
2014-07-12 11:25DwarfuRelationship addedrelated to 0005421
2014-07-14 13:17FootkerchiefRelationship addedhas duplicate 0007286
2014-07-17 11:27musicmastermshNote Added: 0026768
2014-07-18 07:23FootkerchiefRelationship addedhas duplicate 0007449
2014-07-23 22:17windy_skunkNote Added: 0027383
2014-07-23 22:26FootkerchiefSummaryFlying creatures crash into trees, stop flying, fall to the ground, and explode => Flying creatures stop flying, fall to the ground, and explode
2014-07-24 00:14TzalizkanNote Added: 0027388
2014-07-24 11:56Toady OneNote Added: 0027438
2014-07-24 11:57Toady OneNote Edited: 0027438bug_revision_view_page.php?bugnote_id=0027438#r10296
2014-07-24 12:02Toady OneNote Edited: 0027438bug_revision_view_page.php?bugnote_id=0027438#r10297
2014-07-24 12:06Toady OneNote Edited: 0027438bug_revision_view_page.php?bugnote_id=0027438#r10298
2014-07-26 15:22FootkerchiefRelationship addedrelated to 0006737
2014-07-26 16:35FootkerchiefAssigned To => Footkerchief
2014-07-26 16:35FootkerchiefStatusnew => needs feedback
2014-07-26 18:06TalvienoNote Added: 0027650
2014-07-26 18:29RoomghostNote Added: 0027653
2014-07-26 18:30RoomghostNote Deleted: 0027653
2014-07-26 18:35thewonderidiotNote Added: 0027654
2014-07-26 18:38Toady OneNote Added: 0027655
2014-07-26 18:42thewonderidiotNote Edited: 0027654bug_revision_view_page.php?bugnote_id=0027654#r10446
2014-07-26 18:46TalvienoNote Added: 0027656
2014-07-26 18:49TalvienoNote Edited: 0027656bug_revision_view_page.php?bugnote_id=0027656#r10448
2014-07-26 18:54TalvienoNote Edited: 0027656bug_revision_view_page.php?bugnote_id=0027656#r10449
2014-07-26 19:35thewonderidiotNote Added: 0027660
2014-07-26 19:41thewonderidiotNote Edited: 0027660bug_revision_view_page.php?bugnote_id=0027660#r10454
2014-07-26 20:19Toady OneNote Added: 0027661
2014-07-26 20:33thewonderidiotNote Added: 0027662
2014-07-26 20:36thewonderidiotNote Edited: 0027662bug_revision_view_page.php?bugnote_id=0027662#r10456
2014-07-26 20:47Toady OneNote Added: 0027664
2014-07-26 20:54TalvienoNote Added: 0027665
2014-07-26 21:02thewonderidiotNote Added: 0027666
2014-07-26 21:05Toady OneNote Added: 0027667
2014-07-26 21:09TalvienoNote Added: 0027668
2014-07-26 21:11TalvienoNote Edited: 0027668bug_revision_view_page.php?bugnote_id=0027668#r10458
2014-07-26 21:24thewonderidiotNote Added: 0027669
2014-07-28 19:28thewonderidiotNote Added: 0027836
2014-07-28 19:50TalvienoNote Added: 0027840
2014-07-28 19:51TalvienoNote Edited: 0027840bug_revision_view_page.php?bugnote_id=0027840#r10518
2014-07-28 20:11lethosorNote Added: 0027843
2014-07-28 20:12lethosorAssigned ToFootkerchief => lethosor
2014-07-28 20:12lethosorStatusneeds feedback => acknowledged
2014-07-28 20:13TalvienoNote Added: 0027844
2014-08-10 19:004maskwolfNote Added: 0028769
2014-08-10 19:004maskwolfIssue Monitored: 4maskwolf
2014-08-10 19:26lethosorNote Added: 0028773
2014-08-10 19:26lethosorStatusacknowledged => resolved
2014-08-10 19:26lethosorFixed in Version => 0.40.05
2014-08-10 19:26lethosorResolutionopen => fixed
2014-08-10 19:26lethosorAssigned Tolethosor => Toady One
2014-08-11 06:194maskwolfIssue End Monitor: 4maskwolf

Notes
(0024926)
AseaHeru   
2014-07-07 21:56   
I have seen this occur to multiple kea. Havent seen the horrified bit yet though.
(0025007)
slwstctt   
2014-07-08 05:52   
Update: The horrified message may have been due to the fact that the flying creature falling was a Wren Man. Do dwarves become horrified from wrenmen?

Also, this may be related to multi-tile trees. All instances so far have been in close proximity to trees. (Would a creature crashing into a tree show up in the combat log?)
(0025636)
Firehound   
2014-07-10 17:58   
Not necessarily attached to trees. Had a mountain embark in 40.01 that had no native plantlife, and a raven exploded itself onto the ground, but some keas were able to land and steal things. About 6-7 died within a month, and then I saw no more go missing/dead. This isn't counting the few that landed but flew away(had a case where all my dwarves near my farms got horrified, but no obvious source in the same embark.)
(0026768)
musicmastermsh   
2014-07-17 11:27   
40.03 - just had a great horned owl crash and die in a treeless area.
(0027383)
windy_skunk   
2014-07-23 22:17   
While testing in the arena, I've noticed that it seems to be related to flying creatures being overwhelmed by emotion.
(0027388)
Tzalizkan   
2014-07-24 00:14   
@windy_skunk That's even better.
(0027438)
Toady One   
2014-07-24 11:56   
(edited on: 2014-07-24 12:06)
I know this happens, due to the number of reports and since I've seen it myself, but I'm not able to reproduce it with strong emotions or with exhaustion. Those creatures "ground" in the air, but they don't fall. It has nothing to do with flying into things because there's no such notion in the game (flight does not use projectile velocity at this point because of the associated pathfinding difficulties with momentum).


off-chance: Any webs on the maps in question? Especially from larger critters? If there are heavy webs up in the air near the multi-tile trees now, they could tangle up a flier and cause it to fall. I guess it wasn't always linked to trees, so that might not be it, but it's the only possibility I have in the absence of combat.

(0027650)
Talvieno   
2014-07-26 18:06   
No webs in the trees, Toady, sorry. :\ Not in my maps, at least. Still running tests to try to figure everything out.
(0027654)
thewonderidiot   
2014-07-26 18:35   
(edited on: 2014-07-26 18:42)
Just had a raven explode on a map with no trees, and barely any plants (tundra/mountain). There was a ball of four ravens stuck way up in the sky, with none of them moving at all, for over half a season. It would seem that one of them managed to escape, but promptly hit the ground and exploded about 10 tiles away. Maybe them getting stuck is the necessary precondition to them falling?

e: Here's the save: http://dffd.wimbli.com/file.php?id=9167 [^]

(0027655)
Toady One   
2014-07-26 18:38   
Yeah, I just had one die without webs... maybe it is the lash-out code when animals are stacked for too long, but then the question is why there isn't a combat report before the impact...
(0027656)
Talvieno   
2014-07-26 18:46   
(edited on: 2014-07-26 18:54)
This is probably all wrong, but I have an idea. Perhaps the game is somehow having them fall asleep - modded fliers in 34.11 were . I wouldn't be sure why, but it just seems possible, given that they're falling. It would be a pain to test, though. You'd have to wait for them to pass out and fall asleep, and that would take a while, even with a large number of creatures in the arena.

I really do feel like it has something to do with getting stuck, though. Possibly related to how the sky is "broken" in places.


Edit: Perhaps the best way to test would be to dump a large number of creatures at roof height in arena mode in debug mode, with a custom debug trigger that pauses the game when a creature hits a certain z-level (e.g. if creature.z = 5 then pause, basically (looping through the list, if doable))... and then you just wait. When the game pauses, you see if the creature is stunned, dizzy, asleep, etc.

(0027660)
thewonderidiot   
2014-07-26 19:35   
(edited on: 2014-07-26 19:41)
Lash-out could be. I think I may have found something else accidentally, though:

I've been watching this ravenball for a couple of seasons. The one on the upper z-level flew down one, so for quite a while I've had two ravens occupying the same tile (with, of course, one prone in the air, heh).

That was pretty much the status quo for a long time. Then, traders entered the map very close to right below the ravens, and the ball split. Two of them started flying around normally, and one fell out of the sky and exploded.

I was able to reproduce this once by assigning a dwarf to a squad and stationing him right below the ball, but it's not totally consistent. Still messing around with it...

e: Just got it to reproduce a second time, same thing as above -- stationing a military dwarf just below the group of stuck ravens. It seems that they're getting spooked, and maybe if they're frightened enough they can fall from the sky? (although you said that strong emotions weren't causing it...)

(0027661)
Toady One   
2014-07-26 20:19   
Was there anything like a tree or ramp around them before they fell? I've found one cause of this that reproduced and is fixed: jumping. When the birds are flying over trees or ramps/cliffs and are near their destination, they are deciding to push off and jump, and when there is a flock, there can be mid-air collisions that nullify their velocities, which makes them drop like a rock, because it isn't anticipating a flier being a projectile. The only case it wouldn't explain is treeless flat maps, or birds in the air away from any feature.

I'll try to scare a flock of ravens on a flat tundra map and see if something happens.
(0027662)
thewonderidiot   
2014-07-26 20:33   
(edited on: 2014-07-26 20:36)
Hmmm... not sure about the ramp, I'll start messing with it.

I've spent the last 45 minutes or so attempting to create a prepared save that has a *bit* of repeatability. Here it is: http://dffd.wimbli.com/file.php?id=9168 [^]

There's a dwarf on his way to be stationed beneath the birdball. If you follow the first raven on the units list, it explodes itself about 33% of the time.

One time, in particular, was interesting... it seemed to gib itself against the top of the map, and all of its guts rained down the approximately 10 z-levels to the ground from where it exploded.

All of the others have more or less just been running into the mountain, which could possibly be explained by the ramp thing.

(0027664)
Toady One   
2014-07-26 20:47   
Hopefully the last piece of the puzzle: AI birds didn't have any qualms about jumping when standing in the middle of the air (it isn't legal for flying adventurers). So they were possible springing out of the ball mid-air and crashing mid-air. That said, if you've seen one fall while other birds aren't very close, it's probably not the jumping. I herded around 20 ravens with one soldier without a dropping bird for a while, anyway.

I'll check the save and see what happens.
(0027665)
Talvieno   
2014-07-26 20:54   
I've had lone great horned owls and eagles fall to the ground, so it might not be all of it.
(0027666)
thewonderidiot   
2014-07-26 21:02   
Talvieno -- was there anything else on the map? Other kinds of birds or nearby creatures or something that they may have hit?

Toady -- I've been repeatedly spreading my flock in slow-mo to try to catch one that explodes without hitting another bird. No luck yet (haven't directly seen one hit another bird though). Success on the save might be a little more like 20% or so... I have noticed that I don't always get reports from the explosions. There will occasionally just be one less raven listed on the unit screen, and if I scour the mountainsides sometimes I'll be able to find the remains.
(0027667)
Toady One   
2014-07-26 21:05   
I did 10 runs on the save with zero drops, so it seems like we've got progress anyway. I suppose we'll leave this open for 0.40.05 and see how high the drop rate still is, and for what kinds of critters and situations.
(0027668)
Talvieno   
2014-07-26 21:09   
(edited on: 2014-07-26 21:11)
thewonderidiot - No, no other aboveground creatures. I had a very large number of trees on the map, though. I think the only other thing nearby would've been vermin, and as far as I know, the game doesn't check for collisions with vermin.

edit: They do seem to explode more often with dwarves nearby, though - kind of like your experiment with the random gibbing against the top of the map, but it's usually at tree level.

(0027669)
thewonderidiot   
2014-07-26 21:24   
Zero out of ten is a good sign! I don't think I've had a streak that long without any drops at all yet. I'll repeat all of this tomorrow after 40.05 is out.
(0027836)
thewonderidiot   
2014-07-28 19:28   
I just did two dozen runs of the save on 40.05 and didn't get any drops, so it definitely looks like you've fixed the main issue there, at least. I'll keep an eye out for any unusual avian deaths in my regular play, but I suspect this one is likely resolved.
(0027840)
Talvieno   
2014-07-28 19:50   
(edited on: 2014-07-28 19:51)
Something else has cropped up in its place, though - frozen birds. I have keas frozen on my map that have been there for a few seasons, stuck while carrying a few masterwork gold goblets out of the fort. (but they got my artifact adamantine mug, lol) I suppose that's a topic for a different thread, though. I think this one is pretty much resolved, yeah.

(0027843)
lethosor   
2014-07-28 20:11   
Talvieno, that's a separate issue (0006737).
(0027844)
Talvieno   
2014-07-28 20:13   
Lol, thanks. I didn't see it until just today.
(0028769)
4maskwolf   
2014-08-10 19:00   
I haven't seen this in any of the recent versions, has anyone else experienced it?
(0028773)
lethosor   
2014-08-10 19:26   
I've seen some other reports of this being fixed as well, so I'll resolve this. If anyone can reproduce this, please send me a PM on the forums and I'll reopen this report. Thanks!