Closed Bug 849736 Opened 13 years ago Closed 13 years ago

[System] Some device stuck at boot screen while drawing canvas during device start up

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: iliu, Assigned: ying.xu)

Details

Attachments

(1 file)

Attached image stack in boot screen —
*** This bug was initially created as a clone of Bug 849158 ***
The issue is happened on partner's platform. But we will have a solution by Bug 849158. Although we could fix it and make an improvement in Gaia side, the issue still exists in the specific device. I suggest that platform devs could see the issue.
Summary: [System] Some device stack in boot screen while drawing canvas during device start up → [System] Some device stuck at boot screen while drawing canvas during device start up
the direct reason causing this bug is hehe: if (shadowManager) { ShadowLayerForwarder* lf = lm->AsShadowForwarder(); if (!lf) { delete lm; mCompositorChild = nullptr; return; } lf->SetShadowManager(shadowManager); lf->SetParentBackendType(parentBackend); lf->SetMaxTextureSize(maxTextureSize); mLayerManager = lm; } else { // We don't currently want to support not having a LayersChild NS_RUNTIMEABORT("failed to construct LayersChild"); //here delete lm; mCompositorChild = nullptr; } } stack is listed as below: #0 0x417184ac in mozalloc_abort (msg=<value optimized out>) at /home/apusr/b2g/B2G/gecko/memory/mozalloc/mozalloc_abort.cpp:30 aLine=880) at /home/apusr/b2g/B2G/gecko/xpcom/base/nsDebugImpl.cpp:423 #2 NS_DebugBreak_P (aSeverity=<value optimized out>, aStr=<value optimized out>, aExpr=<value optimized out>, aFile=<value optimized out>, aLine=880) at /home/apusr/b2g/B2G/gecko/xpcom/base/nsDebugImpl.cpp:380 #3 0x410ba758 in nsBaseWidget::CreateCompositor (this=0x47f44400) at /home/apusr/b2g/B2G/gecko/widget/xpwidgets/nsBaseWidget.cpp:880 #4 0x4109c5fa in nsWindow::GetLayerManager (this=0x4P7f44400, aShadowManager=<value optimized out>, aBackendHint=<value optimized out>, aPersistence=<value optimized out>, aAllowRetaining=0x0) at /home/apusr/b2g/B2G/gecko/widget/gonk/nsWindow.cpp:565 #5 0x40bf748c in nsIWidget::GetLayerManager (aDoc=<value optimized out>, aRequirePersistent=true, aAllowRetaining=<value optimized out>) at ../../../dist/include/nsIWidget.h:1071 #6 LayerManagerForDocumentInternal (aDoc=<value optimized out>, aRequirePersistent=true, aAllowRetaining=<value optimized out>) at /home/apusr/b2g/B2G/gecko/content/base/src/nsContentUtils.cpp:6609 #7 0x40bf74a4 in nsContentUtils::PersistentLayerManagerForDocument (aDoc=0x9f, aAllowRetaining=0x7b) at /home/apusr/b2g/B2G/gecko/content/base/src/nsContentUtils.cpp:6625 #8 0x40c69b22 in nsCanvasRenderingContext2DAzure::EnsureTarget (this=0x48beb400) at /home/apusr/b2g/B2G/gecko/content/canvas/src/nsCanvasRenderingContext2DAzure.cpp:854 #9 0x40c6b8a4 in nsCanvasRenderingContext2DAzure::DrawImage (this=0x9f, image=..., sx=6.0770074438473325e-322, sy=0, sw=16, sh=16, dx=0, dy=0, dw=16, dh=16, optional_argc=6 '\006', error=...) at /home/apusr/b2g/B2G/gecko/content/canvas/src/nsCanvasRenderingContext2DAzure.cpp:3651 #10 0x411fe740 in nsCanvasRenderingContext2DAzure::DrawImage (cx=0x4317cf00, obj=<value optimized out>, self=0x48beb400, argc=<value optimized out>, vp=0x43c00088) at /home/apusr/b2g/B2G/gecko/content/canvas/src/nsCanvasRenderingContext2DAzure.h:286 #11 drawImage (cx=0x4317cf00, obj=<value optimized out>, self=0x48beb400, argc=<value optimized out>, vp=0x43c00088) at /home/apusr/b2g/B2G/objdir-gecko/dom/bindings/CanvasRenderingContext2DBinding.cpp:1290 #12 0x411ff2ec in genericMethod (cx=0x4317cf00, argc=9, vp=0x43c00088) at /home/apusr/b2g/B2G/objdir-gecko/dom/bindings/CanvasRenderingContext2DBinding.cpp:2659 #13 0x414f5e70 in CallJSNative (cx=0x4317cf00, args=..., construct=js::NO_CONSTRUCT) at /home/apusr/b2g/B2G/gecko/js/src/jscntxtinlines.h:364 #14 InvokeKernel (cx=0x4317cf00, args=..., construct=js::NO_CONSTRUCT) at /home/apusr/b2g/B2G/gecko/js/src/jsinterp.cpp:367 #15 0x414f34da in js::Interpret (cx=0x4317cf00, entryFrame=<value optimized out>, interpMode=<value optimized out>) at /home/apusr/b2g/B2G/gecko/js/src/jsinterp.cpp:2475 #16 0x414f56c6 in js::RunScript (cx=0x4317cf00, script=<value optimized out>, fp=0x43c00038) at /home/apusr/b2g/B2G/gecko/js/src/jsinterp.cpp:324 #17 0x414f719e in InvokeKernel (cx=0x4317cf00, thisv=..., fval=<value optimized out>, argc=<value optimized out>, argv=0xbe94e340, rval=0xbe94e400) at /home/apusr/b2g/B2G/gecko/js/src/jsinterp.cpp:378 ...... but the real error is here,where (surface == EGL_NO_SURFACE) frameworks/base/opengl/libs/EGL/eglApi.cpp:379 EGLSurface surface = cnx->egl.eglCreateWindowSurface( iDpy, iConfig, window, attrib_list); if (surface != EGL_NO_SURFACE) { //here egl_surface_t* s = new egl_surface_t(dpy, config, window, surface, dp->configs[intptr_t(config)].impl, cnx); return s; } stack is listed below: #0 eglCreateWindowSurface (dpy=0x1, config=0x10, window=0x40420020, attrib_list=0x0) at frameworks/base/opengl/libs/EGL/eglApi.cpp:348 #1 0x412ec666 in mozilla::gl::GLLibraryEGL::fCreateWindowSurface (aWidget=<value optimized out>, config=0x10) at /home/apusr/b2g/B2G/gecko/gfx/gl/GLLibraryEGL.h:210 #2 CreateSurfaceForWindow (aWidget=<value optimized out>, config=0x10) at /home/apusr/b2g/B2G/gecko/gfx/gl/GLContextProviderEGL.cpp:2291 #3 0x412ee082 in mozilla::gl::GLContextProviderEGL::CreateForWindow (aWidget=0x47d44400) at /home/apusr/b2g/B2G/gecko/gfx/gl/GLContextProviderEGL.cpp:2361 #4 0x412d22fa in mozilla::layers::LayerManagerOGL::CreateContext (this=<value optimized out>) at /home/apusr/b2g/B2G/gecko/gfx/layers/opengl/LayerManagerOGL.cpp:378 #5 0x412decd4 in mozilla::layers::LayerManagerOGL::Initialize (this=0x47d08400, aBackendHint=<value optimized out>, aId=<value optimized out>, aBackend=0x445ffc8c, aMaxTextureSize=0x445ffc90) at ../../dist/include/LayerManagerOGL.h:76 #6 mozilla::layers::CompositorParent::AllocPLayers (this=0x47d08400, aBackendHint=<value optimized out>, aId=<value optimized out>, aBackend=0x445ffc8c, aMaxTextureSize=0x445ffc90) at /home/apusr/b2g/B2G/gecko/gfx/layers/ipc/CompositorParent.cpp:1070 #7 0x411779a6 in mozilla::layers::PCompositorParent::OnMessageReceived (this=0x47d08400, __msg=<value optimized out>, __reply=@0x445ffccc) at /home/apusr/b2g/B2G/objdir-gecko/ipc/ipdl/PCompositorParent.cpp:573 #8 0x41140dfe in mozilla::ipc::SyncChannel::OnDispatchMessage (this=0x47d08408, msg=...) at /home/apusr/b2g/B2G/gecko/ipc/glue/SyncChannel.cpp:144 #9 0x4113f758 in mozilla::ipc::RPCChannel::OnMaybeDequeueOne (this=0x47d08408) at /home/apusr/b2g/B2G/gecko/ipc/glue/RPCChannel.cpp:400 #10 0x4111ec98 in DispatchToMethod<mozilla::dom::ContentParent, void (mozilla::dom::ContentParent::*)()> (this=<value optimized out>) at /home/apusr/b2g/B2G/gecko/ipc/chromium/src/base/tuple.h:383 #11 RunnableMethod<mozilla::dom::ContentParent, void (mozilla::dom::ContentParent::*)(), Tuple0>::Run (this=<value optimized out>) at /home/apusr/b2g/B2G/gecko/ipc/chromium/src/base/task.h:307 #12 0x4113dfbe in mozilla::ipc::RPCChannel::RefCountedTask::Run (this=<value optimized out>) at ../../dist/include/mozilla/ipc/RPCChannel.h:425 #13 mozilla::ipc::RPCChannel::DequeueTask::Run (this=<value optimized out>) at ../../dist/include/mozilla/ipc/RPCChannel.h:448 #14 0x4127c4fa in MessageLoop::RunTask (this=0x445ffdf0, task=0x10) at /home/apusr/b2g/B2G/gecko/ipc/chromium/src/base/message_loop.cc:333 #15 0x4127d4f8 in MessageLoop::DeferOrRunPendingTask (this=0x1, pending_task=<value optimized out>) at /home/apusr/b2g/B2G/gecko/ipc/chromium/src/base/message_loop.cc:341 #16 0x4127e1ba in MessageLoop::DoWork (this=0x445ffdf0) at /home/apusr/b2g/B2G/gecko/ipc/chromium/src/base/message_loop.cc:441 #17 0x4127e476 in base::MessagePumpDefault::Run (this=0x4318b160, delegate=0x445ffdf0) at /home/apusr/b2g/B2G/gecko/ipc/chromium/src/base/message_pump_default.cc:23 #18 0x4127c496 in MessageLoop::RunInternal (this=0x10) at /home/apusr/b2g/B2G/gecko/ipc/chromium/src/base/message_loop.cc:215 #19 0x4127c576 in MessageLoop::RunHandler (this=0x445ffdf0) at /home/apusr/b2g/B2G/gecko/ipc/chromium/src/base/message_loop.cc:208 #20 MessageLoop::Run (this=0x445ffdf0) at /home/apusr/b2g/B2G/gecko/ipc/chromium/src/base/message_loop.cc:182 #21 0x412855a6 in base::Thread::ThreadMain (this=0x44438e20) at /home/apusr/b2g/B2G/gecko/ipc/chromium/src/base/thread.cc:156 #22 0x412905be in ThreadFunc (closure=0x1) at /home/apusr/b2g/B2G/gecko/ipc/chromium/src/base/platform_thread_posix.cc:39 #23 0x400f5158 in __thread_entry (func=0x412905b5 <ThreadFunc>, arg=0x44438e20, tls=<value optimized out>) at bionic/libc/bionic/pthread.c:217 #24 0x400f4cac in pthread_create (thread_out=<value optimized out>, attr=0xbeadf2d0, start_routine=0x412905b5 <ThreadFunc>, arg=0x44438e20) at bionic/libc/bionic/pthread.c:357 #25 0x48c12f40 in ?? () #26 0x48c12f40 in ?? ()
@ying.xu, could you attach the IPC log to this bug? We're suspecting if the EGLSurface has been created twice under certain race condition. IPC log can be turn on in debug build with command |adb shell "stop b2g && MOZ_IPC_MESSAGE_LOG=1 b2g.sh|.
Flags: needinfo?(ying.xu)
we have fix this bug by updating out kernel drivers
Flags: needinfo?(ying.xu)
It looks like the issue has been fixed by updating kernel driver. We can close the issue now. Thanks for Xu Ying's help.
Assignee: nobody → ying.xu
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: