CleverRaven / Cataclysm-DDA

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

Game crashes when tree chopping action finishes #66497

Open J3llyBoi opened 1 year ago

J3llyBoi commented 1 year ago

Describe the bug

The game crashes when a tree is chopped down by the player

Attach save file

Luce-trimmed.tar.gz

Steps to reproduce

1.Get a tool with tree cutting quality 2.activate on tree 3.game will crash when the tree is chopped down

Expected behavior

I expected the game to not crash because no other player action crashes the game

Screenshots

No response

Versions and configuration

Additional context

crash.log debug.log

RenechCDDA commented 1 year ago

Can't reproduce on

SurFlurer commented 1 year ago

Cannot reproduce either.

NickEmbased commented 8 months ago

Got this bug today, game crashes in my world after chopping a tree

RenechCDDA commented 8 months ago

Got this bug today, game crashes in my world after chopping a tree

Please provide your save and crash log.

Anghenfil-y-Loegr commented 8 months ago

Screenshot 2023-11-13 143558 crash.log

I've had the crash a few times. All for the same thing. Please see the crash log and screenshot of error before the game terminates.

ZeroInternalReflection commented 6 months ago

I've gotten the crash in j3llyBoi's original save using an up-to-date experimental Curses build, but, it's intermittent. I got it the first time I tried, then it worked the next ten times, then I got it again, then nothing in the 20+ times I've tried since.

crash.log

I have a subtly-different crash log, but it still points to somewhere in the stats_tracker system (updating the number of trees the player has chopped down, presumably), but I think there's another timing/RNG factor that's required to cause the crash.

The theory in my mind is that something else happening in the world causes one of the stat_watchers to be deleted/moved/whatever just as the tree being chopped down goes for an update. However, I've had no luck actually tracing things through the stats_tracker system, so that might be nonsense.

I-am-Erk commented 3 months ago

Has anyone had any luck tracking this down? I'm inclined to postpone it as a blocker unless we can pin down the source.

katemonster33 commented 2 months ago

@I-am-Erk i tried reproducing this one on Linux, on a tiled and curses build. Could not reproduce it with the original save with either.