Ubuntu 24.10 Security center: Unable to create GL context

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.

I have exactly same problem with App Center in clean fresh install of Xubuntu 24.10. Nvidia driver 560.35.03.

(snap-store:6688): Gdk-CRITICAL **: 01:27:00.745: gdk_gl_context_make_current: assertion 'GDK_IS_GL_CONTEXT (context)' failed
** (snap-store:6688): WARNING **: 01:27:00.745: Failed to initialize GLArea: Unable to create a GL context

And this every 2 milliseconds while moving mouse over empty window

** (snap-store:8360): CRITICAL **: 01:44:40.289: void fl_keyboard_manager_sync_modifier_if_needed(FlKeyboardManager *, guint, double): assertion 'FL_IS_KEYBOARD_MANAGER(self)' failed

I am having this issue as well. I new to Linux in general, Ubuntu especially so please pardon my ignorance but…what is X11?

https://en.wikipedia.org/wiki/X_Window_System

I am having the same issue with firmware updater…

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.

EDITv2: I’ve also filed Bug #2088456 “nvidia-560 driver causes issues in x11 mode (deskt...” : Bugs : nvidia-graphics-drivers-560 package : Ubuntu

1 Like