Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Graphics issues running various programs (Read 372 times) previous topic - next topic
0 Members 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

Re: Graphics issues running various programs

Reply #4
No change, same issue with both electron stuff (Discord, visual studio code, etc all need --disable-gpu), and flutter apps still not launching with same gl errors.

I guess I need to start downgrading things, to see what's causing it.

To go back to xorg, can I just as easily install it as with xlibre? I just need to double check if it has something to do with xlibre...

Re: Graphics issues running various programs

Reply #5
This might be related to nvidia but I have no hardware nor experience with it.

artist

Re: Graphics issues running various programs

Reply #6
I've downgraded to xorg, but the issue remains.

I now have an identical artix setup on another pc, both up to date, except the other has a different nvidia gpu. The other one runs fine without any of these issues.

Somewhere is a problem in my environment I cannot figure it out.

Re: Graphics issues running various programs

Reply #7
Did you check the Xorg and any session log files?

artist

Re: Graphics issues running various programs

Reply #8
I had these from some previous troubleshooting:
Code: [Select]
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __NV_PRIME_RENDER_OFFLOAD=1
export __VK_LAYER_NV_optimus=non_layer
export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json
Removing it solved all issues.

Thanks

Re: Graphics issues running various programs

Reply #9
Thx for the feedback!

Good to hear the issues are solved.  :)

artist