Closed Bug 1644312 Opened 5 years ago Closed 5 years ago

[KDE] Firefox won't launch with Wayland v.3 wl_compositor

Categories

(Core :: Widget: Gtk, defect, P3)

79 Branch
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mainnat212, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached file debug-mode-wayland.txt

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

This is the user agent of my firefox nightly

Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

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.

Blocks: wayland-kde
Flags: needinfo?(mainnat212)
Priority: -- → P3
Summary: Firefox won't launch with Wayland "Error 71 (Protocol Error)" → [KDE] Firefox won't launch with Wayland "Error 71 (Protocol Error)"
Flags: needinfo?(mainnat212)

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

Flags: needinfo?(mainnat212)

Weston is OK. I think it's something in KDE/GL config.

[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:

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.

Thanks for your help

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)?

(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().

I'm afraid this is a wontfix as we can't use the v3 compositor. Darkspirit, thanks a lot for investigating this one!

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Summary: [KDE] Firefox won't launch with Wayland "Error 71 (Protocol Error)" → [KDE] Firefox won't launch with Wayland v.3 wl_compositor
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: