Search Issue Tracker

Fixed in Unity 2017.2

Votes

200

Found in

5.4.0f3

Issue ID

835745

Regression

No

[iOS] Changing the screen orientation via a script sometimes results in corrupted view on iOS 10

iOS

-

-

Priority: 3Not yet prioritized for a release

-

Severity: 2No workaround

When the orientation of the screen is changed via a script (with Screen.orientation) on iOS 10 devices, sometimes the screen remains in portrait orientation, but the game view gets flipped and goes over the edge of the screen and leaves black area in the bottom part of the screen.

Steps to reproduce:
1) Open the attached project.
2) Build 'MainScene' for iOS.
3) Run on an iOS 10 device.
4) Press the 'Switch to landscape' UI button.

If the button is clicked 2-3 seconds after launch - the rotation should fail - black area appears at the bottom of the screen, half of the game view is not visible. If it does not, quit the app completely, re-launch it and repeat step 5). This occurs with both Metal and OpenGLES on iOS 10.

Reproduced on:
5.5.0b5, 5.4.1p3, 5.3.6p6

Devices:
iPhone 7 iOS 10 - reproduced
iPhone 7 iOS 10.1 - reproduced
iPhone 7 Plus iOS 10.0.2 - reproduced
iPhone 5 iOS 10 - not reproduced
iPad Mini 2 iOS 10 - not reproduced
iPhone 5S iOS 9.2.1 - not reproduced
It should also be reproducible on iPhone 6.
iPhone 6S iOS 10.2 - reproducible

------------------------

Fixed in 2017.1.0b10, 5.6.2p1, 5.5.4p1, 5.4.5p4

Comments (81)

  1. F1d321415a13b5f0bab2ebc369970ac7?d=mm

    Rubinhuang

    Mar 07, 2017 02:10

    no, did not fix.

  2. 1ae1699ae39695d58ab96673619f0af8?d=mm

    voporak5

    Mar 03, 2017 14:48

    Shoulda been the one where the fixed the issue with the Facebook SDK being broken

  3. F1d321415a13b5f0bab2ebc369970ac7?d=mm

    Rubinhuang

    Mar 02, 2017 20:28

    @ VOPORAK5
    Which patches? 5.5.2 did not, did you mean 5.6.0 beta?

  4. 1ae1699ae39695d58ab96673619f0af8?d=mm

    voporak5

    Mar 02, 2017 16:16

    _CREATIO this is not the place to be reporting bugs.

    Plus that bug was fixed in one of the recent patches. Just get the latest patch and your bug should be fixed.

  5. 431d803c725e370877eb0703d8675f42?d=mm

    _creatio_

    Mar 01, 2017 19:05

    We're having a problem with 5.5.2f1
    Our game crashes when one of the plugins opens Safari to perform OAuth. The web form doesn't show, but instead we get the exception:

    #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 ()

    Reproduces on iOS 10.2.1 iPhone 6 Plus.
    Please help!

  6. C33b0675159d3594e82ee8ae958ae3df?d=mm

    SamiSdd

    Mar 01, 2017 08:59

    Please Fix ASAP

  7. 94bf64f5bacf750f21913ad404945612?d=mm

    Numa

    Mar 01, 2017 02:19

    Still happening in 5.5.1p4 :(

  8. F1d321415a13b5f0bab2ebc369970ac7?d=mm

    Rubinhuang

    Feb 28, 2017 15:16

    still have the same bug on the latest release Unity 5.5.2, why this bug takes so long to fix?
    Is there anyway to work around this, I can't do anything but wait now.

    problem appears on iPhone6, iPhone se, iPhone 5 with iOS 10.

  9. 9f2c5730be9da8e3eeb23b40e26607ed?d=mm

    gbabic

    Feb 28, 2017 05:55

    Still seeing this in 5.5.2f1 for iOS

  10. 52cabaf140fecc32e454083866498d05?d=mm

    WhiteLotus

    Feb 14, 2017 13:40

    Fix This One As Soon As possible..

All about bugs

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