iOS16 autofill causes crash while click "key button"(over keyboard)

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present modally a view controller <_SFAppAutoFillPasswordViewController: 0x106e22ee0> that is already being presented by <UIKeyboardHiddenViewController_Autofill: 0x106e25a10>.' IOS16(not sure other OS version could reproduce this or not) click on textfield, then keyboard shows(with a key button above), click key button, it crashes randomly.

Hi! Can you please send feedback about this in Feedback Assistant with as much information as possible and respond here with the Feedback ID? A video recording can help showing where it does (and doesn’t!) happen.

I got the same exception and created a feedback issue with id 11720029. The crash even seems to affect Safari: https://www.starzsoft.com/iphone-issues/safari-crashes-after-strong-password-autofill-users-reported-after-ios-16-upgrade/ Please fix.

I encountered this problem on iOS 16.1. Here is the full log:

2022-10-28 20:05:24.862919+0300 App[7564:1878542] Keyboard cannot present view controllers (attempted to present <UIKeyboardHiddenViewController_Autofill: 0x15b513fe0>)
2022-10-28 20:05:24.889488+0300 App[7564:1878542] [EventDispatcher] Found no UIEvent for backing event of type: 11; contextId: 0xFCB9195B
2022-10-28 20:05:24.922096+0300 App[7564:1878542] Keyboard cannot present view controllers (attempted to present <UIKeyboardHiddenViewController_Autofill: 0x15b513fe0>)
2022-10-28 20:05:25.967909+0300 App[7564:1878542] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present modally a view controller <_SFAppAutoFillPasswordViewController: 0x15b513c40> that is already being presented by <UIKeyboardHiddenViewController_Autofill: 0x15b513fe0>.'*** First throw call stack:(0x188d35e88 0x18205f8d8 0x18b210898 0x18b2864e4 0x18af1a564 0x18b20f860 0x18b2331cc 0x18b1a0f58 0x18b19ffe8 0x18b1a1148 0x18b1a0d48 0x18bf1d334 0x18afba808 0x18afb9764 0x18afb8e84 0x18afb8f98 0x18a3ccfec 0x105ea605c 0x105eb6810 0x105eb6354 0x188dc66f8 0x188da8058 0x188daced4 0x103a0d138 0x102ac4a28 0x102ac4074 0x102a70810 0x102a6f4d4 0x102a6caa0 0x102b719e0 0x183143ab0 0x188e01f54 0x188e0e32c 0x188d92270 0x188da7ba8 0x188daced4 0x1c20ae368 0x18b28b3d0 0x18b28b034 0x103a0da70 0x1a7414960)libc++abi: terminating with uncaught exception of type NSExceptionterminating with uncaught exception of type NSException*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present modally a view controller <_SFAppAutoFillPasswordViewController: 0x15b513c40> that is already being presented by <UIKeyboardHiddenViewController_Autofill: 0x15b513fe0>.'(lldb) 

Same issue , I encountered in iOS 16.1.0 Here is detail logs.

Application tried to present modally a view controller <_SFAppAutoFillPasswordViewController: 0x103a28460> that is already being presented by <UIKeyboardHiddenViewController_Autofill: 0x103d49fd0>.


Fatal Exception: NSInvalidArgumentException
0 CoreFoundation         0x9e88 __exceptionPreprocess
1 libobjc.A.dylib        0x178d8 objc_exception_throw
2 UIKitCore           0x327898 -[UIViewController _presentViewController:withAnimationController:completion:]
3 UIKitCore           0x39d4e4 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke_2
4 UIKitCore           0x31564 +[UIView(Animation) performWithoutAnimation:]
5 UIKitCore           0x326860 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke
6 UIKitCore           0x34a1cc -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:]
7 UIKitCore           0x2b7f58 -[_UIViewControllerTransitionContext _runAlongsideCompletions]
8 UIKitCore           0x2b6fe8 -[_UIViewControllerTransitionContext completeTransition:]
9 UIKitCore           0x2b8148 -[UITransitionView notifyDidCompleteTransition:]
10 UIKitCore           0x2b7d48 -[UITransitionView _didCompleteTransition:]
11 UIKitCore           0x1034334 __UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK__
12 UIKitCore           0xd1808 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:]
13 UIKitCore           0xd0764 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:]
14 UIKitCore           0xcfe84 -[UIViewAnimationState animationDidStop:finished:]
15 UIKitCore           0xcff98 -[UIViewAnimationState animationDidStop:finished:]
16 QuartzCore           0x12fec CA::Layer::run_animation_callbacks(void*)
17 libdispatch.dylib       0x3fdc _dispatch_client_callout
18 libdispatch.dylib       0x127f4 _dispatch_main_queue_drain
19 libdispatch.dylib       0x12444 _dispatch_main_queue_callback_4CF
20 CoreFoundation         0x9a6f8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
21 CoreFoundation         0x7c058 __CFRunLoopRun
22 CoreFoundation         0x80ed4 CFRunLoopRunSpecific
23 GraphicsServices        0x1368 GSEventRunModal
24 UIKitCore           0x3a23d0 -[UIApplication _run]
25 UIKitCore           0x3a2034 UIApplicationMain

I got same problem!

Hey, is there any news on this? We're experiencing the same, it seems to crash for some users who click on that autofill capability.

Fatal Exception: NSInvalidArgumentException
Application tried to present modally a view controller <_SFAppAutoFillPasswordViewController: 0x104f28c10> that is already being presented by <UIKeyboardHiddenViewController_Autofill: 0x104f28fb0>.

Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x9e88 __exceptionPreprocess
1  libobjc.A.dylib                0x178d8 objc_exception_throw
2  UIKitCore                      0x327898 -[UIViewController _presentViewController:withAnimationController:completion:]
3  UIKitCore                      0x39d4e4 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke_2
4  UIKitCore                      0x31564 +[UIView(Animation) performWithoutAnimation:]
5  UIKitCore                      0x326860 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke
6  UIKitCore                      0x34a1cc -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:]
7  UIKitCore                      0x2b7f58 -[_UIViewControllerTransitionContext _runAlongsideCompletions]
8  UIKitCore                      0x2b6fe8 -[_UIViewControllerTransitionContext completeTransition:]
9  UIKitCore                      0x2b8148 -[UITransitionView notifyDidCompleteTransition:]
10 UIKitCore                      0x2b7d48 -[UITransitionView _didCompleteTransition:]
11 UIKitCore                      0x1034334 __UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK__
12 UIKitCore                      0xd1808 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:]
13 UIKitCore                      0xd0764 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:]
14 UIKitCore                      0xcfe84 -[UIViewAnimationState animationDidStop:finished:]
15 UIKitCore                      0xcff98 -[UIViewAnimationState animationDidStop:finished:]
16 QuartzCore                     0x12fec CA::Layer::run_animation_callbacks(void*)
17 libdispatch.dylib              0x3fdc _dispatch_client_callout
18 libdispatch.dylib              0x127f4 _dispatch_main_queue_drain
19 libdispatch.dylib              0x12444 _dispatch_main_queue_callback_4CF
20 CoreFoundation                 0x9a6f8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
21 CoreFoundation                 0x7c058 __CFRunLoopRun
22 CoreFoundation                 0x80ed4 CFRunLoopRunSpecific
23 GraphicsServices               0x1368 GSEventRunModal
24 UIKitCore                      0x3a23d0 -[UIApplication _run]
25 UIKitCore                      0x3a2034 UIApplicationMain

Our users reproduce this on iOS 16.1, 16.0, iPadOS 16.0 and iPadOS 15.6.1, 15.5

I got same problem! do you have a solution?

SIGABRT: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: Application tried to present modally a view controller <_SFAppAutoFillPasswordViewController: 0x11560aeb0> that is already being presented by <UIKeyboardHiddenViewController_Autofill: 0x113805400>. Native stack trace: 0 CoreFoundation 0x00000001b019de94 5CDC5D9A-E506-3740-B64E-BB30867B4F1B + 40596 1 libobjc.A.dylib 0x00000001a94c78d8 objc_exception_throw + 60 2 UIKitCore 0x00000001b2678898 179501B6-0FC2-344A-B969-B4E3961EBE10 + 3307672 3 UIKitCore 0x00000001b26ee4e4 179501B6-0FC2-344A-B969-B4E3961EBE10 + 3790052 4 UIKitCore 0x00000001b2382564 179501B6-0FC2-344A-B969-B4E3961EBE10 + 202084 5 UIKitCore 0x00000001b2677860 179501B6-0FC2-344A-B969-B4E3961EBE10 + 3303520 6 UIKitCore 0x00000001b269b1cc 179501B6-0FC2-344A-B969-B4E3961EBE10 + 3449292 7 UIKitCore 0x00000001b2608f58 179501B6-0FC2-344A-B969-B4E3961EBE10 + 2850648 8 UIKitCore 0x00000001b2607fe8 179501B6-0FC2-344A-B969-B4E3961EBE10 + 2846696 9 UIKitCore 0x00000001b2609148 179501B6-0FC2-344A-B969-B4E3961EBE10 + 2851144 10 UIKitCore 0x00000001b2608d48 179501B6-0FC2-344A-B969-B4E3961EBE10 + 2850120 11 UIKitCore 0x00000001b3385334 UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK + 36 12 UIKitCore 0x00000001b2422808 179501B6-0FC2-344A-B969-B4E3961EBE10 + 858120 13 UIKitCore 0x00000001b2421764 179501B6-0FC2-344A-B969-B4E3961EBE10 + 853860 14 UIKitCore 0x00000001b2420e84 179501B6-0FC2-344A-B969-B4E3961EBE10 + 851588 15 UIKitCore 0x00000001b2420f98 179501B6-0FC2-344A-B969-B4E3961EBE10 + 851864 16 QuartzCore 0x00000001b1834fec 046338BF-09CF-3414-BC93-31296B97EB2D + 77804 17 libdispatch.dylib 0x00000001b776dfdc FEA36690-A000-3C55-B700-9120B05AA69B + 16348 18 libdispatch.dylib 0x00000001b777c7f4 FEA36690-A000-3C55-B700-9120B05AA69B + 75764 19 libdispatch.dylib 0x00000001b777c444 _dispatch_main_queue_callback_4CF + 44 20 CoreFoundation 0x00000001b022e6f8 5CDC5D9A-E506-3740-B64E-BB30867B4F1B + 632568 21 CoreFoundation 0x00000001b0210058 5CDC5D9A-E506-3740-B64E-BB30867B4F1B + 507992 22 CoreFoundation 0x00000001b0214ed4 CFRunLoopRunSpecific + 612 23 GraphicsServices 0x00000001e9516368 GSEventRunModal + 164 24 UIKitCore 0x00000001b26f33d0 179501B6-0FC2-344A-B969-B4E3961EBE10 + 3810256 25 UIKitCore 0x00000001b26f3034 UIApplicationMain + 340 26 Mobile.iOS 0x0000000105e57508 xamarin_log + 6000 35 SampleMobile.iOS 0x0000000104d3fc54 ZN9GMSx_absl13base_internal10AtomicHookIPFvPKciS3_S3_S3_EE13DummyFunctionES3_iS3_S3_S3 + 268100 36 dyld 0x00000001ce87c960 CB3FF411-4762-34D2-86A4-ECA13F9FB6C3 + 88416 CrashVersion 10.10.00 (10.10.00)3 users6 reports

I too facing same issue please fix it

Our app is locked to portrait only, and I am able to reproduce this consistently when tapping that 'key' toolbar button on the keyboard and authenticating Face ID while the device is physically in a landscape orientation

I just want to confirm that we have the exact same problem (except our app is locked to landscape mode and it crashes when you open the password manager in portrait mode).

I can also confirm that this is an iOS 16 issue which does not occur in previous versions.

Allowing portrait and landscape mode solves the issue (although, of course, there are reasons for us to restrict it to landscape mode in the first place).

Hey Everyone,

We have the same problem! Is there a fix jet?

iOS/iPadOS 16.1 - 16.1.X (not iOS 16.0)

