Broken WebGL in Firefox 87.0 in xorg session

Bug #1923116 reported by Paweł Drewniak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Fix Released
High
Olivier Tilloy

Bug Description

Firefox 87.0 on Kubuntu 21.04 Beta running on Xorg seems to have broken WebGL.
Tested using https://get.webgl.org on fresh a Firefox profile.
I found the following in the console output:

`[GFX1-]: glxtest: Could not connect to wayland socket`

and this seems to be the cause of the problem - due to failing glxtest, all additional HW acceleration is disabled as seen by `FEATURE_FAILURE_GLXTEST_FAILED` in all `gfx.blacklist` entries in about:config.

The binary release downloaded from Mozilla (https://download-installer.cdn.mozilla.net/pub/firefox/releases/87.0/linux-x86_64/en-US/firefox-87.0.tar.bz2) does *not* show the same behaviour - WebGL is working just fine.

```
Description: Ubuntu Hirsute Hippo (development branch)
Release: 21.04

firefox:
  Installed: 87.0+build3-0ubuntu2
  Candidate: 87.0+build3-0ubuntu2
```

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: firefox 87.0+build3-0ubuntu2
ProcVersionSignature: Ubuntu 5.11.0-13.14-generic 5.11.7
Uname: Linux 5.11.0-13-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
AddonCompatCheckDisabled: False
ApportVersion: 2.20.11-0ubuntu61
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: woody 1838 F.... pulseaudio
BuildID: 20210318103112
Channel: Unavailable
CurrentDesktop: KDE
Date: Fri Apr 9 01:40:17 2021
DefaultProfileExtensions: extensions.sqlite corrupt or missing
DefaultProfileIncompatibleExtensions: Unavailable (corrupt or non-existant compatibility.ini or extensions.sqlite)
DefaultProfileLocales: extensions.sqlite corrupt or missing
DefaultProfilePrefErrors: Unexpected character ',' before close parenthesis @ /usr/lib/firefox/omni.ja:greprefs.js:352
DefaultProfilePrefSources: prefs.js
DefaultProfileThemes: extensions.sqlite corrupt or missing
ExecutablePath: /usr/lib/firefox/firefox
ForcedLayersAccel: False
InstallationDate: Installed on 2021-04-05 (3 days ago)
InstallationMedia: Kubuntu 21.04 "Hirsute Hippo" - Beta amd64 (20210331.1)
IpRoute:
 default via 192.168.184.1 dev wlp0s20f3 proto dhcp metric 600
 169.254.0.0/16 dev wlp0s20f3 scope link metric 1000
 192.168.184.0/24 dev wlp0s20f3 proto kernel scope link src 192.168.184.198 metric 600
Profile0Extensions: extensions.sqlite corrupt or missing
Profile0IncompatibleExtensions: Unavailable (corrupt or non-existant compatibility.ini or extensions.sqlite)
Profile0Locales: extensions.sqlite corrupt or missing
Profile0PrefErrors: Unexpected character ',' before close parenthesis @ /usr/lib/firefox/omni.ja:greprefs.js:352
Profile0PrefSources: prefs.js
Profile0Themes: extensions.sqlite corrupt or missing
Profile2Extensions: extensions.sqlite corrupt or missing
Profile2IncompatibleExtensions: Unavailable (corrupt or non-existant compatibility.ini or extensions.sqlite)
Profile2Locales: extensions.sqlite corrupt or missing
Profile2PrefErrors: Unexpected character ',' before close parenthesis @ /usr/lib/firefox/omni.ja:greprefs.js:352
Profile2PrefSources: prefs.js
Profile2Themes: extensions.sqlite corrupt or missing
Profile3Extensions: extensions.sqlite corrupt or missing
Profile3IncompatibleExtensions: Unavailable (corrupt or non-existant compatibility.ini or extensions.sqlite)
Profile3Locales: extensions.sqlite corrupt or missing
Profile3PrefErrors: Unexpected character ',' before close parenthesis @ /usr/lib/firefox/omni.ja:greprefs.js:352
Profile3PrefSources: prefs.js
Profile3Themes: extensions.sqlite corrupt or missing
Profiles:
 Profile3 - LastVersion=87.0/20210318103112
 Profile1 (Default) - LastVersion=87.0/20210318103112
 Profile0 - LastVersion=87.0/20210318103112 (In use)
 Profile2 - LastVersion=87.0/20210318103112
RunningIncompatibleAddons: False
SourcePackage: firefox
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/07/2020
dmi.bios.release: 1.15
dmi.bios.vendor: LENOVO
dmi.bios.version: N2WET25W (1.15 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20U9CTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.8
dmi.modalias: dmi:bvnLENOVO:bvrN2WET25W(1.15):bd12/07/2020:br1.15:efr1.8:svnLENOVO:pn20U9CTO1WW:pvrThinkPadX1CarbonGen8:rvnLENOVO:rn20U9CTO1WW:rvrSDK0J40697WIN:cvnLENOVO:ct10:cvrNone:
dmi.product.family: ThinkPad X1 Carbon Gen 8
dmi.product.name: 20U9CTO1WW
dmi.product.sku: LENOVO_MT_20U9_BU_Think_FM_ThinkPad X1 Carbon Gen 8
dmi.product.version: ThinkPad X1 Carbon Gen 8
dmi.sys.vendor: LENOVO

Revision history for this message
Paweł Drewniak (woody) wrote :
Revision history for this message
Paweł Drewniak (woody) wrote :
Revision history for this message
Paweł Drewniak (woody) wrote :

I think I've found it.

https://bugs.launchpad.net/ubuntu/+source/firefox/87.0+build3-0ubuntu2 introduced "MOZ_ENABLE_WAYLAND=1" in the startup script (/usr/bin/firefox).
This was to fix #1916469, but unfortunately this breaks WebGL on Xorg.
Removing "export MOZ_ENABLE_WAYLAND=1" fixes the problem.

As an aside, Firefox 88 should behave better in that regard (https://bugzilla.mozilla.org/show_bug.cgi?id=1695453 improved handling of setting MOZ_ENABLE_WAYLAN)

Revision history for this message
Olivier Tilloy (osomon) wrote :

Until this is fixed upstream (apparently in firefox 88, thanks Paweł for the link), this should work around the problem: https://bazaar.launchpad.net/~mozillateam/firefox/firefox.hirsute/revision/1478.

Changed in firefox (Ubuntu):
assignee: nobody → Olivier Tilloy (osomon)
status: New → Confirmed
importance: Undecided → High
status: Confirmed → Fix Committed
summary: - Broken WebGL in Firefox 87.0 on Kubuntu 21.04 Beta (Xorg)
+ Broken WebGL in Firefox 87.0 in xorg session
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package firefox - 87.0+build3-0ubuntu3

---------------
firefox (87.0+build3-0ubuntu3) hirsute; urgency=medium

  * Set MOZ_ENABLE_WAYLAND only in Wayland sessions (LP: #1923116)

 -- Olivier Tilloy <email address hidden> Fri, 09 Apr 2021 20:25:05 +0200

Changed in firefox (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.