You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Crash in background — glFinish_Exec, gpus_ReturnNotPermittedKillClient, libGPUSupportMercury #1460
This looks suspiciously similar to the two crashes discussed in #1198, but not quite. @picciano, do you see any hardware/OS patterns for these crashes?
It looks like gpus_ReturnNotPermittedKillClient usually means that the app is trying to render OpenGL in the background, says Apple and variety of Stack Overflow threads (like this one).
@incanus just hardened iOS backgrounding behavior yesterday in #1451. We don't handle UIApplicationWillTerminateNotification, but I'm not sure we need to?
I don't think we need to hit UIApplicationWillTerminateNotification.
We are still seeing this crash internally, though not in a way that looks like a crash to anyone (because of the state-saving nature of backgrounding). Currently trying to work out what exactly the repro is.
I now keep track of the state of the status bar in relation to the app's active status, and only animate if the application state is UIApplicationStateActive. Having done this, I haven't had a crash since.
Does Crashlytics rely on the same UIApplicationDidEnterBackgroundNotification/UIApplicationWillEnterForegroundNotification notifications we’ve been using? If so, it’d be misreporting exactly these crashes as being “while in focus”.
We just can't seem to repro this internally. We are "seeing" the crash in Hockey, but no one is reporting any crash problems and we can't repro in Xcode. Maybe we can punt on this?
Looks like we're getting somewhere, being able to detect background launches now. Should be easy to fix the crash above: there's no need to unregister for KVO registrations before the registrations take place (registration is deferred in this case).
@picciano, let's continue the conversation in #1821, since that looks promising.
Activity
friedbunny commentedon May 7, 2015
This looks suspiciously similar to the two crashes discussed in #1198, but not quite. @picciano, do you see any hardware/OS patterns for these crashes?
picciano commentedon May 7, 2015
I've been seeing it on iPhone 6, iOS versions 8.2 and 8.3. This build is using the MBGL codebase from Monday, May 4, late afternoon.
friedbunny commentedon May 7, 2015
It looks like
gpus_ReturnNotPermittedKillClientusually means that the app is trying to render OpenGL in the background, says Apple and variety of Stack Overflow threads (like this one).Here is effectively the same crash on VLC's iOS app. It appears they fixed it by checking for a broader range of background notifications.
friedbunny commentedon May 7, 2015
@incanus just hardened iOS backgrounding behavior yesterday in #1451. We don't handle
UIApplicationWillTerminateNotification, but I'm not sure we need to?incanus commentedon May 7, 2015
I don't think we need to hit
UIApplicationWillTerminateNotification.We are still seeing this crash internally, though not in a way that looks like a crash to anyone (because of the state-saving nature of backgrounding). Currently trying to work out what exactly the repro is.
incanus commentedon May 7, 2015
http://stackoverflow.com/a/15814933/977220
picciano commentedon May 7, 2015
According to Crashlytics, the app was not in background. But perhaps it's just a reporting/timing glitch?
incanus commentedon May 7, 2015
Hmm, @picciano, any way you could share some of the log around that, or explain how you know?
picciano commentedon May 7, 2015
See screen shot image pasted in above message. Crashlytics is reporting 100% of the 8 crashes were with "app in focus".
1ec5 commentedon May 7, 2015
Does Crashlytics rely on the same
UIApplicationDidEnterBackgroundNotification/UIApplicationWillEnterForegroundNotificationnotifications we’ve been using? If so, it’d be misreporting exactly these crashes as being “while in focus”.incanus commentedon May 7, 2015
We just can't seem to repro this internally. We are "seeing" the crash in Hockey, but no one is reporting any crash problems and we can't repro in Xcode. Maybe we can punt on this?
39 remaining items
picciano commentedon Jul 2, 2015
@iec5 i'll drop that into tonight's build and let you know
picciano commentedon Jul 3, 2015
After bringing in the changes from #1821 I saw this in Crashlytics.
1ec5 commentedon Jul 3, 2015
Looks like we're getting somewhere, being able to detect background launches now. Should be easy to fix the crash above: there's no need to unregister for KVO registrations before the registrations take place (registration is deferred in this case).
@picciano, let's continue the conversation in #1821, since that looks promising.
picciano commentedon Jul 3, 2015
Sorry, meant #1821 (not 1812)
incanus commentedon Jul 7, 2015
@1ec5 is heading this up.
Defer initialization until app enters foreground
Defer initialization until app enters foreground
1ec5 commentedon Jul 9, 2015
Reopening because the fix was backed out in 2df80af due to #1855. Hopefully we can bring back the fix, sans regression, in a minor update.