gecko-embedded
gecko-embedded copied to clipboard
i.MX6: WebGLの有効化
i.MX6(X11版/EGL使用)でWebGLを有効化したい。
以前試したときは、WebGLコンテンツ表示時にクラッシュした。RZ/G1E上のWaylandの場合(#21)とは異なり、一フレームも表示されず、layers.acceleration.force-enabled
をfalseにしても改善しなかった。
そのときに採取したエラーメッセージおよびスタックトレース:
[Parent 797] ###!!! ABORT: Request 150.7: BadDrawable (invalid Pixmap or Window parameter): file /home/aho/Projects/wandboard-solo-bsp/build/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/firefox/45.0esr-r0/firefox-45.0esr/toolkit/xre/nsX11ErrorHandler.cpp, line 157
[Parent 797] ###!!! ABORT: Request 150.7: BadDrawable (invalid Pixmap or Window parameter): file /home/aho/Projects/wandboard-solo-bsp/build/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/firefox/45.0esr-r0/firefox-45.0esr/toolkit/xre/nsX11ErrorHandler.cpp, line 157
[Child 852] ###!!! ABORT: Aborting on channel error.: file /home/aho/Projects/wandboard-solo-bsp/build/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/firefox/45.0esr-r0/firefox-45.0esr/ipc/glue/MessageChannel.cpp, line 1861
[Child 852] ###!!! ABORT: Aborting on channel error.: file /home/aho/Projects/wandboard-solo-bsp/build/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/firefox/45.0esr-r0/firefox-45.0esr/ipc/glue/MessageChannel.cpp, line 1861
Segmentation fault (core dumped)
(gdb) where
#0 0x76f52ca8 in raise (sig=11) at ../sysdeps/unix/sysv/linux/pt-raise.c:36
#1 0x7585ce20 in nsProfileLock::FatalSignalHandler(int, siginfo_t*, void*) ()
from /usr/lib/firefox-45.0/libxul.so
#2 <signal handler called>
#3 0x0000c84c in mozalloc_abort(char const*) ()
#4 0x7402959c in NS_DebugBreak () from /usr/lib/firefox-45.0/libxul.so
#5 0x75865aac in X11Error () from /usr/lib/firefox-45.0/libxul.so
#6 0x72d17cec in _XError (dpy=dpy@entry=0x76a9e000, rep=rep@entry=0x504f8040)
at /usr/src/debug/libx11/1_1.6.2-r0/libX11-1.6.2/src/XlibInt.c:1463
#7 0x72d14cfc in handle_error (dpy=dpy@entry=0x76a9e000, err=0x504f8040,
in_XReply=in_XReply@entry=1)
at /usr/src/debug/libx11/1_1.6.2-r0/libX11-1.6.2/src/xcb_io.c:213
#8 0x72d15e58 in _XReply (dpy=dpy@entry=0x76a9e000, rep=rep@entry=0x7e960140,
extra=2123759936, extra@entry=0, discard=1927217756, discard@entry=0)
at /usr/src/debug/libx11/1_1.6.2-r0/libX11-1.6.2/src/xcb_io.c:699
#9 0x70fac330 in XF86DRICreateDrawable (dpy=0x76a9e000, screen=0,
drawable=drawable@entry=0, hHWDrawable=hHWDrawable@entry=0x52b55de4)
at ../../../../driver/X/DRI/src/XF86dri.c:405
#10 0x70fa8a78 in gcoOS_CreateDrawable (localDisplay=0x5d069f10, Drawable=0)
at ../user/gc_hal_user_dri.c:2886
#11 0x712168a4 in _CreateSurface (Thread=Thread@entry=0x5d0ca4b4,
Display=Display@entry=0x5e9c0d44, Surface=Surface@entry=0x51840804)
at gc_egl_surface.c:2117
#12 0x71217bb8 in eglCreatePbufferSurface (Dpy=0x5e9c0d44, Config=0x33,
attrib_list=0x5040ed88) at gc_egl_surface.c:3440
#13 0x7467de60 in mozilla::gl::GLContextEGL::CreatePBufferSurfaceTryingPowerOfTwo(void*, unsigned int, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>&)
() from /usr/lib/firefox-45.0/libxul.so
#14 0x74684f20 in mozilla::gl::GLContextEGL::CreateEGLPBufferOffscreenContext(mozilla::gl::CreateContextFlags, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits> const&, mozilla::gl::SurfaceCaps const&) ()
from /usr/lib/firefox-45.0/libxul.so
#15 0x74685028 in mozilla::gl::GLContextProviderEGL::CreateHeadless(mozilla::gl::CreateContextFlags) () from /usr/lib/firefox-45.0/libxul.so
#16 0x74685c60 in mozilla::gl::GLContextProviderEGL::CreateOffscreen(mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits> const&, mozilla::gl::SurfaceCaps const&, mozilla::gl::CreateContextFlags) () from /usr/lib/firefox-45.0/libxul.so
#17 0x74e5d9d0 in mozilla::CreateGLWithDefault(mozilla::gl::SurfaceCaps const&, mozilla::gl::CreateContextFlags, mozilla::WebGLContext*) ()
from /usr/lib/firefox-45.0/libxul.so
#18 0x74e628e8 in mozilla::WebGLContext::CreateAndInitGLWith(already_AddRefed<mozilla::gl::GLContext> (*)(mozilla::gl::SurfaceCaps const&, mozilla::gl::CreateContextFlags, mozilla::WebGLContext*), mozilla::gl::SurfaceCaps const&, mozilla::gl::CreateContextFlags) () from /usr/lib/firefox-45.0/libxul.so
#19 0x74e62b38 in mozilla::WebGLContext::CreateAndInitGL(bool) ()
from /usr/lib/firefox-45.0/libxul.so
#20 0x74e62e20 in mozilla::WebGLContext::SetDimensions(int, int) ()
from /usr/lib/firefox-45.0/libxul.so
#21 0x74e36bcc in mozilla::dom::CanvasRenderingContextHelper::UpdateContext(JSContext*, JS::Handle<JS::Value>, mozilla::ErrorResult&) ()
from /usr/lib/firefox-45.0/libxul.so
#22 0x74e38cac in mozilla::dom::CanvasRenderingContextHelper::GetContext(JSConte---Type <return> to continue, or q <return> to quit---
xt*, nsAString_internal const&, JS::Handle<JS::Value>, mozilla::ErrorResult&)
() from /usr/lib/firefox-45.0/libxul.so
#23 0x74f084c0 in mozilla::dom::HTMLCanvasElement::GetContext(JSContext*, nsAString_internal const&, JS::Handle<JS::Value>, mozilla::ErrorResult&) ()
from /usr/lib/firefox-45.0/libxul.so
#24 0x74d6f594 in mozilla::dom::HTMLCanvasElementBinding::getContext(JSContext*, JS::Handle<JSObject*>, mozilla::dom::HTMLCanvasElement*, JSJitMethodCallArgs const&) () from /usr/lib/firefox-45.0/libxul.so
#25 0x74e11a78 in mozilla::dom::GenericBindingMethod(JSContext*, unsigned int, JS::Value*) () from /usr/lib/firefox-45.0/libxul.so
#26 0x75faf380 in js::Invoke(JSContext*, JS::CallArgs const&, js::MaybeConstruct) () from /usr/lib/firefox-45.0/libxul.so
#27 0x75fa4580 in Interpret(JSContext*, js::RunState&) ()
from /usr/lib/firefox-45.0/libxul.so
#28 0x7e960b38 in ?? ()