Search Unity

  1. Click here to receive a gift with your purchase of Unity Pro or Unity Enterprise.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Crash on iOS v13 or above

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

  1. SaleemSiddiqui

    SaleemSiddiqui

    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:
    12
    We have the same issue
     
  3. ThisGuise

    ThisGuise

    Joined:
    Oct 20, 2015
    Posts:
    8
    Having the same issue on 2018.4.6f1

    Haven't seen anything in the newer LTS releases that suggest that it has been fixes there either.

    This currently stands for the majority of our crashes on iOS. Is there a bugreport somewhere we can pile onto?

    Seeing that this might be an issue with GameKit itself: https://forums.developer.apple.com/thread/125738
     
    Last edited: Jan 3, 2020
  4. ThisGuise

    ThisGuise

    Joined:
    Oct 20, 2015
    Posts:
    8
    Still an issue on 2018.4.15f1
     
  5. jason_yak

    jason_yak

    Joined:
    Aug 25, 2016
    Posts:
    336
    We're seeing this issue and using 2019.2.17 for users on iOS13, it's accounting for a lot of crashes coming from GKNotificationBannerViewController.
     
  6. xman800

    xman800

    Joined:
    Feb 27, 2017
    Posts:
    24
    Same issue. Unity 2018.4.16f, iOS 13.3.1
     
  7. Petr777

    Petr777

    Joined:
    Nov 8, 2017
    Posts:
    28
    Same issue, 2018.4.10f1
     
  8. Neonlyte

    Neonlyte

    Joined:
    Oct 17, 2013
    Posts:
    270
    All, please submit this issue as bug reports via Unity Bug Reporter. Posting here is not likely going to get the most immediate attention from devs.
     
  9. charles_xl

    charles_xl

    Joined:
    Oct 4, 2016
    Posts:
    66
    Seeing this as well, was there any resolution? On 2018.4.19f1
     
  10. fcloss

    fcloss

    Joined:
    Dec 1, 2011
    Posts:
    144
    I have an unexpected and impossible to reproduce scenario. I have crashes on startup (app freezes) only in France (iOs 13). It is definitely not related to my app internationalization. I've tested the app in every possible way, including creating a French AppStore account, no crash, nothing. No where else in the world I have a similar scenario. I am using Unity 2018.4.24 (LTS).

    The freezing is not reported on Crashlytics, AppStore, nowhere. So I have no clue of what it might be.

    This is the AppStore page with the reviews, in France: https://apps.apple.com/fr/app/tacticalpad-coachs-whiteboard/id512949303

    Thanks
     
  11. habitoti

    habitoti

    Joined:
    Feb 28, 2013
    Posts:
    132
    This also happens on 2019.4 (LTS). Seems like Apple is admitting this is an iOS 13 issue that should be fixed with iOS 14 (https://forums.developer.apple.com/thread/125738), but this doesn't help for the time being. Are there any know workarounds (like providing the supported orientations directly from that call and not determining that via the buggy API)?
     
  12. fcloss

    fcloss

    Joined:
    Dec 1, 2011
    Posts:
    144
    For me, so far, it is a random crash. I ask user to restart device, re-log in on AppStore. They usually return to me with : "I did nothing, tried again and the app opened this time". It is driving us crazy as we get crucified for something not on our side. I am trying to remove all possible plugins that may use GameCenter. But it is a shot in the dark.
     
  13. habitoti

    habitoti

    Joined:
    Feb 28, 2013
    Posts:
    132
    For me it happens (randomly, but often) when the GameCenter notifications for achievements are to be shown. And of course it is all blamed on my app, and people might never give you a rating when all works nicely, but they are quick with 1 star when the app crashes just once :(
     
  14. fcloss

    fcloss

    Joined:
    Dec 1, 2011
    Posts:
    144
    Yep, same for us. But in our case we do not use GameCenter (at least we don't call anything, any plugin might add its sdk(like Prime 31)) and we have this bizarre thing that happens almost only in France. Anyway, the blame will always be of the developers, try to convince someone that spent $$ with an Apple device that his device or the Apple services are buggy, they get mad at you hehe. Good luck with the issue, fingers crossed for the iOs updates.
     
  15. habitoti

    habitoti

    Joined:
    Feb 28, 2013
    Posts:
    132
    And you're not getting any crashlogs in Xcode Organizer?
     
  16. fcloss

    fcloss

    Joined:
    Dec 1, 2011
    Posts:
    144
    No. The app hangs on the launch screen. It may be a different issue than this one. As it is not crashing, no info on Crashlytics or XCode. Not reproducible, even if set to French AppStore, with app and device in French. Unfortunately no idea. Not sure if I hope it is this same issue or a different one.

    The only thing that we know (from the reviews on AppStore and the emails we received from users) is that it started from nowhere (not after an update from us) but it started in 2020. Here is the review page in France (nowhere else we have it): https://apps.apple.com/fr/app/tacticalpad-coachs-whiteboard/id512949303#see-all/reviews
     
unityunity