Closed Bug 1828196 Opened 2 years ago Closed 1 year ago

Snap/X11/Ubuntu 22.04: llvmpipe is unexpectedly the primary GPU and AMD is secondary and unused. There is no glxtest failure.

Categories

(Firefox Build System :: Third Party Packaging, defect)

Firefox 112
Desktop
Linux
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: juanmart, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36

Steps to reproduce:

  1. Launch Firefox (snap) on Ubuntu 22.04
  2. Visit earth.google.com
  3. Interact with the Google Earth application

FYI, here is the snap info firefox on my installation:
name: firefox
summary: Mozilla Firefox web browser
publisher: Mozilla✓
store-url: https://snapcraft.io/firefox
contact: https://support.mozilla.org/kb/file-bug-report-or-feature-request-mozilla
license: unset
description: |
Firefox is a powerful, extensible web browser with support for modern web application
technologies.
commands:

  • firefox
  • firefox.geckodriver
    snap-id: 3wdHCAVyZEmYsCMFDE9qt92UV8rC8Wdk
    tracking: latest/stable
    refresh-date: today at 14:05 CDT
    channels:
    latest/stable: 112.0-2 2023-04-11 (2559) 253MB -
    latest/candidate: 112.0-2 2023-04-11 (2559) 253MB -
    latest/beta: 113.0b3-1 2023-04-14 (2575) 254MB -
    latest/edge: 114.0a1 2023-04-13 (2573) 259MB -
    esr/stable: 102.10.0esr-1 2023-04-11 (2558) 186MB -
    esr/candidate: 102.10.0esr-1 2023-04-11 (2558) 186MB -
    esr/beta: ↑
    esr/edge: ↑
    installed: 112.0-2 (2559) 253MB -

Actual results:

Note that interacting with the app results in massive CPU spikes and low FPS (~5fps)

Expected results:

CPU should have remained low (<10% CPU utilization in non-snap Firefox)
FPS should be visibly smoother/modern

FYI necessary factory Radeon drivers are present:

root@themachine:~# ls /usr/lib/x86_64-linux-gnu/dri
crocus_dri.so i915_dri.so kms_swrast_dri.so r200_dri.so radeon_dri.so virtio_gpu_dri.so
d3d12_dri.so i965_dri.so nouveau_dri.so r300_dri.so radeonsi_dri.so vmwgfx_dri.so
i830_dri.so iris_dri.so nouveau_vieux_dri.so r600_dri.so swrast_dri.so zink_dri.so

Non-snap Firefox does not exhibit the same behavior on same machine / OS install

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Third Party Packaging' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Third Party Packaging
Product: Firefox → Firefox Build System

Thanks for the report! Please open about:support, click on "Copy text to clipboard" and paste it here.

Blocks: snap
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → Linux
Hardware: Unspecified → Desktop
See Also: → 1821944, 1822908
Summary: GPU Acceleration not working on Ubuntu 22.04 Snap → Snap/X11/Ubuntu 22.04: llvmpipe is unexpectedly the primary GPU and AMD is secondary and unused. There is no glxtest failure.
See Also: → 1828757
See Also: → 1829652

Might or might not be related: bug 1758473 (103) caused bug 1813500 (hotfix merged in 111 and fully fixed by bug 1787182 in 114).

(In reply to Juan Martinez from comment #1)

Non-snap Firefox does not exhibit the same behavior on same machine / OS install

Please also attach about:support of that non-snap Firefox. Thanks!

Juan, could you share about:support from non snap? Also, can you give a test to MOZ_ENABLE_WAYLAND=1 firefox to check if Xwayland / Wayland has a play? Upstream issue linked might be a dupe.

And by any chance, can you test core22 base? I think you need snap refresh --channel=candidate/core22 firefox

Flags: needinfo?(juanmart)
See Also: → 1847175

This might have evolved a lot since the switch to core22, can we get an update ? Otherwise we should consider RESOLVED:WORKSFORME

Flags: needinfo?(juanmart)
Flags: needinfo?(juanmart)

Redirect a needinfo that is pending on an inactive user to the triage owner.
:gerard-majax, since the bug has recent activity, could you please find another way to get the information or close the bug as INCOMPLETE if it is not actionable?

For more information, please visit BugBot documentation.

Flags: needinfo?(juanmart) → needinfo?(lissyx+mozillians)

Based on lack of other reports and that my AMD hardware properly reports GPU now on core22 and Google Earth is smooth and GPU properly reported, I'm going to close as WORKSFORME. Please file a new bug if you experience this with about:support, snap info firefox as well as snap connections firefox at least.

Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(lissyx+mozillians)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: