-
Notifications
You must be signed in to change notification settings - Fork 174
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 on iOS when swiping app out #112
Comments
yes, it is on your side |
No, having the same issue with HelloWorld example
|
how to reproduce it in HelloWorld then? |
Just try launch it on device, then put to background, then swipe out from recent tasks. |
but without crash in xcode? |
Hmm, what do you mean? |
breakpoint stop when error occurs |
Ahh, yep, I could catch it that way, but only once. Steps are the same. |
After some investigation, I think that it might be SDL issue. Looks like there is a problem with app termination on iOS. Just give you an idea of what I did.
void SDL_OnApplicationWillTerminate(void)
{
SDL_SendQuit(); // <-- add this line
SDL_SendAppEvent(SDL_APP_TERMINATING);
}
#define SDLEXIT_DECLSPEC
#define exit SDL_exit
extern C_LINKAGE SDLEXIT_DECLSPEC void SDL_exit();
- (void)applicationWillTerminate:(UIApplication *)application
{
SDL_OnApplicationWillTerminate();
SDL_exit(); // <-- add this line
}
Note: I'm using CADisplayLink for game loop update. |
hmm, oxygine examples doesnt use CADisplayLink
|
Yes, exactly! Release logic need to be called synchronously in |
Hi, @frankinshtein !
There is a crash on iOS when using
OXYGINE_DEBUG_TRACE_LEAKS
.It occurs each time when app is swiped out from tasks.
I've managed to catch it in Xcode debugger
UPD: maybe its on my side, didn't notice it on example projects..
The text was updated successfully, but these errors were encountered: