Search Issue Tracker

Fixed in 5.3.6

Votes

62

Found in

5.2.1p4

Issue ID

737693

Regression

No

[iOS] Crash on presentRenderbuffer:GL_RENDERBUFFER in PresentGles when loading a scene on A9 devices

iOS

-

To Reproduce:

1. Build and deploy the project attached to the comment to an iPhone 6S.
2. Press the home button and reopen the app (might be necessary to repeat this several times (up to 5-10)).

The app crashes in PresentGles / [surface->context presentRenderbuffer:GL_RENDERBUFFER];
https://gist.github.com/qwyt/1cfea253b6eb839f8b9c (stacktrace)

The scene which is loaded only has a mesh with a standard shader and a script which continuously switches between it and another scene with a canvas and an UI image.

Could only reproduce on an iPhone 6s, so this might be A9 specific, couldn't reproduce on:

iPhone 6+ iOS 9.0
iPhone 6+ iOS 8.0
iPad mini 4 iOS 9.0
iPad mini 2 iOS 9.0

Only reproducible with GLES2, no crash when using Metal

UPDATE:------

Seems to be an A9 driver issues, we've submitted a bug to apple:

Radar: 23225771 Crash in EAGL presentRenderBuffer when awaking from backgrounded state

and we're waiting for their response.

UPDATE:------

Apple have fixed this bug in the upcoming iOS 9.3.3.

The bug in the current iOS is related to accessing mips in cubemap textures, so work arounds for supporting devices before this update include not using cubemaps and using legacy cubemap assets (which allow mipmaps to be turned off).

Unfortunately, even with the fix in the new iOS, it is still possible to get crashes on A9/A9x devices when using openGLES. These cases seem to be related to reflection probes and can be avoided by marking reflection probe textures as uncompressed. We are continuing to investigate and talk to Apple about these remaining crashes.

Comments (23)

  1. kuudeveloper

    Dec 07, 2015 12:09

    This happens in our project on on iPhone6S (iOS 9.1) and iPad Pro (iOS 9.1). Using Unity 5.2.2f1, going to try 5.2.3f1

  2. brianleake

    Dec 07, 2015 04:35

    We see crash with same callstack in Unity 5.3.2.p2. Can't track down what's causing it, our game runs for a while and then crashes out on this.

  3. futureflyit

    Oct 27, 2015 14:56

    Also reproduces in 5.2.0. We are registering crashes on this only on iPhone 6S and iPhone 6S+.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.