push a wkwebview vc, long press and wake the menu, then pop the webview vc;then anonther push wkwebview vc ,long press again,then it’ll crash。
here is the crash stack
thread #1, queue = 'com.apple.main-thread', stop reason = EXCBADACCESS (code=1, address=0x20)
frame #2: 0x00000001b095be7c UIKitCore-[UIInputResponderController setKeyWindowSceneInputViews:animationStyle:] + 636 frame #3: 0x00000001b095bbd8 UIKitCore-[UIInputResponderController setInputViews:animationStyle:] + 216
frame #4: 0x00000001b095d1f8 UIKitCore-[UIInputResponderController setInputViews:animated:] + 100 frame #5: 0x00000001b095d268 UIKitCore-[UIInputResponderController setInputViews:] + 80
frame #6: 0x00000001b095aa3c UIKitCore__74-[UIInputResponderController _reloadInputViewsForKeyWindowSceneResponder:]_block_invoke.612 + 40 frame #7: 0x00000001b095a5a8 UIKitCore-[UIInputResponderController _reloadInputViewsForKeyWindowSceneResponder:] + 3708
frame #8: 0x00000001b095970c UIKitCore-[UIInputResponderController _reloadInputViewsForResponder:] + 164 frame #9: 0x00000001b0f1e5e0 UIKitCore-[UIResponder(UIResponderInputViewAdditions) reloadInputViews] + 132
frame #10: 0x00000001b0f196bc UIKitCore-[UIResponder becomeFirstResponder] + 780 frame #11: 0x00000001b13f0fcc UIKitCore-[UIView(Hierarchy) becomeFirstResponder] + 164
frame #12: 0x00000001b4e74c7c WebKit-[WKContentView(WKInteraction) becomeFirstResponderForWebView] + 152 frame #13: 0x00000001b50e57e4 WebKit-[WKWebView(WKViewInternalIOS) becomeFirstResponder] + 148
frame #14: 0x00000001b11ab1bc UIKitCore-[UITextInteractionAssistant(UITextInteractionAssistant_Internal) setFirstResponderIfNecessaryActivatingSelection:] + 196 frame #15: 0x00000001b0936844 UIKitCore-[UITextLoupeTouchBehavior textLoupeInteraction:gestureChangedWithState:location:translation:velocity:modifierFlags:shouldCancel:] + 596
frame #16: 0x00000001b1184ec8 UIKitCore-[UITextLoupeInteraction loupeGestureWithState:location:translation:velocity:modifierFlags:shouldCancel:] + 164 frame #17: 0x00000001b11846b8 UIKitCore-[UITextLoupeInteraction loupeGesture:] + 648
frame #18: 0x00000001b0a53144 UIKitCore-[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:] + 56 frame #19: 0x00000001b0a5c8c0 UIKitCore_UIGestureRecognizerSendTargetActions + 116
frame #20: 0x00000001b0a59560 UIKitCore_UIGestureRecognizerSendActions + 284 frame #21: 0x00000001b0a58ae0 UIKitCore-[UIGestureRecognizer _updateGestureForActiveEvents] + 636
frame #22: 0x00000001b0a4ce2c UIKitCore_UIGestureEnvironmentUpdate + 2000 frame #23: 0x00000001ac72a30c CoreFoundationCFRUNLOOPISCALLINGOUTTOANOBSERVERCALLBACKFUNCTION + 36
frame #24: 0x00000001ac724aa4 CoreFoundation__CFRunLoopDoObservers + 520 frame #25: 0x00000001ac724fbc CoreFoundation__CFRunLoopRun + 1060
frame #26: 0x00000001ac724788 CoreFoundationCFRunLoopRunSpecific + 564 frame #27: 0x00000001b85ff820 GraphicsServicesGSEventRunModal + 164
frame #28: 0x00000001b0ee31d8 UIKitCore-[UIApplication _run] + 1072 frame #29: 0x00000001b0ee90b8 UIKitCoreUIApplicationMain + 1876
- frame #30: 0x0000000102e21c6c testwebviewmain(argc=1, argv=0x000000016cfe7880) at main.m:18:12