Closed Bug 1821944 Opened 2 years ago Closed 2 years ago

No nvidia gpu detected on snap

Categories

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

Desktop
Linux
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mar.kolya, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

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

Steps to reproduce:

Installed fresh Ubuntu 11:10 with nvidia binary drivers
installed firefox snap (edge, tried beta - same result)

Actual results:

Firefox doesn't detect nvidia GPU and runs with software rendering

Expected results:

Nvidia GPU should have been detected.
Using 'direct' (non snap) version correctly detects and uses nvidia GPU on the same host.

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

Component: Untriaged → Graphics
Product: Firefox → Core

FWIW: it looks more like snap packaging issue rather than actual firefox issues.

Also correction: I used ubuntu 22:10

Blocks: snap
Component: Graphics → Release Automation: Snap
OS: Unspecified → Linux
Product: Core → Release Engineering
Hardware: Unspecified → Desktop
Version: Firefox 112 → unspecified
Component: Release Automation: Snap → Third Party Packaging
Product: Release Engineering → Firefox Build System

(In reply to Nikolay Martynov from comment #0)

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

Steps to reproduce:

Installed fresh Ubuntu 11:10 with nvidia binary drivers
installed firefox snap (edge, tried beta - same result)

Actual results:

Firefox doesn't detect nvidia GPU and runs with software rendering

Expected results:

Nvidia GPU should have been detected.
Using 'direct' (non snap) version correctly detects and uses nvidia GPU on the same host.

Ubuntu 11.10 ? I suspect you meant 22.10. Please share about:support

Flags: needinfo?(mar.kolya)
Attached file about:config from snap

Can you share snap connections firefox ?

Interface                       Plug                            Slot                                                  Notes
audio-playback                  firefox:audio-playback          :audio-playback                                       -
audio-record                    firefox:audio-record            :audio-record                                         -
avahi-observe                   firefox:avahi-observe           :avahi-observe                                        -
browser-support                 firefox:browser-sandbox         :browser-support                                      -
camera                          firefox:camera                  :camera                                               -
content[gnome-3-38-2004]        firefox:gnome-3-38-2004         gnome-3-38-2004:gnome-3-38-2004                       -
content[gtk-3-themes]           firefox:gtk-3-themes            gtk-common-themes:gtk-3-themes                        -
content[hunspell-dictionaries]  firefox:hunspell-dictionaries   hunspell-dictionaries-1-7-2004:hunspell-dictionaries  -
content[icon-themes]            firefox:icon-themes             gtk-common-themes:icon-themes                         -
content[sound-themes]           firefox:sound-themes            gtk-common-themes:sound-themes                        -
cups-control                    firefox:cups-control            :cups-control                                         -
dbus                            -                               firefox:dbus-daemon                                   -
desktop                         firefox:desktop                 :desktop                                              -
desktop-legacy                  firefox:desktop-legacy          :desktop-legacy                                       -
gsettings                       firefox:gsettings               :gsettings                                            -
hardware-observe                firefox:hardware-observe        :hardware-observe                                     -
home                            firefox:home                    :home                                                 -
joystick                        firefox:joystick                :joystick                                             -
mount-control                   firefox:host-hunspell           :mount-control                                        -
mpris                           -                               firefox:mpris                                         -
network                         firefox:network                 :network                                              -
network-bind                    firefox:network-bind            :network-bind                                         -
network-observe                 firefox:network-observe         -                                                     -
opengl                          firefox:opengl                  :opengl                                               -
personal-files                  firefox:dot-mozilla-firefox     :personal-files                                       -
removable-media                 firefox:removable-media         :removable-media                                      -
screen-inhibit-control          firefox:screen-inhibit-control  :screen-inhibit-control                               -
system-files                    firefox:etc-firefox             :system-files                                         -
system-packages-doc             firefox:system-packages-doc     :system-packages-doc                                  -
u2f-devices                     firefox:u2f-devices             :u2f-devices                                          -
unity7                          firefox:unity7                  :unity7                                               -
upower-observe                  firefox:upower-observe          :upower-observe                                       -
wayland                         firefox:wayland                 :wayland                                              -
x11                             firefox:x11                     :x11                                                  -
Flags: needinfo?(mar.kolya)

Not sure if this is related, but I also get this in STDOUT of snap firefox:

$ firefox
Gtk-Message: 09:35:16.484: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
Gtk-Message: 09:35:19.299: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[ERROR glean_core] Error setting metrics feature config: Json(Error("EOF while parsing a value", line: 1, column: 0))
libEGL warning: DRI2: failed to create dri screen
libEGL warning: DRI2: failed to create dri screen
[fluent] Missing message in locale en-CA: webgpu-default-adapter
[fluent] Missing message in locale en-CA: webgpu-fallback-adapter
[fluent] Missing message in locale en-CA: webgpu-default-adapter
[fluent] Missing message in locale en-CA: webgpu-fallback-adapter

I wonder if libEGL warning: DRI2: failed to create dri screen is related.

See Also: → 1822908
Duplicate of this bug: 1822908

Hi folks,

I'm told that using the core22 version of the desktop-launcher might help with this. We have a WIP core22-based version of the Firefox snap on a candidate channel, if you'd like to give it a try and see if it helps: sudo snap refresh --channel=candidate/core22 firefox

(In reply to Amin Bandali [:bandali] from comment #10)

Hi folks,

I'm told that using the core22 version of the desktop-launcher might help with this. We have a WIP core22-based version of the Firefox snap on a candidate channel, if you'd like to give it a try and see if it helps: sudo snap refresh --channel=candidate/core22 firefox

Hi Amin, it looks like same the same using that candidate on the AMD end:

kain@kain-G5-5505:~$ snap list
Name                       Version                     Rev    Tracking            Publisher     Notes
bare                       1.0                         5      latest/stable       canonical✓    base
bitwarden                  2023.2.0                    83     latest/stable       bitwarden✓    -
code                       ee2b180d                    122    latest/stable       vscode✓       classic
core                       16-2.58.3                   14946  latest/stable       canonical✓    core
core18                     20230308                    2714   latest/stable       canonical✓    base
core20                     20230308                    1852   latest/stable       canonical✓    base
core22                     20230304                    547    latest/stable       canonical✓    base
dbeaver-ce                 23.0.0.202303040621         221    latest/stable       dbeaver-corp  -
discord                    0.0.25                      150    latest/stable       snapcrafters  -
firefox                    111.0-2                     2453   latest/candidate/…  mozilla✓      -
gaming-graphics-core22     23.0.0~kisak1~j             41     kisak-fresh/stable  canonical✓    -
gnome-3-28-1804            3.28.0-19-g98f9e67.98f9e67  161    latest/stable       canonical✓    -
gnome-3-38-2004            0+git.6f39565               119    latest/stable/…     canonical✓    -
gnome-42-2204              0+git.09673a5               65     latest/stable/…     canonical✓    -
gtk-common-themes          0.1-81-g442e511             1535   latest/stable/…     canonical✓    -
snap-store                 41.3-76-g2e8f3b0            935    latest/stable/…     canonical✓    -
snapd                      2.58.3                      18596  latest/stable       canonical✓    snapd
snapd-desktop-integration  0.1                         71     latest/stable/…     canonical✓    -
steam                      1.0.0.75                    124    latest/candidate    canonical✓    -
kain@kain-G5-5505:~$ firefox
ATTENTION: default value of option mesa_glthread overridden by environment.
/usr/share/libdrm/amdgpu.ids: No such file or directory
ATTENTION: default value of option mesa_glthread overridden by environment.
amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!
ATTENTION: default value of option mesa_glthread overridden by environment.

(In reply to Amin Bandali [:bandali] from comment #10)

Hi folks,

I'm told that using the core22 version of the desktop-launcher might help with this. We have a WIP core22-based version of the Firefox snap on a candidate channel, if you'd like to give it a try and see if it helps: sudo snap refresh --channel=candidate/core22 firefox

sudo snap refresh --channel=candidate/core22 firefox - seems to help, at least I see in about:support that nvidia card was detected.
Thanks!

Is there a version of this with 'nightly'?

Attached file about:support output
I tested this on a 22.04 install with rev 2487 from latest/stable and do get hardware rendering. I'm adding the output of about:support here
Attached file about:support core22
I'm also seeing hardware rendering with the core22 build from stable/ubuntu-23.04 (rev 2353). I'm adding the output of about:support here

The severity field is not set for this bug.
:gerard-majax, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(lissyx+mozillians)

Issue resolved for AMD on snap latest/edge 113.0a1

i dont know if this alert is problematic or not for devices with 2 GPUs but posting it bellow just in case:

amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!

(In reply to Nikolay Martynov from comment #12)

(In reply to Amin Bandali [:bandali] from comment #10)

Hi folks,

I'm told that using the core22 version of the desktop-launcher might help with this. We have a WIP core22-based version of the Firefox snap on a candidate channel, if you'd like to give it a try and see if it helps: sudo snap refresh --channel=candidate/core22 firefox

sudo snap refresh --channel=candidate/core22 firefox - seems to help, at least I see in about:support that nvidia card was detected.
Thanks!

Glad to hear!

Is there a version of this with 'nightly'?

Unfortunately not at the moment, the core22 branch/channel is currently primarily built for stable.

(In reply to Kain from comment #16)

Issue resolved for AMD on snap latest/edge 113.0a1

i dont know if this alert is problematic or not for devices with 2 GPUs but posting it bellow just in case:

amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!

Thanks for confirming, Kain! As for that amdgpu warning, I'm not sure, but it might be mesa-related, perhaps?

Any thoughts, Ken?

Flags: needinfo?(lissyx+mozillians) → needinfo?(ken.vandine)

Sorry, looks like I mistakenly removed the previously-added needinfo for Alexandre. Restoring it.

Flags: needinfo?(lissyx+mozillians)
Severity: -- → S2
Flags: needinfo?(lissyx+mozillians)
Priority: -- → P4
See Also: → 1828196

Redirect a needinfo that is pending on an inactive user to the triage owner.
:gerard-majax, since the bug has high severity, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(ken.vandine) → needinfo?(lissyx+mozillians)

This was related to core22 which now has shipped.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(lissyx+mozillians)
Resolution: --- → WORKSFORME

Currently this still doesn't work on edge snap with clean default profile on current ubuntu with nvidia 545 or 550 driver.

(In reply to Nikolay Martynov from comment #22)

Currently this still doesn't work on edge snap with clean default profile on current ubuntu with nvidia 545 or 550 driver.

likely due to bug 1876614 but no activity on ubuntu bug https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-545/+bug/2051298

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: