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

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

Closed

Description

@julianrex

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.

Activity

  1. added
    iOS
    on Nov 6, 2018
  2. JustinGanzer commented on Feb 22, 2019

    @JustinGanzer

    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.

  3. julianrex commented on Mar 6, 2019

    @julianrex
    ContributorAuthor

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

  4. julianrex commented on May 20, 2019

    @julianrex
    ContributorAuthor

    @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.

  5. friedbunny commented on May 20, 2019

    @friedbunny
    Contributor

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

  6. julianrex commented on May 20, 2019

    @julianrex
    ContributorAuthor
  7. julianrex commented on Oct 3, 2019

    @julianrex
    ContributorAuthor

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashiOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions