ios15、WKWebView、UITextField 崩溃
ios15,WKWebView,UITextField crash
iOS15系统:
1.click UITextField 崩溃
2.Click第二层WebView崩溃
日志:
- 事件标识符:4F61CB1C-53DB-4EFD-B38F-93B973BE5CCC
CrashReporter 密钥:6fa29e4a6b7c708a032c474dff75ab04a89a6a5e 硬件
型号:iPhone12,5 进程:AppName [2986] 路径:
/private/var/containers/Bundle/Application/***/AppName.app/AppName
标识符:com.***** 版本:8.0.0 (1) 代码类型:ARM-64(本机)
角色:前台父进程:launchd [1] 联盟:com.*****
[1262] Date/Time: 2022-01-28 16:14:58.8262 +0800 启动时间:
2022-01-28 16:14:41.9927 +0800 OS 版本:iPhone OS 15.2.1 (19C63)
发布类型:用户基带版本:3.01.02 报告版本:104
异常类型:EXC_BREAKPOINT (SIGTRAP) 异常代码:
0x0000000000000001, 0x00000001812e01ec 异常说明:
EXC_CORPSE_NOTIFY 终止原因:SIGNAL 5 Trace/BPT 陷阱:5
终止进程:888 处理程序 [2986] 由线程触发:0 线程
0 名称:调度队列:com.apple.main-thread 线程 0 崩溃:0
CoreFoundation 0x1812e01ec __NSI0 + 748 1 CoreFoundation 0x181333ad4
-[NSInvocation getArgument:atIndex:] + 148 2 Foundation 0x182b4f0dc _NSGetValueWithMethod + 220 3 Foundation 0x182b0ab2c -[NSObject(NSKeyValueCoding) valueForKey:] + 320 4 AccessibilityUtilities 0x196f8787c
__57-[NSObject(UIAccessibilitySafeCategory) safeValueForKey:]_block_invoke + 40 5 AccessibilityUtilities
0x196f87640 -[NSObject(UIAccessibilitySafeCategory)
_accessibilityPerformSafeValueKeyBlock:withKey:onClass:] + 96 6 AccessibilityUtilities 0x196f879a4
-[NSObject(UIAccessibilitySafeCategory) safeValueForKey:] + 240 7 UIKit 0x1f2042e38 -[UIViewControllerAccessibility
_accessibilityLoadAccessibilityInformation] + 144 8 UIAccessibility 0x198c430e0 -[UIAccessibilityInformationLoader
_loadAccessibilityInformationOnMainThread:] + 828 9 Foundation 0x182b15780 __NSFireTimer + 104 10 CoreFoundation 0x18136e318
[CFRUN IS_CALLING_OUT_TO A_TIMER_CALLBACK_FUNCTION] + 32 11
CoreFoundation 0x1812f2cf0 __CFRunLoopDoTimer + 1076 12
CoreFoundation 0x1812ed4ec __CFRunLoopDoTimers + 328 13
CoreFoundation 0x1812cbd08 __CFRunLoopRun + 1944 14 CoreFoundation
0x1812df468 CFRunLoopRunSpecific + 600 15 GraphicsServices
0x19ce6a38c GSEventRunModal + 164 16 UIKitCore 0x183c81088
-[UIApplication_run] + 1100 17 UIKitCore 0x1839ff958 UIApplicationMain + 2092 18 AppName 0x10060fed0 main + 352 19 dyld
0x105151aa4 开始 + 520 .......
问题在avoidCrash中,
[AvoidCrash makeAllEffective];改成[AvoidCrash becomeEffective];不再全局捕获
发现崩溃在avoidCrashMethodSignatureForSelector:
这个方法里转发底层方法_navigationControllerContentInsetAdjustment时候崩溃
iOS15系统: 1.click UITextField 崩溃 2.Click第二层WebView崩溃 日志:
- 事件标识符:4F61CB1C-53DB-4EFD-B38F-93B973BE5CCC CrashReporter 密钥:6fa29e4a6b7c708a032c474dff75ab04a89a6a5e 硬件 型号:iPhone12,5 进程:AppName [2986] 路径: /private/var/containers/Bundle/Application/***/AppName.app/AppName 标识符:com.***** 版本:8.0.0 (1) 代码类型:ARM-64(本机) 角色:前台父进程:launchd [1] 联盟:com.***** [1262] Date/Time: 2022-01-28 16:14:58.8262 +0800 启动时间: 2022-01-28 16:14:41.9927 +0800 OS 版本:iPhone OS 15.2.1 (19C63) 发布类型:用户基带版本:3.01.02 报告版本:104 异常类型:EXC_BREAKPOINT (SIGTRAP) 异常代码: 0x0000000000000001, 0x00000001812e01ec 异常说明: EXC_CORPSE_NOTIFY 终止原因:SIGNAL 5 Trace/BPT 陷阱:5 终止进程:888 处理程序 [2986] 由线程触发:0 线程 0 名称:调度队列:com.apple.main-thread 线程 0 崩溃:0 CoreFoundation 0x1812e01ec __NSI0 + 748 1 CoreFoundation 0x181333ad4 -[NSInvocation getArgument:atIndex:] + 148 2 Foundation 0x182b4f0dc _NSGetValueWithMethod + 220 3 Foundation 0x182b0ab2c -[NSObject(NSKeyValueCoding) valueForKey:] + 320 4 AccessibilityUtilities 0x196f8787c __57-[NSObject(UIAccessibilitySafeCategory) safeValueForKey:]_block_invoke + 40 5 AccessibilityUtilities 0x196f87640 -[NSObject(UIAccessibilitySafeCategory) _accessibilityPerformSafeValueKeyBlock:withKey:onClass:] + 96 6 AccessibilityUtilities 0x196f879a4 -[NSObject(UIAccessibilitySafeCategory) safeValueForKey:] + 240 7 UIKit 0x1f2042e38 -[UIViewControllerAccessibility _accessibilityLoadAccessibilityInformation] + 144 8 UIAccessibility 0x198c430e0 -[UIAccessibilityInformationLoader _loadAccessibilityInformationOnMainThread:] + 828 9 Foundation 0x182b15780 __NSFireTimer + 104 10 CoreFoundation 0x18136e318 [CFRUN IS_CALLING_OUT_TO A_TIMER_CALLBACK_FUNCTION] + 32 11 CoreFoundation 0x1812f2cf0 __CFRunLoopDoTimer + 1076 12 CoreFoundation 0x1812ed4ec __CFRunLoopDoTimers + 328 13 CoreFoundation 0x1812cbd08 __CFRunLoopRun + 1944 14 CoreFoundation 0x1812df468 CFRunLoopRunSpecific + 600 15 GraphicsServices 0x19ce6a38c GSEventRunModal + 164 16 UIKitCore 0x183c81088 -[UIApplication_run] + 1100 17 UIKitCore 0x1839ff958 UIApplicationMain + 2092 18 AppName 0x10060fed0 main + 352 19 dyld 0x105151aa4 开始 + 520 .......
问题在avoidCrash中, [AvoidCrash makeAllEffective];改成[AvoidCrash becomeEffective];不再全局捕获
发现崩溃在avoidCrashMethodSignatureForSelector: 这个方法里转发底层方法_navigationControllerContentInsetAdjustment时候崩溃