-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in game::activity_on_finish when crafting clean water interrupted by zombie #10970
Comments
This was basically 0.B, build by me in Cygwin. |
I haven't had any luck reproducing it, the only possibility that jumps out at me is that the implicit player_activity() constructor called by player::cancel_activity() isn't clearing player_activity::type. |
Managed to reproduce, yay? No closer to figuring out what's happening though, deduction tells me something in player::complete_craft() is resetting the activity. |
Wow that's just odd, here's the backtrace: #0 player::cancel_activity (this=0xf74d91d4) at src/player.cpp:12614 In English, code inside complete_craft() triggered drawing which in turn triggered an interruption check, which wiped the activity while it was still in-use, causing the crash. There are two fixes for this, the one I'm going to make is removing the access of activity after complete_craft() is called. The more complete fix is disentangling checking for interruptions from the drawing code, which needs to happen at some point because this is loopy, but not something I want to tackle right now. |
I was crafting clean water "as long as possible" when a zombie child interrupted me. I don't remember if I tried to continue or quit right there.
The text was updated successfully, but these errors were encountered: