El viernes, 11 de abril de 2014 02:24:01 UTC-5, Chiajung Hung escribió:
> Hi Jose,
> 
> 
> 
> you can try to gdb attach it when crash,
> 
> and try 
> 
> (gdb)p/x sEGLLibrary.fGetError();
> 

Hi Chiajung,

I have a error with sEGLLibrary

==========

B2G$ ./run-gdb.sh 
ADB Location:  adb
..killing gdbserver pid 3351
Terminated 
Process /system/b2g/b2g created; pid = 3374
Listening on port 11000
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gdb
 -x /tmp/b2g.gdbinit.jvidal.5091 
/home/jvidal/Projects/imx_fos102/B2G/objdir-gecko/dist/bin/b2g
GNU gdb (GDB) 7.3.1-gg2
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-linux-android".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from 
/home/jvidal/Projects/imx_fos102/B2G/objdir-gecko/dist/bin/b2g...done.
Remote debugging from host 127.0.0.1
__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
1397202240303   Marionette      INFO    marionette enabled via build flag and 
pref
[New Thread 3374.3394]
1397202242886   Marionette      INFO    marionette-server.js loaded
1397202243065   Marionette      INFO    B2G emulator: no
1397202243065   Marionette      INFO    Device detected is var_som_mx6q
1397202243067   Marionette      INFO    Listening on port 2828

1397202243067   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 3374.3403]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 3374.3403]
0x411e4e04 in mozilla::gl::GLContextProviderEGL::CreateForWindow 
(aWidget=<optimized out>)
    at ../../../gecko/gfx/gl/GLContextProviderEGL.cpp:698
698             MOZ_CRASH("Failed to create EGLContext!\n");
(gdb) p/x sEGLLibrary.fGetError();
Invalid character ';' in expression.
(gdb) p/x sEGLLibrary.fGetError()
Cannot evaluate function -- may be inlined
(gdb) p/x sEGLLibrary.fGetError();
Invalid character ';' in expression.
(gdb) 

===============

What is the problem?


Regards,


Jose
> 
> 
> 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

Reply via email to