ios - 崩溃 : WebThread

标签 ios swift wkwebview

我收到了很多关于此 WebThread 崩溃的 Crashlytics 报告,主要针对 iOS 12 (~96%) 上的 iPad (~80%)。除了计时器/计时问题之外,不确定它究竟意味着什么 - 有什么想法吗?我有 Amazon Ads、Google AdMob 并在主应用程序中使用 WkWebView。

Crashed: WebThread
0  libGPUSupportMercury.dylib     0x1d0eb5fe4 gpus_ReturnNotPermittedKillClient
1  AGXGLDriver                    0x1d54e5ed8 (Missing)
2  libGPUSupportMercury.dylib     0x1d0eb6fac gpusSubmitDataBuffers
3  AGXGLDriver                    0x1d54e7404 (Missing)
4  WebCore                        0x1beb39e30 WebCore::GraphicsContext3D::reshape(int, int) + 580
5  WebCore                        0x1bf001758 WebCore::WebGLRenderingContextBase::initializeNewContext() + 936
6  WebCore                        0x1bf001048 WebCore::WebGLRenderingContextBase::WebGLRenderingContextBase(WebCore::CanvasBase&, WTF::Ref<WebCore::GraphicsContext3D, WTF::DumbPtrTraits<WebCore::GraphicsContext3D> >&&, WebCore::GraphicsContext3DAttributes) + 640
7  WebCore                        0x1beff7c3c WebCore::WebGLRenderingContext::create(WebCore::CanvasBase&, WTF::Ref<WebCore::GraphicsContext3D, WTF::DumbPtrTraits<WebCore::GraphicsContext3D> >&&, WebCore::GraphicsContext3DAttributes) + 84
8  WebCore                        0x1bf0003fc WebCore::WebGLRenderingContextBase::create(WebCore::CanvasBase&, WebCore::GraphicsContext3DAttributes&, WTF::String const&) + 1416
9  WebCore                        0x1be6cfd6c WebCore::HTMLCanvasElement::getContext(JSC::ExecState&, WTF::String const&, WTF::Vector<JSC::Strong<JSC::Unknown>, 0ul, WTF::CrashOnOverflow, 16ul>&&) + 904
10 WebCore                        0x1bdc59194 WebCore::jsHTMLCanvasElementPrototypeFunctionGetContext(JSC::ExecState*) + 416
11 JavaScriptCore                 0x1bc33073c llint_entry + 89260
12 JavaScriptCore                 0x1bc32ecb4 llint_entry + 82468
13 JavaScriptCore                 0x1bc32ed54 llint_entry + 82628
14 JavaScriptCore                 0x1bc32ed54 llint_entry + 82628
15 JavaScriptCore                 0x1bc31a7fc vmEntryToJavaScript + 268
16 JavaScriptCore                 0x1bc84b32c JSC::Interpreter::executeProgram(JSC::SourceCode const&, JSC::ExecState*, JSC::JSObject*) + 9816
17 JavaScriptCore                 0x1bca546dc JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&, JSC::JSValue, WTF::NakedPtr<JSC::Exception>&) + 320
18 WebCore                        0x1be30d4bc WebCore::JSExecState::profiledEvaluate(JSC::ExecState*, JSC::ProfilingReason, JSC::SourceCode const&, JSC::JSValue, WTF::NakedPtr<JSC::Exception>&) + 108
19 WebCore                        0x1be30d2f8 WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&, WebCore::DOMWrapperWorld&, WebCore::ExceptionDetails*) + 232
20 WebCore                        0x1be5af98c WebCore::ScriptElement::executeClassicScript(WebCore::ScriptSourceCode const&) + 640
21 WebCore                        0x1be5774c8 WebCore::LoadableClassicScript::execute(WebCore::ScriptElement&) + 140
22 WebCore                        0x1be5afc30 WebCore::ScriptElement::executeScriptAndDispatchEvent(WebCore::LoadableScript&) + 224
23 WebCore                        0x1be5b2f40 WebCore::ScriptRunner::timerFired() + 508
24 WebCore                        0x1bea5a20c WebCore::ThreadTimers::sharedTimerFiredInternal() + 216
25 WebCore                        0x1bea7a258 WebCore::timerFired(__CFRunLoopTimer*, void*) + 28
26 CoreFoundation                 0x1b4f92650 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
27 CoreFoundation                 0x1b4f92380 __CFRunLoopDoTimer + 864
28 CoreFoundation                 0x1b4f91bb4 __CFRunLoopDoTimers + 248
29 CoreFoundation                 0x1b4f8cb04 __CFRunLoopRun + 1844
30 CoreFoundation                 0x1b4f8c0b0 CFRunLoopRunSpecific + 436
31 WebCore                        0x1bdc1cbd8 RunWebThread(void*) + 600
32 libsystem_pthread.dylib        0x1b4c1f2c0 _pthread_body + 128
33 libsystem_pthread.dylib        0x1b4c1f220 _pthread_start + 44
34 libsystem_pthread.dylib        0x1b4c22cdc thread_start + 4

最佳答案

https://groups.google.com/forum/#!msg/google-admob-ads-sdk/MOaVw22zUgY/sOCFi3TuBgAJ有一个解决方法,但已在 Admob iOS 7.45.0 中修复 https://developers.google.com/admob/ios/rel-notes

Fixed a crash that occurs on rare occasions when dismissing video ads.

关于ios - 崩溃 : WebThread,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57340450/

相关文章:

iphone - 为什么后台任务10分钟后结束

ios - 在 ModuleName-Swift.h 中找不到 Xcode Pods 函数

javascript - swift - 通过单击 UIWebView 中的按钮打开 ViewController

ios - 左栏按钮项目对齐 - Swift

swift - WKWebView 无法通过键盘交互

javascript - Angular 4 + Http 在 Cordova 中未进行垃圾收集

ios - 如何使用自动引用计数(ARC)?

ios - UINavigationController 透明度?

ios - ResearchKit:验证电子邮件

ios - WKWebview 上的 ApplePay