Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS issue - applicationWillResignActive - Fatal Exception: NSInternalInconsistencyException unexpected start state #43

Open
evaisse opened this issue Dec 28, 2022 · 0 comments

Comments

@evaisse
Copy link

evaisse commented Dec 28, 2022

Hello,

using version 3.8.0, I found that many issues occurs on my production application (only on iOS) on this line : https://github.com/neckaros/secure_application/blob/master/ios/Classes/SwiftSecureApplicationPlugin.swift#L53

Crashlytics log the following message : applicationWillResignActive - Fatal Exception: NSInternalInconsistencyException unexpected start state

It looks like the issue is occurring only on iOS 13.

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x131344 __exceptionPreprocess
1  libobjc.A.dylib                0x5cc0 objc_exception_throw
2  CoreFoundation                 0x2e878 +[_CFXNotificationTokenRegistration keyCallbacks]
3  Foundation                     0xdcc74 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:]
4  UIKitCore                      0xa6766c _prepareForCAFlush
5  UIKitCore                      0xa98e34 _beforeCACommitHandler
6  CoreFoundation                 0xac11c __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
7  CoreFoundation                 0xa6e4c __CFRunLoopDoObservers
8  CoreFoundation                 0xa6be8 CFRunLoopRunSpecific
9  Foundation                     0x8598 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
10 Foundation                     0x8470 -[NSRunLoop(NSRunLoop) runUntilDate:]
11 secure_application             0x79c4 applicationWillResignActive + 53 (SwiftSecureApplicationPlugin.swift:53)
12 secure_application             0x6b90 applicationWillResignActive (<compiler-generated>)
13 Flutter                        0x1f0ac -[FlutterPluginAppLifeCycleDelegate handleWillResignActive:] + 196 (FlutterPluginAppLifeCycleDelegate.mm:196)
14 CoreFoundation                 0x89824 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
15 CoreFoundation                 0x89874 ___CFXRegistrationPost1_block_invoke
16 CoreFoundation                 0x88b64 _CFXRegistrationPost1
17 CoreFoundation                 0x88818 ___CFXNotificationPost_block_invoke
18 CoreFoundation                 0x2058 -[_CFXNotificationRegistrar find:object:observer:enumerator:]
19 CoreFoundation                 0x88158 _CFXNotificationPost
20 Foundation                     0x6e2c -[NSNotificationCenter postNotificationName:object:userInfo:]
21 UIKitCore                      0xa63278 -[UIApplication _deactivateForReason:notify:]
22 UIKitCore                      0x1dd204 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:]
23 UIKitCore                      0x1dd6b0 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]
24 UIKitCore                      0x1dcf38 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:]
25 UIKitCore                      0x1e1654 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2
26 UIKitCore                      0x5c6f8c +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:]
27 UIKitCore                      0x6c222c _UISceneSettingsDiffActionPerformChangesWithTransitionContext
28 UIKitCore                      0x1e1390 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke
29 UIKitCore                      0x6c2114 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext
30 UIKitCore                      0x1e11e8 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]
31 UIKitCore                      0x47918 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke
32 UIKitCore                      0x46418 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:]
33 UIKitCore                      0x47648 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:]
34 UIKitCore                      0x5edc18 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:]
35 FrontBoardServices             0xdb7c -[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]
36 FrontBoardServices             0x33b68 __88-[FBSWorkspaceScenesClient sceneID:updateWithSettingsDiff:transitionContext:completion:]_block_invoke_2
37 FrontBoardServices             0x17f40 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:]
38 FrontBoardServices             0x33a84 __88-[FBSWorkspaceScenesClient sceneID:updateWithSettingsDiff:transitionContext:completion:]_block_invoke
39 libdispatch.dylib              0x35ac _dispatch_client_callout
40 libdispatch.dylib              0x633c _dispatch_block_invoke_direct
41 FrontBoardServices             0x596c8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__
42 FrontBoardServices             0x59374 -[FBSSerialQueue _queue_performNextIfPossible]
43 FrontBoardServices             0x3d3dc -[FBSWorkspaceFencingImpl synchronizeSystemAnimationFencesWithCleanUpBlock:]
44 FrontBoardServices             0x5c68 -[FBSUIApplicationWorkspaceShim synchronizeSystemAnimationFencesWithCleanUpBlock:]
45 UIKitCore                      0xa671f8 -[UIApplication _synchronizeSystemAnimationFencesWithSpinCleanUpBlock:]
46 UIKitCore                      0xab394c __realPreCommitHandler_block_invoke_3
47 QuartzCore                     0xaef1c CA::Context::commit_transaction(CA::Transaction*, double)
48 QuartzCore                     0xd98c4 CA::Transaction::commit()
49 QuartzCore                     0xda4b4 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*)
50 CoreFoundation                 0xac11c __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
51 CoreFoundation                 0xa6e4c __CFRunLoopDoObservers
52 CoreFoundation                 0xa72dc __CFRunLoopRun
53 CoreFoundation                 0xa6bc8 CFRunLoopRunSpecific
54 GraphicsServices               0x35cc GSEventRunModal
55 UIKitCore                      0xa6e744 UIApplicationMain
56 Runner                         0x5c98 main + 8 (Double+extension.swift:8)
57 libdyld.dylib                  0x1384 start

Does this issue had already been logged ?

Thx,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant