Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[ios] Potential rendering crash going into the background? #13293

Closed
julianrex opened this issue Nov 6, 2018 · 6 comments
Closed

[ios] Potential rendering crash going into the background? #13293

julianrex opened this issue Nov 6, 2018 · 6 comments
Labels
crash iOS Mapbox Maps SDK for iOS

Comments

@julianrex
Copy link
Contributor

There has been a recent report of an iOS crash during GL rendering. Callstack snippet:

Crashed: com.apple.main-thread
0 libGPUSupportMercury.dylib 0x2a17a3e4
gpus_ReturnNotPermittedKillClient + 9
1 libGPUSupportMercury.dylib 0x2a17aed1 gpusSubmitDataBuffers + 118
2 IMGSGX543RC2GLDriver 0x2dc653e1 <redacted> + 118
3 GLEngine 0x2e46f1a9 gliPresentViewES_Exec + 172
4 GLEngine 0x2e46f0d9 gliPresentViewES + 92
5 OpenGLES 0x1e0a6f3b -[EAGLContext
presentRenderbuffer:] + 78
6 GLKit 0x24d21d7d -[GLKView _display:] + 332
7 Mapbox 0x2d5d059 -[MGLMapView
updateFromDisplayLink] (MGLMapView.mm:1105)
...

From https://developer.apple.com/library/archive/qa/qa1766/_index.html - this sounds like it might be due to rendering when going into the background. (The most recent iOS rendering change was #12895).

Noting there was a similar issue in the past: #1460

Configuration

Unknown.

@JustinGanzer
Copy link

We're seeing this crash frequently with mapbox as of late, roughly starting around the same time you have opened this issue.

I looked at all the reports and found that the crash was exclusive to the devices:
iPhone 5, iPhone 5S, iPhone 6, iPhone 6 Plus and iPad Air and Air 2, independent of their version of iOS. Some using iOS 10, others up to date with iOS 12^.

None of the more recent devices has thrown this error.

We're always up to date on the newest version of mapbox.

@julianrex
Copy link
Contributor Author

@JustinGanzer this is great info - thanks for updating the ticket.

@julianrex
Copy link
Contributor Author

@JustinGanzer we issued an interim PR #14439 (and are working on a more fully fledged solution here: #14222). Going to mark this issue as closed, but please re-open if you continue to see a problem.

@friedbunny
Copy link
Contributor

What release do you expect this to be fixed in, @julianrex?

@julianrex
Copy link
Contributor Author

julianrex commented May 20, 2019

@julianrex
Copy link
Contributor Author

We'll want to know if it continues to be seen.

See #15740 - this may have re-occurred due to tweaks with glFinish handling.

Also #14222 still needs refactoring.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crash iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

4 participants