CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.65k stars 4.18k forks source link

Vehicle turret related crashes #14661

Closed vulkans22 closed 8 years ago

vulkans22 commented 8 years ago

There's an intermittent crash to desktop occurring when automated turrets attack hostiles, tested on official 0.C-4111 Windows/Tiles. I can't quite peg down the root cause.

I've included a nighttime save, there's a one tile vehicle containing a live laser turret, powered lights and lots of zombies around. Skip enough turns and the game should crash eventually.

save.zip

Coolthulhu commented 8 years ago

OK, replicated the crash. Seems to be related to the "high accuracy crash" which was reported on forums. It seems that a ranged attack executed at very high accuracy may cause a "Floating point exception".

I'm recompiling the game in debug setting because I can't pinpoint what causes the crash just from the code alone.