-
Notifications
You must be signed in to change notification settings - Fork 17
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
SDL2 apps don't exit correctly if killed externally. #19
Comments
Looks like it happens in the examples too. df_fire has a similar issue. Seems to happen with drmkms and fbdev. |
You can try no-sighandler option in directfbrc config file. |
Ah, I did see that but forgot about it. I guess that fixes the issue by letting the app handle the signal and do the tear down in the opposite direction. I wonder in what case you would want DirectFB to do it. Maybe for the master application in a multi-app setup? |
I usually use an event (such as a key event) to trigger the application shutdown. |
For SDL2 apps (Tested with scummvm) running with the DirectFB backend if they exit via a trigger in the app itself they shut down cleanly.
However, if the app if killed by ctrl-c etc DirectFB starts tearing down everything but SDL2 doesn't report to the app that DirectFB is going away and the app continues to try updating the surface it's using causing assertions when DirectFB structures are accessed after they have already been disposed of.
It looks like there are two problems:
The text was updated successfully, but these errors were encountered: