You are not logged in.
After a recent update, GTK4 applications are 'glitched out', to the point where no objects in the window can be made out. Here's a screenshot of pavucontrol: https://0x0.st/8ruo.png. GTK3 applications do not seem to be affected.
One possibly relevant point is that I use qt5-styleplugins w/ environment variable QT_QPA_PLATFORMTHEME=gtk2 to run some legacy Qt apps long past their deprecation date. This is the only significant customization I have to my GTK/QT setup, and I doubt it's causing this problem.
I am not sure where to begin with troubleshooting, other than providing some general information. It is unclear to me whether this is a graphics issue or a window manager issue.
Here's my system (note emphasis on important details):
OS: Arch Linux x86_64
Kernel: 6.12.4-arch1-1
Uptime: 6 days, 57 mins
Shell: zsh 5.9
WM: sway
Theme: Arc-Dark [GTK3]
Icons: Arc-Dark [GTK3]
Terminal: foot
CPU: AMD Ryzen 7 7700X (16) @ 5.573GHz
GPU: AMD ATI Radeon R9 290/390
GPU: AMD ATI 33:00.0 Raphael
Graphics Kernel Module: amdgpu
GTK4 Version: 1:4.16.7-1
Graphics Driver: amdvlk 204.Q4.2-1
I would appreciate your troubleshooting insights and suggestions for how to tackle this. There are several GTK4 applications I depend on regularly, so it's a bummer not to have them.
EDIT: The solution was to set the environment variable GSK_RENDERER=gl. I use zsh so I just popped an export line into ~/.zshenv. Do as needed to accomplish similar results for your system.
Last edited by Bicyforecastle (2024-12-27 00:29:47)
Offline
gtk4-demo # bad?
GSK_RENDERER=gl gtk4-demo # good?
There are several GTK4 applications I depend on regularly
There's a rumor that gimp now switches to gtk because the gnome devs stoped breaking it because they're too busy breaking gtk4
Offline
Likely only tangentially related, but what happens if xou remove amdvlk and opt for vulkan-radeon instead?
Last edited by V1del (2024-12-24 13:33:00)
Online
I also have this issue, for me it looks more like this:
https://imgur.com/a/Xy6zTo0
Obviously I updated everything, My laptop is a tuxedo sirius 16 so everything AMD
Offline
And did you test "GSK_RENDERER=gl" or the alternative vulkan driver?
Offline
gtk4-demo # bad? GSK_RENDERER=gl gtk4-demo # good?
Thank you for the suggestion, Seth.
gtk4-demo is in deed bad, but running it with GSK_RENDERER=gl is good!
I assume I can then just slap "GSK_RENDERER=gl" in my .zshenv, and be on my way?
To be honest, I am unsure of the ramifications of this environment variable change. Are there any potential 'side effects' I should look out for?
Offline
Depends on whether and what picks it up from there, https://wiki.archlinux.org/title/Environment_variables - you basically want to make sure your entire session gets it.
The gl (you can also try ngl) backend was the default up until recently, vulkan is maybe a tid-bit faster (or not) - speaking of which, did you test V1del's suggestion?
Offline
"export GSK_RENDERER=gl" in ~/.zshenv appears to have fixed everything. Thank you, Seth!
Offline
\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Still look into the the VK driver alternatives, gtk4 might step-child the non-vulkan backends (and drop them at some point)
Offline