Posts

Post not yet marked as solved
0 Replies
1k Views
Hi, In iPhone Xs max ios 14.5 beta ,My app crashed when using WKWebView . I create a Demo project, but still crash. Objective-C** First throw call stack: ( 0  CoreFoundation           0x00007fff20422f9b __exceptionPreprocess + 242 1  libobjc.A.dylib           0x00007fff20193ff5 objc_exception_throw + 48 2  CoreFoundation           0x00007fff20422e79 -[NSException initWithCoder:] + 0 3  UIKitCore              0x00007fff24296064 __62+[UITraitCollection traitCollectionWithTraitsFromCollections:]_block_invoke + 144 4  CoreFoundation           0x00007fff20393f1f __NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 7 5  CoreFoundation           0x00007fff20444779 -[__NSArrayI enumerateObjectsWithOptions:usingBlock:] + 453 6  UIKitCore              0x00007fff24295f05 +[UITraitCollection traitCollectionWithTraitsFromCollections:] + 324 7  WebCore               0x00007fff297b6ac5 _ZN7WebCore27LocalCurrentTraitCollectionC2Ebb + 261 8  WebCore               0x00007fff298fd584 _ZN7WebCore14RenderThemeIOS24cssValueToSystemColorMapEv + 100 9  WebKit               0x00007fff28840f25 _ZN6WebKit14WebProcessPool28platformInitializeWebProcessERKNS_15WebProcessProxyERNS_28WebProcessCreationParametersE + 2285 10 WebKit               0x00007fff288e605a _ZN6WebKit14WebProcessPool23initializeNewWebProcessERNS_15WebProcessProxyEPNS_16WebsiteDataStoreENS1_11IsPrewarmedE + 1436 11 WebKit               0x00007fff288e68a9 _ZN6WebKit14WebProcessPool19createNewWebProcessEPNS_16WebsiteDataStoreENS_15WebProcessProxy11IsPrewarmedE + 121 12 WebKit               0x00007fff288e7eee _ZN6WebKit14WebProcessPool27processForRegistrableDomainERNS_16WebsiteDataStoreEPNS_12WebPageProxyERKN7WebCore17RegistrableDomainE + 1852 13 WebKit               0x00007fff288e8229 _ZN6WebKit14WebProcessPool13createWebPageERNS_10PageClientEON3***3RefIN3API17PageConfigurationENS3_12RawPtrTraitsIS6_EEEE + 277 14 WebKit               0x00007fff28c1724a -[WKContentView _commonInitializationWithProcessPool:configuration:] + 49 15 WebKit               0x00007fff28c17c81 -[WKContentView initWithFrame:processPool:configuration:webView:] + 195 16 WebKit               0x00007fff287a13b1 -[WKWebView _initializeWithConfiguration:] + 1271 17 WebKit               0x00007fff287a27ca -[WKWebView initWithFrame:configuration:] + 98 18 WebViewDemo             0x000000010e08f6db -[ViewController viewDidLoad] + 507 19 UIKitCore              0x00007fff23f70610 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 88 20 UIKitCore              0x00007fff23f74fb3 -[UIViewController loadViewIfRequired] + 1084 21 UIKitCore              0x00007fff23f7539d -[UIViewController view] + 27 22 UIKitCore              0x00007fff246ed43b -[UIWindow addRootViewControllerViewIfPossible] + 313 23 UIKitCore              0x00007fff246ecb2a -[UIWindow _updateLayerOrderingAndSetLayerHidden:actionBlock:] + 219 24 UIKitCore              0x00007fff246edaed -[UIWindow _setHidden:forced:] + 362 25 UIKitCore              0x00007fff24700b6e -[UIWindow _mainQueue_makeKeyAndVisible] + 42 26 UIKitCore              0x00007fff2493ee15 -[UIWindowScene _makeKeyAndVisibleIfNeeded] + 202 27 UIKitCore              0x00007fff23aff67c +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] + 1671 28 UIKitCore              0x00007fff246b034d -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 1114 29 UIKitCore              0x00007fff246b067c -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 289 30 UIKitCore              0x00007fff241943c0 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 358 31 FrontBoardServices         0x00007fff259fe4bb -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 398 32 FrontBoardServices         0x00007fff25a27015 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.176 + 102 33 FrontBoardServices         0x00007fff25a0bfc2 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 209 34 FrontBoardServices         0x00007fff25a26ce8 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 352 35 libdispatch.dylib          0x000000010f9087da _dispatch_client_callout + 8 36 libdispatch.dylib          0x000000010f90b6e2 _dispatch_block_invoke_direct + 295 37 FrontBoardServices         0x00007fff25a4ca48 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30 38 FrontBoardServices         0x00007fff25a4c72e -[FBSSerialQueue _targetQueue_performNextIfPossible] + 433 39 FrontBoardServices         0x00007fff25a4cbf3 -[FBSSerialQueue _performNextFromRunLoopSource] + 22 40 CoreFoundation           0x00007fff20390f4e __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 41 CoreFoundation           0x00007fff20390e46 __CFRunLoopDoSource0 + 180 42 CoreFoundation           0x00007fff20390370 __CFRunLoopDoSources0 + 340 43 CoreFoundation           0x00007fff2038aa67 __CFRunLoopRun + 875 44 CoreFoundation           0x00007fff2038a217 CFRunLoopRunSpecific + 567 45 GraphicsServices          0x00007fff2bb3cd85 GSEventRunModal + 139 46 UIKitCore              0x00007fff246aea33 -[UIApplication _run] + 912 47 UIKitCore              0x00007fff246b38f0 UIApplicationMain + 101 48 WebViewDemo             0x000000010e08fb7a main + 122 49 libdyld.dylib            0x00007fff2025aaf9 start + 1
Posted
by zhang239.
Last updated
.