some opengl applications don't work on nvidia binary driver with classic confinement
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Expired
|
Undecided
|
Unassigned |
Bug Description
On my 18.04 laptop running nvidia 390.48, I can't launch some 3D applications. Shotcut for example won't launch on my nvidia 18.04 laptop but launches fine on my Intel 16.04 laptop
$ snap version
snap 2.32.4
snapd 2.32.4
series 16
ubuntu 18.04
kernel 4.15.0-13-generic
[Debug ] <ShotcutSetting
[Debug ] <ShotcutSetting
[Debug ] <ShotcutSetting
[Debug ] <ShotcutSetting
[Debug ] <ShotcutSetting
[Debug ] <ShotcutSetting
[Debug ] <ShotcutSetting
[Info ] <Application:
[Info ] <Application:
[Info ] <Application:
[Info ] <Application:
[Info ] <Application:
[Info ] <Application:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
[Warning] <> Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
[Debug ] <MainWindow:
[Debug ] <MainWindow:
[Debug ] <MainWindow:
[Fatal ] <> Could not initialize OpenGL
Aborted (core dumped)
summary: |
- some opengl applications don't work on nvidia binary driver + some opengl applications don't work on nvidia binary driver with classic + confinement |
$ sudo /usr/lib/ snapd/snap- discard- ns shotcut DEBUG=1 shotcut core/current/ usr/bin/ snap" shotcut current/ usr/lib/ snapd/snap- exec 4443/usr/ lib/snapd/ snap-confine snap/shotcut/ 21 shotcut shotcut snapd/seccomp/ bpf//snap. shotcut. shotcut. bin snap/core/ current/ usr/lib/ snapd/snap- exec, /snap/core/ current/ usr/lib/ snapd/snap- exec... )
[sudo] password for alan:
alan@hal:~$ SNAPD_DEBUG=1 SNAP_CONFINE_
2018/04/13 14:36:49.197207 cmd.go:203: DEBUG: restarting into "/snap/
DEBUG: security tag: snap.shotcut.
DEBUG: executable: /snap/core/
DEBUG: confinement: classic
DEBUG: base snap: core
DEBUG: ruid: 1000, euid: 0, suid: 0
DEBUG: rgid: 1000, egid: 0, sgid: 0
DEBUG: apparmor label on snap-confine is: /snap/core/
DEBUG: apparmor mode is: enforce
DEBUG: skipping sandbox setup, classic confinement in use
DEBUG: creating user data directory: /home/alan/
DEBUG: requesting changing of apparmor profile on next exec to snap.shotcut.
DEBUG: loading bpf program for security tag snap.shotcut.
DEBUG: read 14 bytes from /var/lib/
DEBUG: execv(/
DEBUG: argv[1] = shotcut
(process:25763): Gtk-WARNING **: 14:36:49.273: Locale not supported by C library. s::singleton> language "en_GB" s::singleton> deinterlacer "onefield" s::singleton> external monitor "" s::singleton> GPU processing false s::singleton> interpolation "nearest" s::singleton> video mode "" s::singleton> realtime true :Application> Starting Shotcut version 18.03.06 :Application> Linux version :Application> number of logical cores = 8 :Application> locale = QLocale(English, Latin, UnitedKingdom) :Application> install dir = "/snap/ shotcut/ 21/Shotcut. app/bin" :Application> device pixel ratio = 1 :changeTheme> begin :changeTheme> end :MainWindow> begin
Using the fallback 'C' locale.
No appenders registered with logger
[Debug ] <ShotcutSetting
[Debug ] <ShotcutSetting
[Debug ] <ShotcutSetting
[Debug ] <ShotcutSetting
[Debug ] <ShotcutSetting
[Debug ] <ShotcutSetting
[Debug ] <ShotcutSetting
[Info ] <Application:
[Info ] <Application:
[Info ] <Application:
[Info ] <Application:
[Info ] <Application:
[Info ] <Application:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
[Warning] <> Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
[Debug ] <MainWindow:
[Debug ] <MainWindow:
[Debug ] <MainWindow:
[Fatal ] <> Could not initialize OpenGL
Aborted (core dumped)