Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

Crash on iOS v13 or above

Discussion in 'iOS and tvOS' started by unity_XjbZtEccGCRMCQ, Nov 11, 2019.

  1. unity_XjbZtEccGCRMCQ

    unity_XjbZtEccGCRMCQ

    Joined:
    Jun 27, 2019
    Posts:
    2
    Experienced this crash in ios13 or above os.

    Seems like, it is related to Game Center.

    Unity v2017.4.29f1
    iOS 13

    UnityAppController.mm line 171
    -[UnityAppController application:supportedInterfaceOrientationsForWindow:]

    Fatal Exception: NSRangeException
    0 CoreFoundation 0x18ef5a98c __exceptionPreprocess
    1 libobjc.A.dylib 0x18ec830a4 objc_exception_throw
    2 CoreFoundation 0x18efb03f8 -[__NSCFString characterAtIndex:].cold.1
    3 CoreFoundation 0x18ee44c6c -[__NSArrayM objectAtIndexedSubscript:]
    4 GameCenterUI 0x1aed5b2e0 -[GKNotificationBannerViewController supportedInterfaceOrientations]
    5 game 0x1045242ec -[UnityAppController application:supportedInterfaceOrientationsForWindow:] + 171 (UnityAppController.mm:171)
    6 UIKitCore 0x192f6c210 -[UIApplication _supportedInterfaceOrientationsForWindow:]
    7 UIKitCore 0x1929756d4 -[UIViewController __supportedInterfaceOrientations]
    8 UIKitCore 0x192966c40 -[UIViewController _preferredInterfaceOrientationGivenStatusBarAndDeviceAndOrientation:]
    9 UIKitCore 0x192fa70e8 -[UIWindow _updateToInterfaceOrientation:duration:force:]
    10 CoreFoundation 0x18eeb609c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
    11 CoreFoundation 0x18eeb60e4 ___CFXRegistrationPost1_block_invoke
    12 CoreFoundation 0x18eeb5444 _CFXRegistrationPost1
    13 CoreFoundation 0x18eeb50fc ___CFXNotificationPost_block_invoke
    14 CoreFoundation 0x18ee3143c -[_CFXNotificationRegistrar find:eek:bject:eek:bserver:enumerator:]
    15 CoreFoundation 0x18eeb4a4c _CFXNotificationPost
    16 Foundation 0x18f2112d8 -[NSNotificationCenter postNotificationName:eek:bject:userInfo:]
    17 UIKitCore 0x192f5da54 -[UIApplication _stopDeactivatingForReason:]
    18 UIKitCore 0x192742ddc -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:]
    19 UIKitCore 0x192743124 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]
    20 UIKitCore 0x1927429e0 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:]
    21 UIKitCore 0x1925b7610 -[UIScene _invalidate]
    22 UIKitCore 0x193190ec4 -[UIWindowScene _invalidate]
    23 UIKitCore 0x192f64b20 -[UIApplication workspace:willDestroyScene:withTransitionContext:completion:]
    24 UIKitCore 0x192b26c10 -[UIApplicationSceneClientAgent scene:willInvalidateWithEvent:completion:]
    25 FrontBoardServices 0x193ff3bdc -[FBSSceneImpl _callOutQueue_agent_willDestroyWithTransitionContext:completion:]
    26 FrontBoardServices 0x194019b70 __84-[FBSWorkspaceScenesClient _queue_invalidateScene:withTransitionContext:completion:]_block_invoke_2
    27 FrontBoardServices 0x193ffe0f8 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:]
    28 FrontBoardServices 0x1940199e8 __84-[FBSWorkspaceScenesClient _queue_invalidateScene:withTransitionContext:completion:]_block_invoke
    29 libdispatch.dylib 0x18ec28184 _dispatch_client_callout
    30 libdispatch.dylib 0x18ebd1038 _dispatch_block_invoke_direct$VARIANT$mp
    31 FrontBoardServices 0x19403d540 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__
    32 FrontBoardServices 0x19403d20c -[FBSSerialQueue _queue_performNextIfPossible]
    33 FrontBoardServices 0x19403d734 -[FBSSerialQueue _performNextFromRunLoopSource]
    34 CoreFoundation 0x18eed87e0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
    35 CoreFoundation 0x18eed8738 __CFRunLoopDoSource0
    36 CoreFoundation 0x18eed7ed0 __CFRunLoopDoSources0
    37 CoreFoundation 0x18eed301c __CFRunLoopRun
    38 CoreFoundation 0x18eed28bc CFRunLoopRunSpecific
    39 GraphicsServices 0x198d3e328 GSEventRunModal
    40 UIKitCore 0x192f686d4 UIApplicationMain
    41 game 0x10450efd0 main + 33 (main.mm:33)
    42 libdyld.dylib 0x18ed5d460 start
     
  2. Haukien

    Haukien

    Joined:
    Aug 20, 2014
    Posts:
    11
    We have the same issue