Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1586223 - [Wayland] Firefox wayland can not create EGLSurface
Summary: [Wayland] Firefox wayland can not create EGLSurface
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Stransky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ffwayland
TreeView+ depends on / blocked
 
Reported: 2018-06-05 18:40 UTC by louisgtwo
Modified: 2018-06-25 10:05 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-25 10:05:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description louisgtwo 2018-06-05 18:40:06 UTC
about:support

GPU #1
Active	Yes
Description	Intel Open Source Technology Center -- Mesa DRI Intel(R) HD Graphics 6000 (Broadwell GT3) 
Vendor ID	Intel Open Source Technology Center
Device ID	Mesa DRI Intel(R) HD Graphics 6000 (Broadwell GT3) 
Driver Version	3.0 Mesa 18.0.2

HW_COMPOSITING	
blocked by default: Acceleration blocked by platform
force_enabled by user: Force-enabled by pref

OPENGL_COMPOSITING	
force_enabled by user: Force-enabled by pref

Failure Log
(#0) Error	Failed to create EGLSurface!
(#1) Error	[OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT

Comment 1 Martin Stransky 2018-06-06 10:38:45 UTC
Which package version do you run?

Comment 2 louisgtwo 2018-06-06 14:17:24 UTC
firefox-60.0.1-6.fc28.x86_64

Comment 3 Damien Ciabrini 2018-06-25 07:02:26 UTC
Seems I'm having the same problem:

Firefox config:
GPU #1
Active	Yes
Description	Intel Open Source Technology Center -- Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2) 
Vendor ID	Intel Open Source Technology Center
Device ID	Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2) 
Driver Version	3.0 Mesa 18.0.5

Diagnostics
AzureCanvasAccelerated	0
AzureCanvasBackend	skia
AzureContentBackend	skia
AzureFallbackCanvasBackend	none
CairoUseXRender	0
failures	[GFX1-]: Failed to create EGLSurface!
Decision Log

HW_COMPOSITING	
blocked by default: Acceleration blocked by platform
force_enabled by user: Force-enabled by pref

OPENGL_COMPOSITING	
force_enabled by user: Force-enabled by pref

Installed packages:
firefox-60.0.2-1.fc28.x86_64
gnome-shell-3.28.2-1.fc28.x86_64
mesa-libEGL-18.0.5-1.fc28.x86_64
mesa-libEGL-devel-18.0.5-1.fc28.x86_64
libglvnd-devel-1.0.1-0.7.git5baa1e5.fc28.x86_64


apitrace shows that it fails during surface creation:

1 eglGetDisplay(display_id = 0x7f889c94e580) = 0x7f885fbc6000
2 eglInitialize(dpy = 0x7f885fbc6000, major = NULL, minor = NULL) = EGL_TRUE
5 eglChooseConfig(dpy = 0x7f885fbc6000, attrib_list = {EGL_SURFACE_TYPE, EGL_WINDOW_BIT, EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, EGL_RED_SIZE, 8, EGL_GREEN_SIZE, 8, EGL_BLUE_SIZE, 8, EGL_ALPHA_SIZE, 8, EGL_NONE}, configs = {0x7f88606cb940, 0x7f88606cbb80, 0x7f88606f21c0, 0x7f88606f2400, 0x7f88606f2280, 0x7f88606f24c0, 0x7f88606f2340, 0x7f88606f2580}, config_size = 64, num_config = &8) = EGL_TRUE
10 eglCreateWindowSurface(dpy = 0x7f885fbc6000, config = 0x7f88606cb940, win = NULL, attrib_list = {}) = NULL


associated backtrace in case it may help:

#0  0x00007fffb53d2080 in eglCreateWindowSurface (dpy=0x7fffbd137800, config=0x7fffbd5994c0, window=0, attrib_list=0x0) at main/eglapi.c:916
#1  0x00007ffff79aea42 in eglCreateWindowSurface () at /usr/bin/../lib64/apitrace/wrappers/egltrace.so
#2  0x00007fffe6da81f5 in mozilla::gl::GLContextEGLFactory::Create(void*, bool) () at /usr/lib64/firefox/libxul.so
#3  0x00007fffe6da84d8 in mozilla::gl::GLContextProviderEGL::CreateForCompositorWidget(mozilla::widget::CompositorWidget*, bool) () at /usr/lib64/firefox/libxul.so
#4  0x00007fffe6d88616 in mozilla::gl::GLContextProviderWayland::CreateForCompositorWidget(mozilla::widget::CompositorWidget*, bool) () at /usr/lib64/firefox/libxul.so
#5  0x00007fffe6e25fdb in mozilla::layers::CompositorOGL::CreateContext() () at /usr/lib64/firefox/libxul.so
#6  0x00007fffe6e352e2 in mozilla::layers::CompositorOGL::Initialize(nsTString<char>*) () at /usr/lib64/firefox/libxul.so
#7  0x00007fffe6ee8d8c in mozilla::layers::CompositorBridgeParent::NewCompositor(nsTArray<mozilla::layers::LayersBackend> const&) () at /usr/lib64/firefox/libxul.so
#8  0x00007fffe6ef141d in mozilla::layers::CompositorBridgeParent::InitializeLayerManager(nsTArray<mozilla::layers::LayersBackend> const&) () at /usr/lib64/firefox/libxul.so
#9  0x00007fffe6ef1546 in mozilla::layers::CompositorBridgeParent::AllocPLayerTransactionParent(nsTArray<mozilla::layers::LayersBackend> const&, unsigned long const&) ()
    at /usr/lib64/firefox/libxul.so
#10 0x00007fffe6a488a4 in mozilla::layers::PCompositorBridgeParent::OnMessageReceived(IPC::Message const&) () at /usr/lib64/firefox/libxul.so
#11 0x00007fffe6a1cd52 in mozilla::layers::PCompositorManagerParent::OnMessageReceived(IPC::Message const&) () at /usr/lib64/firefox/libxul.so
#12 0x00007fffe68458f3 in mozilla::ipc::MessageChannel::DispatchAsyncMessage(IPC::Message const&) () at /usr/lib64/firefox/libxul.so
#13 0x00007fffe684b660 in mozilla::ipc::MessageChannel::DispatchMessage(IPC::Message&&) () at /usr/lib64/firefox/libxul.so
#14 0x00007fffe684d825 in mozilla::ipc::MessageChannel::MessageTask::Run() () at /usr/lib64/firefox/libxul.so
#15 0x00007fffe6816ab5 in MessageLoop::DeferOrRunPendingTask(MessageLoop::PendingTask&&) () at /usr/lib64/firefox/libxul.so
#16 0x00007fffe681a474 in MessageLoop::DoWork() () at /usr/lib64/firefox/libxul.so
#17 0x00007fffe680f7f1 in base::MessagePumpDefault::Run(base::MessagePump::Delegate*) () at /usr/lib64/firefox/libxul.so
#18 0x00007fffe6810d99 in MessageLoop::Run() () at /usr/lib64/firefox/libxul.so
#19 0x00007fffe681ec95 in base::Thread::ThreadMain() () at /usr/lib64/firefox/libxul.so
#20 0x00007fffe680e42e in ThreadFunc(void*) () at /usr/lib64/firefox/libxul.so
#21 0x00007ffff7679594 in start_thread () at /lib64/libpthread.so.0
#22 0x00007ffff686b02f in clone () at /lib64/libc.so.6

(gdb) finish
(gdb) print /x eglGetError()
$4 = 0x300b

Seems like null pointer for window yields EGL_BAD_NATIVE_WINDOW

Comment 4 Martin Stransky 2018-06-25 10:05:29 UTC
That's https://bugzilla.mozilla.org/show_bug.cgi?id=1453501 and it's fixed at Firefox 62.


Note You need to log in before you can comment on or make changes to this bug.