Описание
Кажется, когда я запускаю длинное нажатие WKWebView для предварительного просмотра изображения. Я знаю, что это вызвано делением числа на ноль. Может быть, это ошибка WebKit самостоятельно. Но что мне делать с этим сбоем?
Cra sh причина:
CALayerInvalidGeometry
CALayer bounds contains NaN: [0 nan; 5.33459e-314 2.79601e-314]. Layer: <CALayer:0x2805b7960; position = CGPoint (3.93407e-314 2.16644e-314); bounds = CGRect (0 0; 0 0); delegate = <_UIPreviewPlatterView: 0x151321450; frame = (3.93407e-314 2.16644e-314; 0 0); gestureRecognizers = <NSArray: 0x280bc9230>; layer = <CALayer: 0x2805b7960>>; sublayers = (<CALayer: 0x2805b1400>, <CALayer: 0x2805b76c0>, <CALayer: 0x2805b7820>); opaque = YES; allowsGroupOpacity = YES; >
путь просмотра страницы
903-24 14:39:42.437 [ UIViewController ] WillAppear
1003-24 14:39:54.138 [ UIViewController ] WillAppear
1103-24 14:39:59.561 [ WKImagePreviewViewController ] WillAppear
1203-24 14:40:06.478 [ WKImagePreviewViewController ] WillAppear
1303-24 14:40:36.778 [ WKImagePreviewViewController ] WillAppear
1403-24 14:40:39.983 [ WKImagePreviewViewController ] WillAppear
1503-24 14:40:47.006 UIApplication WillResignActive
1603-24 14:40:48.157 UIApplication DidEnterBackground
1703-24 14:45:00.297 UIApplication WillEnterForeground
1803-24 14:45:00.591 UIApplication DidBecomeActive
1903-24 14:45:04.347 [ WKImagePreviewViewController ] WillAppear
2003-24 14:45:06.210 [ WKImagePreviewViewController ] WillAppear
CrashLog
0 CoreFoundation ___exceptionPreprocess + 220
1 libobjc.A.dylib objc_exception_throw + 56
2 CoreFoundation -[NSCache init]
3 QuartzCore 0x0000000198a4d000 + 1424420
4 QuartzCore 0x0000000198a4d000 + 1357916
5 UIKitCore -[UIView(Geometry) setBounds:] + 516
6 UIKitCore -[_UIPreviewPlatterPresentationAnimator prepareTransitionFromView:toView:containerView:] + 1296
7 UIKitCore ___87-[_UIRapidClickPresentationAssistant _performPresentationAnimationsFromViewController:]_block_invoke + 132
8 UIKitCore +[UIView(Animation) performWithoutAnimation:] + 96
9 UIKitCore -[_UIRapidClickPresentationAssistant _performPresentationAnimationsFromViewController:] + 388
10 UIKitCore -[_UIRapidClickPresentationAssistant presentFromSourcePreview:lifecycleCompletion:] + 552
11 UIKitCore ___55-[_UIClickPresentationInteraction _performPresentation]_block_invoke_2 + 140
12 UIKitCore +[UIViewController _performWithoutDeferringTransitionsAllowingAnimation:actions:] + 168
13 UIKitCore ___55-[_UIClickPresentationInteraction _performPresentation]_block_invoke.190 + 124
14 UIKitCore -[_UIClickPresentationInteraction _performPresentation] + 860
15 UIKitCore ___55-[_UIClickPresentationInteraction _prepareStateMachine]_block_invoke_4 + 204
16 UIKitCore -[_UIStateMachine handleEvent:withContext:] + 244
17 UIKitCore -[_UIClickPresentationInteraction clickInteractionDidClickUp:] + 56
18 UIKitCore -[_UIClickInteraction clickDriver:didPerformEvent:] + 320
19 UIKitCore ___58-[_UILongPressClickInteractionDriver _prepareStateMachine]_block_invoke_2 + 68
20 UIKitCore -[_UIStateMachine handleEvent:withContext:] + 412
21 UIKitCore -[_UILongPressClickInteractionDriver _updateForActiveGestureRecognizer] + 668
22 UIKitCore -[_UILongPressClickInteractionDriver _handleGestureRecognizer:] + 392
23 UIKitCore -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:] + 48
24 UIKitCore __UIGestureRecognizerSendTargetActions + 124
25 UIKitCore __UIGestureRecognizerSendActions + 352
26 UIKitCore -[UIGestureRecognizer _updateGestureForActiveEvents] + 652
27 UIKitCore __UIGestureEnvironmentUpdate + 2108
28 UIKitCore -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] + 372
29 UIKitCore -[UIGestureEnvironment _updateForEvent:window:] + 204
30 UIKitCore -[UIWindow sendEvent:] + 3324
31 UIKitCore -[UIApplication sendEvent:] + 344
32 UIKitCore ___dispatchPreprocessedEventFromEventQueue + 5880
33 UIKitCore ___handleEventQueueInternal + 4924
34 UIKitCore ___handleHIDEventFetcherDrain + 108
35 CoreFoundation ___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
36 CoreFoundation ___CFRunLoopDoSource0 + 80
37 CoreFoundation ___CFRunLoopDoSources0 + 180
38 CoreFoundation ___CFRunLoopRun + 1080
39 CoreFoundation CFRunLoopRunSpecific + 464
40 GraphicsServices GSEventRunModal + 104
41 UIKitCore UIApplicationMain + 1936
42 FYDriverNew main (<compiler-generated>:0)
43 libdyld.dylib _start + 4