Hi Jose, you can try to gdb attach it when crash, and try (gdb)p/x sEGLLibrary.fGetError();
it should give you a hex value represent the error. then you can check http://dxr.mozilla.org/mozilla-central/source/gfx/gl/GLConsts.h to see what the error is. Best Regards, Chiajung ----- Original Message ----- From: "Jose Vidal" <[email protected]> To: [email protected] Sent: Friday, April 11, 2014 3:01:12 PM Subject: Re: [b2g] Failed to create EGLContext El jueves, 10 de abril de 2014 20:08:33 UTC-5, Chiajung Hung escribió: > Hi Jose, > > > > It crashes here since eglCreateContext returns EGL_NO_CONTEXT that Compositor > needs. > > I think you can try to: > > 1. load the eglGetError symbol. > > 2. call eglGetError here to check what's wrong: > > https://www.khronos.org/registry/egl/sdk/docs/man/html/eglCreateContext.xhtml > > Hi Chiajung, Thanks for your response, How I make do that? Thanks in advance, Regards, Jose > > Best Regards, > > Chiajung > > > > ----- Original Message ----- > > From: "Jose Vidal" <[email protected]> > > To: [email protected] > > Sent: Friday, April 11, 2014 2:53:50 AM > > Subject: [b2g] Failed to create EGLContext > > > > Hi everyone, > > > > I'm to porting B2G in freescale device. > > I get only bootanimation in loop. > > > > I have maybe problems with hwcomposer, gralloc or something. > > This is my GDB. > > > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > > > > __dl__start () at bionic/linker/arch/arm/begin.S:35 > > 35 mov r0, sp > > (gdb) c > > Continuing. > > Loading JavaScript value pretty-printers; see js/src/gdb/README. > > If they cause trouble, type: disable pretty-printer .* SpiderMonkey > > 1397154085926 Marionette INFO marionette enabled via build flag and > pref > > [New Thread 3141.3160] > > 1397154088320 Marionette INFO marionette-server.js loaded > > 1397154088499 Marionette INFO B2G emulator: no > > 1397154088499 Marionette INFO Device detected is var_som_mx6q > > 1397154088501 Marionette INFO Listening on port 2828 > > > > 1397154088501 Marionette INFO Marionette server ready > > System JS : ERROR > jar:file:///system/b2g/omni.ja!/components/SettingsService.js:119 - > NS_ERROR_FAILURE: Component returned failure code: 0x80004005 > (NS_ERROR_FAILURE) [nsISettingsServiceCallback.handle] > > ###################################### forms.js loaded > > ############################### browserElementPanning.js loaded > > ######################## BrowserElementChildPreload.js loaded > > *** UTM:SVC TimerManager:registerTimer - id: user-agent-updates-timer > > Crash reporter : Can't fetch app.reportCrashes. Exception: [Exception... > "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) > [nsIPrefBranch.getBoolPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" > location: "JS frame :: chrome://b2g/content/shell.js :: shell_reportCrash :: > line 141" data: no][New Thread 3141.3168] > > > > Program received signal SIGSEGV, Segmentation fault. > > [Switching to Thread 3141.3168] > > 0x41157e04 in mozilla::gl::GLContextProviderEGL::CreateForWindow > (aWidget=<optimized out>) > > at ../../../gecko/gfx/gl/GLContextProviderEGL.cpp:698 > > 698 MOZ_CRASH("Failed to create EGLContext!\n"); > > (gdb) bt > > #0 0x41157e04 in mozilla::gl::GLContextProviderEGL::CreateForWindow > (aWidget=<optimized out>) > > at ../../../gecko/gfx/gl/GLContextProviderEGL.cpp:698 > > #1 0x411b8c74 in mozilla::layers::CompositorOGL::CreateContext > (this=<optimized out>) > > at ../../../gecko/gfx/layers/opengl/CompositorOGL.cpp:173 > > #2 0x411ba4d2 in mozilla::layers::CompositorOGL::Initialize > (this=0x514d3600) at ../../../gecko/gfx/layers/opengl/CompositorOGL.cpp:262 > > #3 0x411a7290 in mozilla::layers::LayerManagerComposite::Initialize > (this=<optimized out>) > > at ../../../gecko/gfx/layers/composite/LayerManagerComposite.cpp:119 > > #4 0x411b0b9a in mozilla::layers::CompositorParent::InitializeLayerManager > (this=0x553bea00, aBackendHints=...) > > at ../../../gecko/gfx/layers/ipc/CompositorParent.cpp:832 > > #5 0x411b0c2e in > mozilla::layers::CompositorParent::AllocPLayerTransactionParent > (this=0x553bea00, aBackendHints=..., aId=<optimized out>, > > aTextureFactoryIdentifier=0x52e0cc80, aSuccess=0x52e0cbd7) at > ../../../gecko/gfx/layers/ipc/CompositorParent.cpp:854 > > #6 0x40fbf496 in mozilla::layers::PCompositorParent::OnMessageReceived > (this=0x553bea00, __msg=<optimized out>, __reply=@0x52e0cce0) > > at PCompositorParent.cpp:850 > > #7 0x40f91590 in mozilla::ipc::MessageChannel::DispatchSyncMessage > (this=0x553bea30, aMsg=...) > > at ../../../gecko/ipc/glue/MessageChannel.cpp:1067 > > #8 0x40f9334a in mozilla::ipc::MessageChannel::OnMaybeDequeueOne > (this=<optimized out>) at ../../../gecko/ipc/glue/MessageChannel.cpp:1039 > > #9 0x40f90d9c in DispatchToMethod<mozilla::ipc::MessageChannel, void > (mozilla::ipc::MessageChannel::*)()> (method= > > (void (mozilla::ipc::MessageChannel::*)(mozilla::ipc::MessageChannel * > const)) 0x40f932c1 <mozilla::ipc::MessageChannel::OnMaybeDequeueOne()>, > obj=<optimized out>, arg=<optimized out>) at > ../../../gecko/ipc/chromium/src/base/tuple.h:383 > > #10 RunnableMethod<mozilla::ipc::MessageChannel, void > (mozilla::ipc::MessageChannel::*)(), Tuple0>::Run (this=<optimized out>) > > at ../../../gecko/ipc/chromium/src/base/task.h:307 > > #11 0x40f90d62 in Run (this=<optimized out>) at > ../../dist/include/mozilla/ipc/MessageChannel.h:383 > > #12 mozilla::ipc::MessageChannel::DequeueTask::Run (this=<optimized out>) at > ../../dist/include/mozilla/ipc/MessageChannel.h:400 > > #13 0x40f88584 in MessageLoop::RunTask (this=0x52e0cdf0, task=0x56fafb00) at > ../../../gecko/ipc/chromium/src/base/message_loop.cc:344 > > #14 0x40f88f8e in MessageLoop::DeferOrRunPendingTask (this=<optimized out>, > pending_task=<optimized out>) > > at ../../../gecko/ipc/chromium/src/base/message_loop.cc:352 > > #15 0x40f89ffa in DoWork (this=<optimized out>) at > ../../../gecko/ipc/chromium/src/base/message_loop.cc:452 > > #16 MessageLoop::DoWork (this=0x52e0cdf0) at > ../../../gecko/ipc/chromium/src/base/message_loop.cc:431 > > #17 0x40f8a1b6 in base::MessagePumpDefault::Run (this=0x52a9e4c0, > delegate=0x52e0cdf0) > > at ../../../gecko/ipc/chromium/src/base/message_pump_default.cc:34 > > #18 0x40f88512 in MessageLoop::RunInternal (this=<optimized out>) at > ../../../gecko/ipc/chromium/src/base/message_loop.cc:226 > > #19 0x40f885c4 in RunHandler (this=0x52e0cdf0) at > ../../../gecko/ipc/chromium/src/base/message_loop.cc:219 > > #20 MessageLoop::Run (this=0x52e0cdf0) at > ../../../gecko/ipc/chromium/src/base/message_loop.cc:193 > > #21 0x40f8af8a in base::Thread::ThreadMain (this=0x52a9bca0) at > ../../../gecko/ipc/chromium/src/base/thread.cc:162 > > #22 0x40f814c8 in ThreadFunc (closure=<optimized out>) at > ../../../gecko/ipc/chromium/src/base/platform_thread_posix.cc:39 > > #23 0x401a53fc in __thread_entry (func=0x40f814c1 <ThreadFunc(void*)>, > arg=0x52a9bca0, tls=0x52e0cf00) at bionic/libc/bionic/pthread.c:204 > > #24 0x401a4ae8 in pthread_create (thread_out=0x52e0cf00, attr=0xbed50e30, > start_routine=0x40f814c1 <ThreadFunc(void*)>, arg=<optimized out>) > > at bionic/libc/bionic/pthread.c:348 > > ---Type <return> to continue, or q <return> to quit--- > > #25 0x00000000 in ?? () > > (gdb) q > > > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > > > > > I hope for your help. > > > > Thanks in advance. > > > > Best regards, > > > > Jose. > > _______________________________________________ > > dev-b2g mailing list > > [email protected] > > https://lists.mozilla.org/listinfo/dev-b2g _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
