Closed Bug 1765057 Opened 2 years ago Closed 9 months ago

Firefox 99.0.1 snap firefox won't start with Xwayland + kernel driver nouveau (X Window System Error: BadPixmap)

Categories

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

Firefox 99
x86_64
Linux
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: vivien, Unassigned)

References

(Blocks 2 open bugs)

Details

(Keywords: crash)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0

Steps to reproduce:

Regression introduced with Firefox 99.0.1 in the Firefox snap version, only when using wayland and Kernel driver nouveau (ok with x.org).

Ubuntu 21.10 + Gnome 40.4

  • Firefox 99.0 snap + Kernel driver nouveau + wayland => ok
  • Firefox 99.0.1 snap + Kernel driver nouveau + wayland => won't start
  • Firefox 99.0.1 snap + Kernel driver nouveau + x.org => ok
  • Firefox 99.0.1 snap + Kernel driver i915 + wayland => ok

Actual results:

Error : Gtk-Lessage: Failed to load module "canberra-gtk-module"
The error was 'BadPixmap'.
Exiting due to channel error.
see screenshot

Expected results:

Firefox should launch

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Blocks: snap
Priority: -- → P3

The one significant difference in the firefox snap between versions 99.0 and 99.0.1 is that native Wayland support was forcefully disabled because of bug 1725245. This isn't the case for the snap in the beta channel though. Can you try it out and report whether "Firefox 100.0b9-1 snap + Kernel driver nouveau + wayland" works for you?

You can switch with sudo snap refresh firefox --beta, or you could do a parallel install so as to not mess with your existing profiles:

$ sudo snap set system experimental.parallel-instances=true
$ sudo snap install firefox firefox_beta
$ sudo snap refresh firefox_beta --beta
$ snap run firefox_beta
Flags: needinfo?(vivien)

I tested Firefox Snap 100.0-2 => It does not launch on PC Core 2 duo E7200 + GeForce GT 710 with Ubuntu 21.10.

Same PC, I tested Firefox Snap beta 101.0b2-1 => Everything works perfectly with Ubuntu 21.10.

I then updated to Ubuntu 22.04 => same problem for stable Firefox. See screenshot.

Flags: needinfo?(vivien) → needinfo?(olivier)

Thanks for following up. Can you confirm that if you switch back to the stable channel, and run it with MOZ_ENABLE_WAYLAND=1, you're not seeing this problem?

Flags: needinfo?(olivier) → needinfo?(vivien)

(In reply to Olivier Tilloy from comment #4)

Thanks for following up. Can you confirm that if you switch back to the stable channel, and run it with MOZ_ENABLE_WAYLAND=1, you're not seeing this problem?

I confirm, by adding "export MOZ_ENABLE_WAYLAND=1" before starting "snap run firefox" it works.

If I do not set "export MOZ_ENABLE_WAYLAND=1" Firefox doesn't start.

I have other PCs with the same generation of CPU, but without Nvidia graphics card, and Firefox Snap 100 works with Ubuntu.

Flags: needinfo?(vivien)
  • Firefox 100.0.2 Snap is available and it always asks to add "export MOZ_ENABLE_WAYLAND=1" to launch on my configuration.

  • Firefox 101.0b9 Snap works directly

OS : Ubuntu 22.04 LTS with Wayland

Keywords: crash
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
See Also: → 1766849, 1767231
Summary: Firefox 99.0.1 snap firefox won't start with wayland + kernel driver nouveau (Failed to load module "canberra-gtk-module") → Firefox 99.0.1 snap firefox won't start with wayland + kernel driver nouveau (X Window System Error: BadPixmap)
Depends on: wayland-stable

Hello,

I confirm that the bug is solved with the stable version Firefox 101 in Snap version.

(In reply to Vivien GUEANT from comment #7)

Hello,

I confirm that the bug is solved with the stable version Firefox 101 in Snap version.

Thanks for having taken the time to mention :)

Olivier, it's unclear to me whether this is the result of a workaround or if it's a valid fix and we could close this as well as bug 1766849 ?

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(olivier)
Resolution: --- → FIXED

Misclosed

Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: FIXED → ---

Vivien, just to make double-sure the bug can indeed be closed, can you confirm that you're running the stable firefox snap, in a Wayland session with the nouveau driver, and without forcing MOZ_ENABLE_WAYLAND=1 ?

Flags: needinfo?(olivier) → needinfo?(vivien)

(In reply to Vivien GUEANT from comment #5)

(In reply to Olivier Tilloy from comment #4)

Thanks for following up. Can you confirm that if you switch back to the stable channel, and run it with MOZ_ENABLE_WAYLAND=1, you're not seeing this problem?

I confirm, by adding "export MOZ_ENABLE_WAYLAND=1" before starting "snap run firefox" it works.

If I do not set "export MOZ_ENABLE_WAYLAND=1" Firefox doesn't start.

I have other PCs with the same generation of CPU, but without Nvidia graphics card, and Firefox Snap 100 works with Ubuntu.

Ok, so the title is wrong, it is XWayland that is broken here ?

Summary: Firefox 99.0.1 snap firefox won't start with wayland + kernel driver nouveau (X Window System Error: BadPixmap) → Firefox 99.0.1 snap firefox won't start with Xwayland + kernel driver nouveau (X Window System Error: BadPixmap)

Redirect a needinfo that is pending on an inactive user to the triage owner.
:stransky, since the bug doesn't have a severity set, could you please set the severity or close the bug?

For more information, please visit BugBot documentation.

Flags: needinfo?(vivien) → needinfo?(stransky)
Status: REOPENED → RESOLVED
Closed: 2 years ago9 months ago
Flags: needinfo?(stransky)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: