【发布时间】:2020-01-15 21:52:15
【问题描述】:
我最近收到了很多关于 Fabric 的崩溃报告。它说根据此处显示的堆栈跟踪,看起来触发 OpenGL 渲染的新调用发生在应用程序转换为或从背景状态转换时。如果您在应用程序委托的方法中设置 OpenGL 绘图,请确保您只在 applicationDidBecomeActive: 中这样做,而不是在 application:willFinishLaunchingWithOptions: 或 application:didFinishLaunchingWithOptions: 中这样做。
0 libGPUSupportMercury.dylib gpus_ReturnNotPermittedKillClient
1 AGXGLDriver (Missing)
2 libGPUSupportMercury.dylib gpusSubmitDataBuffers
3 AGXGLDriver (Missing)
4 WebCore WebCore::GraphicsContext3D::reshape(int, int) + 580
5 WebCore WebCore::WebGLRenderingContextBase::initializeNewContext() + 936
6 WebCore WebCore::WebGLRenderingContextBase::WebGLRenderingContextBase(WebCore::CanvasBase&, WTF::Ref<WebCore::GraphicsContext3D, WTF::DumbPtrTraits<WebCore::GraphicsContext3D> >&&, WebCore::GraphicsContext3DAttributes) + 660
7 WebCore WebCore::WebGLRenderingContext::create(WebCore::CanvasBase&, WTF::Ref<WebCore::GraphicsContext3D, WTF::DumbPtrTraits<WebCore::GraphicsContext3D> >&&, WebCore::GraphicsContext3DAttributes) + 84
8 WebCore WebCore::WebGLRenderingContextBase::create(WebCore::CanvasBase&, WebCore::GraphicsContext3DAttributes&, WTF::String const&) + 1416
9 WebCore WebCore::HTMLCanvasElement::getContext(JSC::ExecState&, WTF::String const&, WTF::Vector<JSC::Strong<JSC::Unknown>, 0ul, WTF::CrashOnOverflow, 16ul>&&) + 904
10 WebCore WebCore::jsHTMLCanvasElementPrototypeFunctionGetContext(JSC::ExecState*) + 424
11 JavaScriptCore llint_entry + 89612
12 JavaScriptCore llint_entry + 82980
13 JavaScriptCore llint_entry + 82980
14 JavaScriptCore llint_entry + 82980
15 JavaScriptCore llint_entry + 82980
16 JavaScriptCore llint_entry + 82980
17 JavaScriptCore vmEntryToJavaScript + 268
18 JavaScriptCore JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 424
19 JavaScriptCore JSC::profiledCall(JSC::ExecState*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&) + 200
20 WebCore WebCore::JSExecState::profiledCall(JSC::ExecState*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&) + 140
21 WebCore WebCore::ScheduledAction::executeFunctionInContext(JSC::JSGlobalObject*, JSC::JSValue, WebCore::ScriptExecutionContext&) + 424
22 WebCore WebCore::ScheduledAction::execute(WebCore::Document&) + 144
23 WebCore WebCore::DOMTimer::fired() + 816
24 WebCore WebCore::ThreadTimers::sharedTimerFiredInternal() + 216
25 WebCore WebCore::timerFired(__CFRunLoopTimer*, void*) + 28
26 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
27 CoreFoundation __CFRunLoopDoTimer + 864
28 CoreFoundation __CFRunLoopDoTimers + 248
29 CoreFoundation __CFRunLoopRun + 1844
30 CoreFoundation CFRunLoopRunSpecific + 436
31 WebCore RunWebThread(void*) + 600
32 libsystem_pthread.dylib _pthread_body + 128
33 libsystem_pthread.dylib _pthread_start + 44
34 libsystem_pthread.dylib thread_start + 4
如何找到代码崩溃的地方?
【问题讨论】:
标签: ios objective-c opengl-es google-fabric