You are not logged in.

#1 2024-12-23 05:25:18

Bicyforecastle
Member
Registered: 2023-05-19
Posts: 7

GTK4 Applications Completely 'Glitched Out'

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

#2 2024-12-23 09:35:05

seth
Member
Registered: 2012-09-03
Posts: 60,768

Re: GTK4 Applications Completely 'Glitched Out'

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 tongue

Offline

#3 2024-12-23 15:02:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,874

Re: GTK4 Applications Completely 'Glitched Out'

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)

Offline

#4 2024-12-23 18:14:09

Szybet
Member
Registered: 2021-11-29
Posts: 9

Re: GTK4 Applications Completely 'Glitched Out'

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

#5 2024-12-23 20:28:01

seth
Member
Registered: 2012-09-03
Posts: 60,768

Re: GTK4 Applications Completely 'Glitched Out'

And did you test "GSK_RENDERER=gl" or the alternative vulkan driver?

Offline

#6 2024-12-24 00:54:37

Bicyforecastle
Member
Registered: 2023-05-19
Posts: 7

Re: GTK4 Applications Completely 'Glitched Out'

seth wrote:
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

#7 2024-12-24 09:37:32

seth
Member
Registered: 2012-09-03
Posts: 60,768

Re: GTK4 Applications Completely 'Glitched Out'

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

#8 2024-12-27 00:30:40

Bicyforecastle
Member
Registered: 2023-05-19
Posts: 7

Re: GTK4 Applications Completely 'Glitched Out'

"export GSK_RENDERER=gl" in ~/.zshenv appears to have fixed everything. Thank you, Seth!

Offline

#9 2024-12-27 09:08:40

seth
Member
Registered: 2012-09-03
Posts: 60,768

Re: GTK4 Applications Completely 'Glitched Out'

\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

Board footer

Powered by FluxBB