Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  3. Unity 2017.2 is now released.
    Dismiss Notice
  4. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  5. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  7. Unity 2017.3 beta is now available for download.
    Dismiss Notice

Possible auto rotation crash on iOS (Unity 5.2.3p3)

Discussion in 'iOS and tvOS' started by Voldemorten, Feb 29, 2016.

  1. Voldemorten

    Voldemorten

    Joined:
    Apr 2, 2015
    Posts:
    3
    I'm submitting a game to the iOS App Store, and it was rejected due to crash on startup (iOS 9.2.1, using the same on my iPhone test device). Now, please bear with me while I apply some calculated guesswork here, as I have limited experience debugging on iOS. I used to experience startup crashes similar to the one indicated in the crash log when I had auto rotation set to both landscape modes, but no portrait in earlier builds. I pushed the problem aside temporarily by using only one orientation (landscape right).

    However, after I added the following code in my startup class Bootstrap.cs, landscape auto rotation has worked fine and dandy for me:
    My question is then if I'm on the right track to assume it has something to do with auto rotation? I found out a few days ago that one of the patch releases for 5.2 addressed a bug on iOS related to this, so I upgraded to 5.2.3p3. Am I doing something wrong in the screen orientation code in my Bootstrap class?

    As a quick fix I'll revert to using a single fixed orientation to submit to Apple for beta review, and see if that circumvents the problem until I can get to the root of it. However, any help would be greatly appreciated :)

    Relevant crash log snippet:
    Last Exception Backtrace:
    0 CoreFoundation 0x18309d900 0x182f78000 + 1202432
    1 libobjc.A.dylib 0x18270bf80 0x182704000 + 32640
    2 CoreFoundation 0x18309d7d0 0x182f78000 + 1202128
    3 Foundation 0x183a1099c 0x18396c000 + 674204
    4 thoughluck 0x1000102d4 -[UnityDefaultViewController supportedInterfaceOrientations] (UnityViewControllerBase.mm:103)
    5 UIKit 0x187e0887c 0x187d7c000 + 575612
    6 UIKit 0x187e082dc 0x187d7c000 + 574172
    7 UIKit 0x187d9172c 0x187d7c000 + 87852
    8 UIKit 0x187f19ecc 0x187d7c000 + 1695436
    9 thoughluck 0x1000bdc8c Bootstrap_Start_m_1389496355_0 (Bulk_Assembly-CSharp_2.cpp:10814)
     
  2. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    424
    This looks like a bug. Could you please check if the same happens on Unity 5.3.3? If you can still see the same issue, please submit a bug report with a reproduction project and post the bug number here. Thanks a lot.
     
  3. nastasache

    nastasache

    Joined:
    Jan 2, 2012
    Posts:
    74
  4. nastasache

    nastasache

    Joined:
    Jan 2, 2012
    Posts:
    74
    Well, the first resolution:
    I have now a project using Unity 5.3.4, Xcode 7.3, and Vuforia not compatible with Unity 5.3.2 and above.
    What I have to do? Where to fill the bug?
     
  5. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    424
    Try 5.3.2 then. I'm pretty sure 5.3.x does not have this bug. In case it does, we'd like to see a bug report :)
     
    Last edited: Apr 5, 2016