I’m having issue running security center and app center on Xorg + nvidia 555 (and 560) drivers. When trying to run those apps a window is created with only a message: Unable to create GL context. The error in debug mode is long, but critical messages are:
gdk_gl_context_make_current: assertion ‘GDK_IS_GL_CONTEXT (context)’ failed
void fl_keyboard_manager_sync_modifier_if_needed(FlKeyboardManager *, guint, double): assertion ‘FL_IS_KEYBOARD_MANAGER(self)’ failed
This affect new security center and app center. It also causes Nautilus to crash sometimes on simple file copy.
Update: this only happens on X11 session. It seems that official snaps are not working under X11 and nvidia. Maybe because the default session with nvidia is now Wayland? X11 should be supported.
There were some recent fixes to improve Nvidia driver support for Ubuntu 24.04 by @zyga here:
I’d expect that all of these changes would already be available in the snapd on an Ubuntu 24.10 variant though. Maybe there are further problems with the new Nvidia drivers?
There’s a slightly different set of GL libraries that get loaded to render via Wayland vs. rendering via X11. So it is quite possible that one is working while the other is not. That is not intentional though.
I’ve just tested this on my Oracular system running Nvidia 560 driver and Wayland - default - is working while X11 is crashing.
(security_center:40886): Gdk-CRITICAL **: 11:46:49.906: gdk_gl_context_make_current: assertion ‘GDK_IS_GL_CONTEXT (context)’ failed
** (security_center:40886): WARNING **: 11:46:49.906: Failed to initialize GLArea: Nie można utworzyć kontekstu GL
My test snap is also crashing in both wayland and x11 (test-snapd-nvidia.64). I will check if there’s something missing in the driver or in the snapd part of the stack.
EDIT: I can reproduce the failure using gtk-4-examples debian package, and the gtk4-demo program. Find and run the OpenGL shadertoy example - it fails the exact same way - unable to create a GL context.