Search Issue Tracker

Fixed in 5.6.0

Votes

25

Found in

5.5.0p2

Issue ID

862754

Regression

Yes

[iOS] Crash in UnityRepaint() when resuming the app with different landscape orientation if running at 60 FPS on iOS 10

iOS

-

When the orientation of the device is changed after the phone has been locked and before resuming the app, a crash occurs in UnityRepaint() if the app is running @ 60 FPS.

Steps to reproduce:
1) Open the attached project.
2) Build for iOS.
3) Run on a device.
4) Lock the screen.
5) Flip the device by 180 degrees.
6) Resume the app.

A crash occurs in UnityRepaint(); the view is rotated incorrectly and cropped. This does not occur if the 'Set 30 fps' button is pressed before locking the screen.

Note: the crash occurs in main() on Unity versions prior to 5.5.

Reproduced on:
5.6.0b2, 5.5.0p3, 5.4.4f1

Did not reproduce:
5.2.4f1

Devices:
iPhone 7 iOS 10.2 - repro
iPhone 6 iOS 10.0.2 - repro
iPhone 7 iOS 10.0.2 - no repro
iPhone 5S iOS 9.1 - no repro

Comments (12)

  1. ekgames

    Mar 02, 2017 07:16

    *** Assertion failure in void _prepareForCAFlush
    *** Assertion failure in -[UIApplicationSceneSettingsDiffInspector inspectDiff:withContext:]
    libc++abi.dylib: terminate_handler unexpectedly threw an exception

  2. ekgames

    Mar 02, 2017 07:11

    Still happens in 5.5.1p3 with iPhone 7 iOS 10.2.1.

    use cloud build - ekgames 990c574c-da8f-424f-8f14-7ccdeaca079e
    target - Default iOS enterprise - TestServer

  3. _creatio_

    Mar 01, 2017 18:43

    We're seem to have related problem even in 5.5.2f1. Here is the stack:

    #0 0x000000018a775704 in objc_object::release() ()
    #1 0x000000018a775fe0 in (anonymous namespace)::AutoreleasePoolPage::pop(void*) ()
    #2 0x00000001000ae8c0 in ::UnityRepaint() at /Projects/Riders/Build/roa_ios/Classes/UnityAppController+Rendering.mm:270
    #3 0x00000001000ae850 in ::-[UnityAppController(Rendering) repaint]() at /Projects/Riders/Build/roa_ios/Classes/UnityAppController+Rendering.mm:95
    #4 0x00000001000ae798 in ::-[UnityAppController(Rendering) repaintDisplayLink]() at /Projects/Riders/Build/roa_ios/Classes/UnityAppController+Rendering.mm:79
    #5 0x0000000105aefae4 in -[DYDisplayLinkInterposer forwardDisplayLinkCallback:] ()
    #6 0x000000018ef7af24 in CA::Display::DisplayLinkItem::dispatch(unsigned long long) ()
    #7 0x000000018ef7add0 in CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) ()
    #8 0x000000018bf92094 in IODispatchCalloutFromCFMessage ()
    #9 0x000000018bcbae50 in __CFMachPortPerform ()
    #10 0x000000018bcd3218 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ ()
    #11 0x000000018bcd29cc in __CFRunLoopDoSource1 ()
    #12 0x000000018bcd04b0 in __CFRunLoopRun ()
    #13 0x000000018bbfe2b8 in CFRunLoopRunSpecific ()
    #14 0x000000018d6b2198 in GSEventRunModal ()
    #15 0x0000000191c457fc in -[UIApplication _run] ()
    #16 0x0000000191c40534 in UIApplicationMain ()
    #17 0x00000001000a2700 in main at /Projects/Riders/Build/roa_ios/Classes/main.mm:32
    #18 0x000000018abe15b8 in start ()

    A problem appears when we're trying to perform a social network authorization and opening a Safari for that. Prior to Safari completely loads the form, the focus returns to the game and the crash occurs.

  4. SamiSdd

    Mar 01, 2017 09:01

    @PUSHPESHKARKI Yes Looks like it crash even on 30FPS

  5. pushpeshkarki

    Feb 09, 2017 14:12

    Does it happen even when the game is not running at @60 FPS?

  6. Vaidas_Budrys

    Feb 06, 2017 12:14

    This bug will be fixed in 5.5.1p3 patch release.

  7. pacolaf

    Jan 25, 2017 18:20

    Still happens in 5.5.1f1 with iPhone 7 iOS 10.2.1.

  8. GuyTidhar

    Jan 25, 2017 08:07

    Is this not fix in Unity 5.5.1?

  9. maxrevilo

    Jan 17, 2017 22:15

  10. adamkapos

    Jan 17, 2017 13:48

    This is a serious bug that happens with 5.5.0p4 and 5.4.4p1

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.