App is Portrait orientation only

Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x9e88 __exceptionPreprocess
1  libobjc.A.dylib                0x178d8 objc_exception_throw
2  UIKitCore                      0x327898 -[UIViewController _presentViewController:withAnimationController:completion:]
3  UIKitCore                      0x39d4e4 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke_2
4  UIKitCore                      0x31564 +[UIView(Animation) performWithoutAnimation:]
5  UIKitCore                      0x326860 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke
6  UIKitCore                      0x34a1cc -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:]
7  UIKitCore                      0x2b7f58 -[_UIViewControllerTransitionContext _runAlongsideCompletions]
8  UIKitCore                      0x2b6fe8 -[_UIViewControllerTransitionContext completeTransition:]
9  UIKitCore                      0x2b8148 -[UITransitionView notifyDidCompleteTransition:]
10 UIKitCore                      0x2b7d48 -[UITransitionView _didCompleteTransition:]
11 UIKitCore                      0x1034334 __UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK__
12 UIKitCore                      0xd1808 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:]
13 UIKitCore                      0xd0764 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:]
14 UIKitCore                      0xcfe84 -[UIViewAnimationState animationDidStop:finished:]
15 UIKitCore                      0xcff98 -[UIViewAnimationState animationDidStop:finished:]
16 QuartzCore                     0x12fec CA::Layer::run_animation_callbacks(void*)
17 libdispatch.dylib              0x3fdc _dispatch_client_callout
18 libdispatch.dylib              0x127f4 _dispatch_main_queue_drain
19 libdispatch.dylib              0x12444 _dispatch_main_queue_callback_4CF
20 CoreFoundation                 0x9a6f8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
21 CoreFoundation                 0x7c058 __CFRunLoopRun
22 CoreFoundation                 0x80ed4 CFRunLoopRunSpecific
23 GraphicsServices               0x1368 GSEventRunModal
24 UIKitCore                      0x3a23d0 -[UIApplication _run]
25 UIKitCore                      0x3a2034 UIApplicationMain

I have the same issue and I tried to use the real device to debug it, but it crash directly and didn't have any useful information. One more important is we are using WKWebView . Please help to fix it.

Hello,

We have the same problem on iPadOS 16.1 with an app locked in Landscape mode.

This is now the 4th bug affecting us on iPadOS 16.1 (all previous releases are working fine).

Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x9a84 __exceptionPreprocess
1  libobjc.A.dylib                0x15958 objc_exception_throw
2  UIKitCore                      0x301318 -[UIViewController _presentViewController:withAnimationController:completion:]
3  UIKitCore                      0x3709b0 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke_2
4  UIKitCore                      0x2e554 +[UIView(Animation) performWithoutAnimation:]
5  UIKitCore                      0x300220 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke
6  UIKitCore                      0x32231c -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:]
7  UIKitCore                      0x296ab8 -[_UIViewControllerTransitionContext _runAlongsideCompletions]
8  UIKitCore                      0x295bbc -[_UIViewControllerTransitionContext completeTransition:]
9  UIKitCore                      0x296c78 -[UITransitionView notifyDidCompleteTransition:]
10 UIKitCore                      0x2968c8 -[UITransitionView _didCompleteTransition:]
11 UIKitCore                      0xf33848 __UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK__
12 UIKitCore                      0xc78d4 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:]
13 UIKitCore                      0xc6888 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:]
14 UIKitCore                      0xc6098 -[UIViewAnimationState animationDidStop:finished:]
15 UIKitCore                      0xc6198 -[UIViewAnimationState animationDidStop:finished:]
16 QuartzCore                     0x1215c CA::Layer::run_animation_callbacks(void*)
17 libdispatch.dylib              0x647c8 _dispatch_client_callout
18 libdispatch.dylib              0x10e28 _dispatch_main_queue_drain
19 libdispatch.dylib              0x10a78 _dispatch_main_queue_callback_4CF$VARIANT$mp
20 CoreFoundation                 0x93848 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
21 CoreFoundation                 0x774d4 __CFRunLoopRun
22 CoreFoundation                 0x7bb7c CFRunLoopRunSpecific
23 GraphicsServices               0x1984 GSEventRunModal
24 UIKitCore                      0x3753c8 -[UIApplication _run]
25 UIKitCore                      0x375040 UIApplicationMain
26 SwiftUI                        0x192c64 OUTLINED_FUNCTION_895
27 SwiftUI                        0x109680 block_copy_helper.1
28 SwiftUI                        0xf5f7c OUTLINED_FUNCTION_901
29 [redacted]                     0x5c10 main (<compiler-generated>)
30 ???                            0x201510df0 (Missing)

Same thing in our apps: SIGABRT: Application tried to present modally a view controller <_SFAppAutoFillPasswordViewController: 0x10d006c20> that is already being presented by <UIKeyboardHiddenViewController_Autofill: 0x10d006fc0>

Also we got another possibly related crash: SIGABRT: Application tried to present modally a view controller <_SFExternalPasswordCredentialViewController: 0x111f062c0> that is already being presented by <UIKeyboardHiddenViewController_ExternalCredential: 0x10ff6c5b0>

Probaply the crash reason is the same, I guess the difference is whether a password is stored in keychain already or not

Happens for our app as well

iOS16 autofill causes crash while click "key button"(over keyboard)
 
 
Q