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]: Crashed while creating small map #9722
Comments
Main thread:
Game thread:
|
Crash seems to be caused by 'A' hotkey being pressed during world generation. But I fail to reproduce it. |
OP must have been the luckiest person alive. There is like a VERY small window in which this crash can happen. Let me explain.
This function checks if a local company exists (if not, the world is generating). If it doesn't, it doesn't create an actual toolbar. If the local company does exist, it does create the toolbar. During world generation, the local company is not set, till just before the end. And then twice, and only twice, so 2 times a context-switch, we allow the system to read keyboard inputs. At But only after those two functions, we actually create the vital windows, needed for In order to reproduce this, I had to add 1000000 context-switches (not kidding) to make it anywhere possible to have a small window where I could press a hotkey and cause this crash. And that wasn't even a second of time. So either OP had a very slow computer or one under a lot of CPU stress .. or he was just REALLY lucky to hit this bug. Amazing. Either way, it is a bug, and one we should fix. |
Version of OpenTTD
12.1, Windows 10
Steps to reproduce
Upload crash files
OpenTTD.zip
The text was updated successfully, but these errors were encountered: