After upgrading my Flutter version from 3.24.4
to 3.29.2
, I start getting this error in my Crashlytics:
Fatal Exception: NSInternalInconsistencyException
Sending a message before the FlutterEngine has been run.
It seems to be happening on random views / actions inside my app. There is no pattern that I can see. The only thing is that it never happened before the upgrade.
Does anyone have ANY idea what this is and how I can fix it? I’m lost here and my app is losing install because of it ..
Here is the full stacktrace:
Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x2d5fc __exceptionPreprocess
1 libobjc.A.dylib 0x31244 objc_exception_throw
2 Foundation 0x82dec0 _userInfoForFileAndLine
3 Flutter 0x1fcc4 (Missing UUID 4c4c444355553144a1942736321a049f)
4 Flutter 0x5e3de0 (Missing UUID 4c4c444355553144a1942736321a049f)
5 Flutter 0x5e69f8 (Missing UUID 4c4c444355553144a1942736321a049f)
6 webview_flutter_wkwebview 0x10fd0 (Missing UUID 77fb8f2ca38a37d4a730288634b0a912)
7 webview_flutter_wkwebview 0xfd1c (Missing UUID 77fb8f2ca38a37d4a730288634b0a912)
8 libswiftCore.dylib 0x3d817c _swift_release_dealloc
9 libswiftCore.dylib 0x3d9290 bool swift::RefCounts<:refcountbitst>>::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int)
10 libobjc.A.dylib 0x53b0 _object_remove_associations
11 libobjc.A.dylib 0x4f5c objc_destructInstance
12 libobjc.A.dylib 0x4eec _objc_rootDealloc
13 UIKitCore 0x989ec -[UIResponder dealloc]
14 UIKitCore 0x9871c -[UIView dealloc]
15 WebKit 0x58dd18 (Missing UUID 82158fd18f2e3f94ac212078b4c4b99a)
16 Foundation 0x199054 _NSKVOPerformWithDeallocatingObservable
17 Foundation 0x198d68 NSKVODeallocate
18 libobjc.A.dylib 0x5bac object_cxxDestructFromClass(objc_object*, objc_class*)
19 libobjc.A.dylib 0x4f4c objc_destructInstance
20 libobjc.A.dylib 0x4eec _objc_rootDealloc
21 Flutter 0x3639c (Missing UUID 4c4c444355553144a1942736321a049f)
22 Flutter 0x36024 (Missing UUID 4c4c444355553144a1942736321a049f)
23 libobjc.A.dylib 0x5bac object_cxxDestructFromClass(objc_object*, objc_class*)
24 libobjc.A.dylib 0x4f4c objc_destructInstance
25 libobjc.A.dylib 0x4eec _objc_rootDealloc
26 Flutter 0x52ea4 (Missing UUID 4c4c444355553144a1942736321a049f)
27 CoreFoundation 0x4e488 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
28 CoreFoundation 0x4e3a4 ___CFXRegistrationPost_block_invoke
29 CoreFoundation 0x4cf18 _CFXRegistrationPost
30 CoreFoundation 0x4c01c _CFXNotificationPost
31 Foundation 0x9fa9c -[NSNotificationCenter postNotificationName:object:userInfo:]
32 UIKitCore 0x115c528 -[UIApplication _terminateWithStatus:]
33 UIKitCore 0x1b5644 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]
34 UIKitCore 0x906e8c -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:]
35 UIKitCore 0x1157c28 -[UIApplication workspaceShouldExit:withTransitionContext:]
36 FrontBoardServices 0x56cd4 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke_2
37 FrontBoardServices 0x1f4c8 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:]
38 FrontBoardServices 0x56c74 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke
39 libdispatch.dylib 0x3fa8 _dispatch_client_callout
40 libdispatch.dylib 0x79f0 _dispatch_block_invoke_direct
41 FrontBoardServices 0x18378 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__
42 FrontBoardServices 0x182f8 -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible]
43 FrontBoardServices 0x181d0 -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource]
44 CoreFoundation 0x73f4c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
45 CoreFoundation 0x73ee0 __CFRunLoopDoSource0
46 CoreFoundation 0x76b40 __CFRunLoopDoSources0
47 CoreFoundation 0x75d3c __CFRunLoopRun
48 CoreFoundation 0xc8284 CFRunLoopRunSpecific
49 GraphicsServices 0x14c0 GSEventRunModal
50 UIKitCore 0x3ee674 -[UIApplication _run]
51 UIKitCore 0x14e88 UIApplicationMain
52 UIKitCore 0x75115c keypath_get_selector_hoverStyle
53 Runner 0x8a38 main (AppDelegate.swift)
54 ??? 0x1c7c1dde8 (Missing)