Hardware acceleration broken for amdgpu/mesa in snap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-spotify-app |
New
|
Undecided
|
Unassigned | ||
chromium-browser (Ubuntu) |
Confirmed
|
High
|
Unassigned | ||
firefox (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Snap packages which use hardware accelerated graphics are broken after the last routine system upgrade via apt. My system is using AMD Radeon RX 5500 XT graphics card from ASUS, with stock amdgpu kernel drivers. Two snap packages which are now unusable are Mozilla Firefox and Chromium browsers. Both display animated speckled color garbage inside their windows, overlayed with the correct image. Disabling hardware acceleration in the settings for the snap version of Firefox fixed it. Also, Firefox version installed from the original Mozilla tarball into /opt/ works just fine with the acceleration enabled on the same system, as well as glmark2 benchmark. Looks like the issue is only affecting snap packages.
$ snap list firefox chromium
Name Version Rev Tracking Publisher Notes
chromium 109.0.5414.119 2295 latest/stable canonical✓ -
firefox 109.0.1-1 2311 latest/stable mozilla✓ -
$ dpkg -l snapd|grep ^ii
ii snapd 2.58+22.10 amd64 Daemon and tooling that enable snap packages
$ dpkg -l mesa\* | grep ^ii
ii mesa-utils 8.5.0-1 amd64 Miscellaneous Mesa utilities -- symlinks
ii mesa-utils-
ii mesa-va-
ii mesa-vdpau-
ii mesa-vulkan-
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.10
Release: 22.10
Codename: kinetic
$ uname -a
Linux xxxxxx 5.19.0-29-generic #30-Ubuntu SMP PREEMPT_DYNAMIC Wed Jan 4 12:14:09 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: snap (not installed)
ProcVersionSign
Uname: Linux 5.19.0-29-generic x86_64
ApportVersion: 2.23.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Wed Feb 1 22:55:48 2023
InstallationDate: Installed on 2020-08-02 (913 days ago)
InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
SourcePackage: snap
UpgradeStatus: Upgraded to kinetic on 2023-02-02 (0 days ago)
---
ProblemType: Bug
ApportVersion: 2.23.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
DRM.card0-DP-1:
enabled: enabled
dpms: On
status: connected
edid-base64: AP/////
modes: 3840x2160 3840x2160 3840x2160 3840x2160 3840x2160 2560x1440 1920x1200 1920x1080 1920x1080 1920x1080 1600x1200 1680x1050 1600x900 1280x1024 1440x900 1280x800 1152x864 1280x720 1280x720 1280x720 1024x768 800x600 720x480 720x480 640x480 640x480 640x480
DRM.card0-DP-2:
enabled: disabled
dpms: Off
status: disconnected
edid-base64:
modes:
DRM.card0-DP-3:
enabled: disabled
dpms: Off
status: disconnected
edid-base64:
modes:
DRM.card0-HDMI-A-1:
enabled: disabled
dpms: Off
status: disconnected
edid-base64:
modes:
DiskUsage:
Filesystem Type Size Used Avail Use% Mounted on
/dev/nvme0n1p2 ext4 916G 222G 648G 26% /
tmpfs tmpfs 16G 0 16G 0% /dev/shm
/dev/nvme0n1p2 ext4 916G 222G 648G 26% /
DistroRelease: Ubuntu 22.10
InstallationDate: Installed on 2020-08-02 (914 days ago)
InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
MachineType: ASUS System Product Name
Package: chromium-browser 1:85.0.
PackageArchitec
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
Snap.Changes: no changes found
Snap.ChromeDriv
Snap.ChromiumVe
update.go:85: cannot change mount namespace according to change mount (/var/lib/
Chromium 109.0.5414.119 snap
Tags: kinetic snap
Uname: Linux 5.19.0-29-generic x86_64
UpgradeStatus: Upgraded to kinetic on 2023-02-02 (0 days ago)
UserGroups: adm cdrom dialout dip dovecot lpadmin lxd plugdev sambashare scanner ssl-cert sudo www-data
_MarkForUpload: True
dmi.bios.date: 12/12/2022
dmi.bios.release: 5.17
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4304
dmi.board.
dmi.board.name: ROG CROSSHAIR VIII HERO (WI-FI)
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev X.0x
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: To be filled by O.E.M.
dmi.product.name: System Product Name
dmi.product.sku: SKU
dmi.product.
dmi.sys.vendor: ASUS
affects: | snap (Ubuntu) → snapd (Ubuntu) |
Changed in chromium-browser (Ubuntu): | |
status: | New → Triaged |
tags: | added: kivu |
description: | updated |
description: | updated |
Changed in chromium-browser (Ubuntu): | |
status: | Fix Committed → Confirmed |
Thanks for the report, Bamywasi.
If disabling hardware acceleration managed to fix your issue for Firefox, in Chromium it should work too? The command line would be "chromium --disable-gpu".
Does your KDE runs on Wayland on Xorg? If on Wayland, do you experience the same bug
- with "chromium --ozone- platform= wayland" ?
- in Xorg?
Could you please attach the chromium.log file resulting from "chromium --enable-logging --v=1 &> chromium.log"?