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