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

    Mar 14, 2016 23:56

    Re: submitted bug to Apple

    If this is caused by an Apple driver issue, why does the bug not happen with older versions of Unity?

  2. Tyrannicus100BC

    Mar 14, 2016 23:54

    Still happening with Unity-5.3.3p3.

    It's extremely frustrating to have zero response from Unity on this. It is clearly a nasty bug that we have no ability to fix. My team is stuck on 5.1.4 because of this bug.

  3. Haze-Games

    Mar 09, 2016 21:07

    Happens on Unity 5.3.3f1 with iPhone 6S and iPad Pro. Doesn't happen on iPhone 4S and iPhone 5S.

  4. andrea86

    Feb 22, 2016 12:38

    We've seen this issue on 6S and 6S Plus in Unity 5.3.1 with Opengl ES2.0 when pulling the notification or the WIFI bar or when going to background on first launch

  5. dillon_yeti

    Feb 19, 2016 06:16

    We're also seeing this issue, but not under these reproduction steps.

    Unity 5.3.2p3, GLES3.0, iPhone 6s+, we're just trying to work with an empty scene.

  6. cordis123

    Feb 16, 2016 12:58

    Still crash on iPhone 6s with OpenGLES 3.0

  7. priznut

    Jan 15, 2016 22:36

    We're seeing this all the time using iPadPro with graphic settings NOT turned to automatic ( so no Metal ). It happens between loading levels.

  8. Eron198200

    Jan 03, 2016 16:05

    Crash on iphone 6s and GLES 2.0.

  9. defic

    Dec 23, 2015 08:00

    Also I would like to add that it worked fine on unity 4.6.x, and it is broken at least on Unity 5.2.3f1 and 5.3.0.

  10. defic

    Dec 23, 2015 07:31

    Same here, happens on iphone 6s plus. Doesn't happen on Metal but that is not a solution since we need to use GLES2

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.