-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Tons of different PySDL2 crashes when tabbing in/out of application during loading or right after it finished #1321
Comments
Another one when tabbing out before loading finished:
|
It seems there is a large amount of race conditions around the loading screen. Will this be fixed? |
And yet another:
Basically I just need to tab in/out aggressively and I get a plethora of odd crashes. |
Ok, part of those crashes were because I got a window close event and didn't handle it. Now that I do and free all resources of the window (along with
It works fine on the desktop by the way, where I can close the window, see the window close properly processed and nothing crashes. Also, how is this supposed to work anyway? When I tab out and the window closes, now the app has no window - how will it ever open one when gaining focus again? After all, I didn't want to close it, I was forced to by python-for-android triggering a close event, so what is it supposed to show anyway once it regains focus...? |
Well, it's most likely me doing something wrong. But it would be useful to document this somewhere, the minimum events that need to be handled through SDL2 to avoid crashes like this. (Because it's not really comparable on the desktop, where the program doesn't crash due to this.) Anyway, I'll close the issue for now |
Testing around, my PySDL2 app crashed (I think it was when I tabbed out with the home button):
The text was updated successfully, but these errors were encountered: