Skip to main content
Topic: Graphics issues running various programs (Read 124 times) previous topic - next topic
Ambie and 1 Guest are viewing this topic.

Graphics issues running various programs

Hi,

Any program based on electron/chrome I have to run with `--disable-gpu` otherwise they do not work.

My main concern now is linux programs built with flutter do not launch at all, with following errors:
Code: [Select]
Gdk-CRITICAL **: 15:56:58.760: gdk_gl_context_make_current: assertion 'GDK_IS_GL_CONTEXT (context)' failed
** WARNING **: 15:56:58.760: Failed to initialize GLArea: No available configurations for the given RGBA pixel format

Output of `glxinfo | grep "OpenGL renderer"`:
Code: [Select]
`OpenGL renderer string: NVIDIA GeForce RTX 4060 Ti/PCIe/SSE2`

I have tried some env vars like:
Code: [Select]
FLUTTER_SKIA_RENDERER=software GDK_RENDERING=software
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia

I am using xlibre, but had similar issues on xorg if i remember correctly.
Kernel is: Linux fsnlpc072 6.16.4-artix1-1 #1 SMP PREEMPT_DYNAMIC Fri, 29 Aug 2025 08:20:47 +0000 x86_64 GNU/Linux
I have disabled igp in bios and using only nvidia discreet card with nvidia proprietary drivers (nvidia-dkms).

Any ideas? thanks!

Re: Graphics issues running various programs

Reply #1
Do you have any GTK2 env vars set? If so, pls unset and try again.

artist

 

Re: Graphics issues running various programs

Reply #2
Thanks for the reply.

I have no GTK2 env vars set.
(apart from:
GTK_MODULES=canberra-gtk-module
QT_QPA_PLATFORMTHEME=gtk2
QT_STYLE_OVERRIDE=gtk
)

Not sure if the ABI mismatch might be causing it:
Code: [Select]
(WW) NVIDIA: The driver was compiled against the X.Org server SDK from commit 8c4b137237498f9f67e0e44e650edcb39851c870 and may not be compatible with the final version of this SDK.
(WW) NVIDIA: This server has an unsupported input driver ABI version (have 26.0, need < 25.0). The driver will continue to load, but may behave strangely.

Re: Graphics issues running various programs

Reply #3
Sorry for not being clear.

Pls unset:
QT_QPA_PLATFORMTHEME
QT_STYLE_OVERRIDE

and test again.

artist