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 when closing game when manually triggered NewGRF scan in operation #8833
Comments
This backtrace is a bit funny. Basically, the game is already shutting down, but the NewGRF window decides it is a good idea to reload everything. As I mean, why not, right? :D ShutdownGame however, first shuts down all the drivers, so the OpenGL context is released by now. Only after that the Window system is destroyed. I see two solutions:
The second might be the most useful, as it is stupid to do either way. The first is the cheapskate solution, as it doesn't change anything really, so nothing could possibly break (famous last words). I included the second solution in #8830 now. |
Otherwise that might cause calls to the video-driver, which are already shut down by now. This causes, depending on the video-driver crashes or weird effects.
Otherwise that might cause calls to the video-driver, which are already shut down by now. This causes, depending on the video-driver crashes or weird effects.
Otherwise that might cause calls to the video-driver, which are already shut down by now. This causes, depending on the video-driver crashes or weird effects.
Otherwise that might cause calls to the video-driver, which are already shut down by now. This causes, depending on the video-driver crashes or weird effects.
Version of OpenTTD
master (b21ba56)
SDL2 on Linux (with default OpenGL driver and blitter)
Expected result
No crash when closing game when manually triggered NewGRF scan in operation
Actual result
I get an identical crash with #8830 applied, so that PR doesn't fix this sadly.
Steps to reproduce
The text was updated successfully, but these errors were encountered: