Search Unity

Crash in UnityAppController::updateOrientationFromController

Discussion in 'iOS and tvOS' started by RyuK, Apr 13, 2015.

  1. RyuK

    RyuK

    Joined:
    Feb 12, 2014
    Posts:
    55
    Hi guys,
    We have an iOS app with the SDKs from Flurry and AdColony, built with Unity 4.6.3 p1 (IL2CPP enabled). Since Flurry has the crash reporting function, I watched the crash logs sent by users, and found many crashes are occurring at UnityAppController updateOrientationFromController while I have no idea how to reproduce them and can't submit a bug. It's in UnityAppController+ViewHandling.mm but the app doesn't support orientation change and is fixed at portrait. The below are the 2 kinds of stack traces as the top two culprits.

    My guess is these SDKs don't handle orientation correctly, but I'm not sure if just setting UnityAppController::updateOrientationFromController as NOOP can be a quick fix. Any idea?

    Code (csharp):
    1.  
    2. Full Stack Trace:
    3.  
    4. 0  myapp  0x000604e4 -[UnityAppController updateOrientationFromController:] + 248132
    5. 1  myapp  0x00060080 -[UnityAppController updateOrientationFromController:] + 247008
    6. 2  myapp  0x00b18078 -[UnityAppController updateOrientationFromController:] + 11486424
    7. 3  myapp  0x01408644 __ZNSbIcSt11char_traitsIcEN3Alg13UserAllocatorIcEEEC2ERKS4_ + 387096
    8. 4  myapp  0x014aa628 __ZNSbIcSt11char_traitsIcEN3Alg13UserAllocatorIcEEEC2ERKS4_ + 1050620
    9. 5  myapp  0x00eb7b3c -[MoviePlayerContext .cxx_construct] + 2479568
    10. 6  myapp  0x00eb7afc -[MoviePlayerContext .cxx_construct] + 2479504
    11. 7  myapp  0x00ead180 -[MoviePlayerContext .cxx_construct] + 2436116
    12. 8  myapp  0x00de3dc0 -[MoviePlayerContext .cxx_construct] + 1611860
    13. 9  myapp  0x00e776b0 -[MoviePlayerContext .cxx_construct] + 2216260
    14. 10  myapp  0x00c5b4e4 -[MoviePlayerContext .cxx_construct] + 3960
    15. 11  myapp  0x00017a28 -[UnityAppController renderingAPI] + 768
    16. 12  myapp  0x00017478 -[UnityAppController repaint] + 84
    17. 13  myapp  0x00017420 -[UnityAppController repaintDisplayLink] + 48
    18. 14  QuartzCore  0x29629623 <redacted> + 98
    19. 15  QuartzCore  0x2962948b <redacted> + 366
    20. 16  IOMobileFramebuffer  0x2e16e82b <redacted> + 90
    21. 17  IOKit  0x27607071 _IODispatchCalloutFromCFMessage + 256
    22. 18  CoreFoundation  0x26651275 <redacted> + 132
    23. 19  CoreFoundation  0x266617db <redacted> + 34
    24. 20  CoreFoundation  0x26661777 <redacted> + 346
    25. 21  CoreFoundation  0x2665fd79 <redacted> + 1608
    26. 22  CoreFoundation  0x265ad3b1 _CFRunLoopRunSpecific + 476
    27. 23  CoreFoundation  0x265ad1c3 _CFRunLoopRunInMode + 106
    28. 24  GraphicsServices  0x2db94201 _GSEventRunModal + 136
    29. 25  UIKit  0x29c1743d _UIApplicationMain + 1440
    30. 26  myapp  0x0000f16c __mh_execute_header + 16748
    31. 27  myapp  0x0000f0a8 __mh_execute_header + 16552
    32.  
    33.  
    Code (csharp):
    1.