Search Unity

iOS NSInternalInconsistencyException crash in UnityAppController+Rendering.mm line 248

Discussion in 'Editor & General Support' started by Peacewise, Dec 24, 2016.

  1. Peacewise

    Peacewise

    Joined:
    Feb 27, 2014
    Posts:
    52

    Crash #2


    My game is live, and a small % of players are experiencing crashes. I cannot reproduce any of them, so all I have to go on are traces reported via Crashlytics. This is one is one of the most frequent crashes players have. Any help is deeply appreciated!

    Only happens on iOS
    Crashes with NSInternalInconsistencyException
    Crashes in: UnityAppController+Rendering.mm line 248
    Built with IL2CPP


    Code (CSharp):
    1.  
    2. Fatal Exception: NSInternalInconsistencyException
    3. 0  CoreFoundation                 0x190c4d1b8 __exceptionPreprocess
    4. 1  libobjc.A.dylib                0x18f68455c objc_exception_throw
    5. 2  CoreFoundation                 0x190c4d08c +[NSException raise:format:]
    6. 3  Foundation                     0x191705098 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:]
    7. 4  UIKit                          0x196d85a88 _prepareForCAFlush
    8. 5  UIKit                          0x196da6250 _beforeCACommitHandler
    9. 6  CoreFoundation                 0x190bfa0c0 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
    10. 7  CoreFoundation                 0x190bf7cf0 __CFRunLoopDoObservers
    11. 8  CoreFoundation                 0x190b262d8 CFRunLoopRunSpecific
    12. 9  matchdragons                   0x10001407c UnityRepaint (UnityAppController+Rendering.mm:248)
    13. 10 matchdragons                   0x100021334 -[UnityAppController applicationWillResignActive:] (UnityAppController.mm:309)
    14. 11 UIKit                          0x196b6a43c -[UIApplication _deactivateForReason:notify:]
    15. 12 UIKit                          0x196d88398 __61-[UIApplication _sceneSettingsPreLifecycleEventDiffInspector]_block_invoke
    16. 13 FrontBoardServices             0x19280c620 __52-[FBSSettingsDiffInspector inspectDiff:withContext:]_block_invoke.27
    17. 14 Foundation                     0x191717024 __NSIndexSetEnumerate
    18. 15 BaseBoard                      0x192786f68 -[BSSettingsDiff inspectChangesWithBlock:]
    19. 16 FrontBoardServices             0x1928067b8 -[FBSSettingsDiff inspectOtherChangesWithBlock:]
    20. 17 FrontBoardServices             0x19280c3fc -[FBSSettingsDiffInspector inspectDiff:withContext:]
    21. 18 UIKit                          0x196d89800 __70-[UIApplication scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke
    22. 19 UIKit                          0x196d894a4 -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:]
    23. 20 UIKit                          0x1970b553c -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:]
    24. 21 FrontBoardServices             0x1927f5dd4 __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke.376
    25. 22 FrontBoardServices             0x19282392c __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__
    26. 23 FrontBoardServices             0x192823798 -[FBSSerialQueue _performNext]
    27. 24 FrontBoardServices             0x1927fc058 -[FBSWorkspace synchronizeSystemAnimationFencesWithCleanUpBlock:]
    28. 25 UIKit                          0x196d85684 -[UIApplication _synchronizeSystemAnimationFencesWithSpinCleanUpBlock:]
    29. 26 UIKit                          0x196dda664 __realPreCommitHandler_block_invoke
    30. 27 QuartzCore                     0x193f47e10 CA::Transaction::Fence::run_callbacks() const
    31. 28 QuartzCore                     0x193f1f4c4 CA::Context::commit_transaction(CA::Transaction*)
    32. 29 QuartzCore                     0x193f46a68 CA::Transaction::commit()
    33. 30 QuartzCore                     0x193f47488 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*)
    34. 31 CoreFoundation                 0x190bfa0c0 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
    35. 32 CoreFoundation                 0x190bf7cf0 __CFRunLoopDoObservers
    36. 33 CoreFoundation                 0x190b262d8 CFRunLoopRunSpecific
    37. 34 matchdragons                   0x10001407c UnityRepaint (UnityAppController+Rendering.mm:248)
    38. 35 matchdragons                   0x100013df0 -[UnityAppController(Rendering) repaintDisplayLink] (UnityAppController+Rendering.mm:54)
    39. 36 QuartzCore                     0x193ea2f24 CA::Display::DisplayLinkItem::dispatch(unsigned long long)
    40. 37 QuartzCore                     0x193ea2dd0 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long)
    41. 38 IOKit                          0x190eba094 IODispatchCalloutFromCFMessage
    42. 39 CoreFoundation                 0x190be2e50 __CFMachPortPerform
    43. 40 CoreFoundation                 0x190bfb218 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
    44. 41 CoreFoundation                 0x190bfa9cc __CFRunLoopDoSource1
    45. 42 CoreFoundation                 0x190bf84b0 __CFRunLoopRun
    46. 43 CoreFoundation                 0x190b262b8 CFRunLoopRunSpecific
    47. 44 GraphicsServices               0x1925da198 GSEventRunModal
    48. 45 UIKit                          0x196b6d7fc -[UIApplication _run]
    49. 46 UIKit                          0x196b68534 UIApplicationMain
    50. 47 matchdragons                   0x10000e07c main (main.mm:32)
    51. 48 libdispatch.dylib              0x18fb095b8 (Missing)
    52.  
     
  2. hsallander

    hsallander

    Joined:
    Dec 19, 2013
    Posts:
    46
    Last edited: Dec 26, 2016
  3. faraz-glu

    faraz-glu

    Joined:
    Sep 21, 2016
    Posts:
    6
    @Peacewise Did you get a response for that problem? I am seeing the same issue happening in our live build right now. We are on Unity 5.4.4p2.

    Code (CSharp):
    1.  
     
  4. Peacewise

    Peacewise

    Joined:
    Feb 27, 2014
    Posts:
    52
    I did two things that have stopped this from occurring for me. I don't know whether it was one or both:

    1. I updated to Unity 5.3.7p2
    2. I also removed the code I had which was manually changing orientations. I didn't need that code any longer -- I was changing orientation temporarily on startup because Unity hadn't correctly been detecting orientation, and my splash was getting squashed into portrait, but apparently that bug was fixed a while back.
    Either way, I'm not seeing any more reports of these crashes. Hope that helps some, best of luck!
     
    faraz-glu likes this.