[KDE] Firefox won't launch with Wayland v.3 wl_compositor
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: mainnat212, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
Steps to reproduce:
Open terminal and enter export MOZ_ENABLE_WAYLAND=1, then launch firefox from the terminal. I am on Debian Buster with KDE wayland
Actual results:
Firefox doesn't open. Instead I get this
[natalie@debian ~]$ /opt/firefox-nightly/firefox
[GFX1-]: Failed to load EGL library: FEATURE_FAILURE_NO_DISPLAY
[GFX1-]: Failed to load EGL library: FEATURE_FAILURE_NO_DISPLAY
Gdk-Message: 21:05:19.328: Error 71 (Protocol error) dispatching to Wayland display.
[natalie@debian ~]$
###!!! [Child][MessageChannel] Error: (msgtype=0xFFF7,name=<unknown IPC msg name>) Channel error: cannot send/recv
Expected results:
Firefox should open
Reporter | ||
Comment 1•5 years ago
|
||
This is the user agent of my firefox nightly
Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0
Comment 2•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 3•5 years ago
|
||
Please try to run in gdb as:
$MOZ_ENABLE_WAYLAND=1 MOZ_FORCE_DISABLE_E10S=1 gdb ./firefox
run firefox and attach the backtrace. (see https://fedoraproject.org/wiki/Debugging_guidelines_for_Mozilla_products#Running_application_in_debugger)
Looks like Firefox failed to create GL context.
Thanks.
Reporter | ||
Comment 4•5 years ago
|
||
Comment 5•5 years ago
|
||
It seems to fail here:
https://searchfox.org/mozilla-central/rev/fac90408bcf52ca88a3dcd2ef30a379b68ab24e2/gfx/gl/GLLibraryEGL.cpp#830
which leads to:
https://searchfox.org/mozilla-central/rev/fac90408bcf52ca88a3dcd2ef30a379b68ab24e2/gfx/gl/GLLibraryEGL.cpp#236
but I have no idea why it fails. Can you try gnome wayland session for instance?
Reporter | ||
Comment 6•5 years ago
|
||
I tried it on Weston (Gnome wayland is a lot to install) and it worked perfectly fine. Let me know if you need me to still try it on Gnome or something else
Comment 7•5 years ago
|
||
Weston is OK. I think it's something in KDE/GL config.
Comment 8•5 years ago
|
||
[1597999.392] wl_display@1.error(wl_registry@13, 0, "invalid version for global wl_compositor (1): have 3, wanted 4")
I have found a 4
here:
- https://searchfox.org/mozilla-central/rev/4bb2401ecbfce89af06fb2b4d0ea3557682bd8ff/widget/gtk/nsWaylandDisplay.cpp#272
- https://github.com/KDE/kwayland/blob/09147becf9b1a27b54048f7d97bf22f06ac946cb/src/server/compositor_interface.cpp#L40
It was increased from3
to4
by https://phabricator.kde.org/D15910#417307, which says "Will be pushed after 5.56 branched off.".
I assume this refers the the Plasma Framework version number. Then it looks like this:
Debian Stable hasplasma-framework (5.54.0-1)
, therefore3
.
Debian Testing has 5.70.1-1, therefore4
.
Ubuntu 18.04 has 5.44.0-0ubuntu3, therefore3
.
Ubuntu 19.10 has 5.62.0-0ubuntu2, therefore4
.
I have found https://pkgs.org/download/kf5-frameworkintegration, which version numbers seems to fit:
"Fedora 30" (fresh install?) has 5.55.0-2, therfore3
.
"Fedora 30 Fedora Updates" has 5.68.0-1, therefore4
.
According to https://wayland.freedesktop.org/docs/html/ch04.html#sect-Protocol-Versioning Wayland interfaces are versioned. Firefox wants wl_compositor interface version 4, but KDE on Debian Stable only supports 3.
Hard Freeze of Debian Bullseye (currently testing) is 2021-03-12.
Side Note: On Debian Testing I am still affected by (horrible) bug 1593478. It was fixed with Plasma 5.18.4, but Debian Testing is still at 5.17.5. Some windows like the file picker sometimes don't show up at all.
At the moment, I wouldn't recommend to use KDE Wayland with Debian Testing. Better use Fedora (Fedora's Firefox team maintains Gtk in Firefox) or at least Ubuntu 20.04 (both have 5.18.5). Arch Linux already has 5.19.0.
Reporter | ||
Comment 9•5 years ago
|
||
Thanks for your help
Comment 10•5 years ago
|
||
I'm getting the same error trying to run Firefox in Wayland more on Debian stable.
Is there a workaround, or is it possible to create one (that is, to allow Firefox to run with wl_compositor v3)?
Comment 11•5 years ago
|
||
(In reply to Botond Ballo [:botond] from comment #10)
I'm getting the same error trying to run Firefox in Wayland more on Debian stable.
Is there a workaround, or is it possible to create one (that is, to allow Firefox to run with wl_compositor v3)?
Unfortunately no, we need the v4 compositor for wl_surface_damage_buffer().
Comment 12•5 years ago
|
||
I'm afraid this is a wontfix as we can't use the v3 compositor. Darkspirit, thanks a lot for investigating this one!
Description
•