与UIWebView崩溃

Mik*_*nin 5 uiwebview xamarin.ios uikeyboard ios

我有一个包装UIWebView的Xamarin.iOS应用程序.不幸的是,我在Firebase控制台中收到大量崩溃事件; 它只发生在iOS 10的iPhone上,iPad没有这个问题.

我个人无法重现崩溃,所以我只有堆栈跟踪:

EXC_BAD_ACCESS / KERN_INVALID_ADDRESS
1   libobjc.A.dylib     objc_msgSend + 115024
2   UIKit               -[_UIKeyboardTextSelectionController selectTextWithGranularity:atPoint:executionContext:] + 5209476
3   UIKit               -[_UIKeyboardBasedNonEditableTextSelectionGestureController oneFingerForcePan:] + 5624368
4   UIKit               -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:] + 6166732
5   UIKit               _UIGestureRecognizerSendTargetActions + 6181120
6   UIKit               _UIGestureRecognizerSendActions + 1700016
7   UIKit               -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 266176
8   UIKit               _UIGestureEnvironmentUpdate + 6116260
9   UIKit               -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] + 6115188
10  UIKit               -[UIGestureEnvironment _updateGesturesForEvent:window:] + 6111776
11  UIKit               -[UIWindow sendEvent:] + 258892
12  UIKit               -[UIApplication sendEvent:] + 65404
13  UIKit               __dispatchPreprocessedEventFromEventQueue + 8428060
14  UIKit               __handleEventQueue + 8405368
15  UIKit               __handleHIDEventFetcherDrain + 8406436
16  CoreFoundation      __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 898088
17  CoreFoundation      __CFRunLoopDoSources0 + 896408
18  CoreFoundation      __CFRunLoopRun + 887204
19  CoreFoundation      CFRunLoopRunSpecific + 36256
20  GraphicsServices    GSEventRunModal + 49264
21  UIKit               UIApplicationMain + 478360
22  XamarinApp.iOS      (wrapper_managed-to-native)_UIKit.UIApplication:UIApplicationMain (<unknown>:1)
23  XamarinApp.iOS      Main (UIApplication.cs:79)
24  XamarinApp.iOS      XamarinApp_iOS_XamarinApp_iOS_Application_Main_string__ + 39656
25  XamarinApp.iOS      wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 634656
26  Mono                4316120312 + 378104
27  Mono                4316622816 + 880608
28  Mono                4316635652 + 893444
29  Mono                4316004656 + 262448
30  XamarinApp.iOS      xamarin_main (monotouch-main.m:480)
31  XamarinApp.iOS      main (main.m:131)
32  libdyld.dylib       start + 17816
Run Code Online (Sandbox Code Playgroud)

任何帮助将受到高度赞赏.迁移到WKWebView对我来说不是一个选项,因为该应用程序使用cookie工作了很多.