You are not logged in.

#1 2024-06-17 11:18:28

polyfish0
Member
Registered: 2024-06-17
Posts: 10

[KDE6] Qt 5 Widgets not rendering until they have to repaint

I have the Issue that some widgets are not rendered. They are invisible until they have to repaint. But this is only happening with Qt5 applications.
Everything is up to date, I updated and restarted my computer 5 minutes ago.

My computer:
    - KDE Plasma version: 6.0.5
    - KDE Framework version: 6.3.0
    - Qt version: 6.7.1
    - Kernel: 6.9.5-arch1-1
    - Graphics platform: Wayland
    - CPU: Ryzen 7 5800X
    - RAM: 32 GB
    - GPU: RX 7900 XTX
    - Chipset: X570

I have a video where you can see my problem https://youtu.be/L3eK6vhb-GA

Last edited by polyfish0 (2024-06-21 04:13:12)

Offline

#2 2024-06-17 11:59:18

TheFrostyFungai
Member
Registered: 2024-06-17
Posts: 13

Re: [KDE6] Qt 5 Widgets not rendering until they have to repaint

What driver did you install for the GPU?

Offline

#3 2024-06-17 13:30:23

polyfish0
Member
Registered: 2024-06-17
Posts: 10

Re: [KDE6] Qt 5 Widgets not rendering until they have to repaint

amdgpu

> sudo lshw -c video
  *-display                 
       description: VGA compatible controller
       product: Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:0d:00.0
       logical name: /dev/fb0
       version: c8
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=amdgpu latency=0 resolution=3840,2160
       resources: iomemory:700-6ff iomemory:780-77f irq:141 memory:7000000000-77ffffffff memory:7800000000-780fffffff ioport:f000(size=256) memory:fcc00000-fccfffff memory:fcd00000-fcd1fff

TheFrostyFungai wrote:

What driver did you install for the GPU?

Offline

#4 2024-06-17 13:37:33

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,290

Re: [KDE6] Qt 5 Widgets not rendering until they have to repaint

Have you installed all plasma-workspace optional dependencies that are relevant to Qt5 applications?

Offline

#5 2024-06-17 13:58:43

TheFrostyFungai
Member
Registered: 2024-06-17
Posts: 13

Re: [KDE6] Qt 5 Widgets not rendering until they have to repaint

worth also checking (if not installed)

sudo pacman -Syu mesa vulkan-radeon

is direct rendering enabled?

 glxinfo | grep "direct rendering" 

Offline

#6 2024-06-17 15:15:47

polyfish0
Member
Registered: 2024-06-17
Posts: 10

Re: [KDE6] Qt 5 Widgets not rendering until they have to repaint

Yes, all three are installed

arojas wrote:

Have you installed all plasma-workspace optional dependencies that are relevant to Qt5 applications?

TheFrostyFungai wrote:

worth also checking (if not installed)

sudo pacman -Syu mesa vulkan-radeon

is direct rendering enabled?

 glxinfo | grep "direct rendering" 

Offline

#7 2024-06-17 15:45:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,946

Re: [KDE6] Qt 5 Widgets not rendering until they have to repaint

Does this also happen on X11 or only wayland?
What other examples are affected besides the dialog of promoted widgets? (The designer for the most part looks ok?)
Does the UI style matter?

The video looks like the dialog background matches some color key for overlay windows hmm

Offline

#8 2024-06-17 19:52:48

polyfish0
Member
Registered: 2024-06-17
Posts: 10

Re: [KDE6] Qt 5 Widgets not rendering until they have to repaint

Ok so, I asked also on reddit and they talked about the meta group `kf5`. It was not fully installed and after I installed it, everything works.
So thank you guys for the help. The solution to my problem is `sudo pacman -Sy kf5`

Offline

#9 2024-06-17 20:00:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,946

Offline

#10 2024-06-21 04:14:38

polyfish0
Member
Registered: 2024-06-17
Posts: 10

Re: [KDE6] Qt 5 Widgets not rendering until they have to repaint

Nvm it is not solved. It worked first, but just know I uninstalled frameworkintegration5 to test if this was the missing package but now I have the bug again but with every package from kf5 installed.
Also sorry for the late anwser. I was not at home.

Offline

#11 2024-06-21 04:20:53

polyfish0
Member
Registered: 2024-06-17
Posts: 10

Re: [KDE6] Qt 5 Widgets not rendering until they have to repaint

seth wrote:

Does this also happen on X11 or only wayland?
What other examples are affected besides the dialog of promoted widgets? (The designer for the most part looks ok?)
Does the UI style matter?

The video looks like the dialog background matches some color key for overlay windows hmm

It only happen on Wayland.
I have a second tool but that is my time tracking tool from my company. This is developed in PyQt5.
I am not completley sure what you mean with "UI style". I switched to light mode to test it and the bug is still there.

Offline

#12 2024-06-21 04:30:24

polyfish0
Member
Registered: 2024-06-17
Posts: 10

Re: [KDE6] Qt 5 Widgets not rendering until they have to repaint

Ok I now found out, that the bug only happen when I use fractional sacling. When I go from 125% back to 100% on Wayland, the bug is also there gone

Offline

#13 2024-06-21 04:48:12

polyfish0
Member
Registered: 2024-06-17
Posts: 10

Re: [KDE6] Qt 5 Widgets not rendering until they have to repaint

Ok not it works again. I uninstalled qt5ct and kvantum, reinstalled plasma just with `sudo pacman -Sy plasma` and I also deleted my complete KDE config

Offline

#14 2024-06-21 04:48:46

polyfish0
Member
Registered: 2024-06-17
Posts: 10

Re: [KDE6] Qt 5 Widgets not rendering until they have to repaint

I have the config still on my computer if you want to know something

Offline

#15 2024-06-21 07:23:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,946

Re: [KDE6] Qt 5 Widgets not rendering until they have to repaint

Please don't bump, edit your previous post if nobody has yet replied.

It only happen on Wayland.

This remains true?

not completley sure what you mean with "UI style"

In your case: fusion instead of kvantum, https://wiki.archlinux.org/title/Unifor … Qt_and_GTK

But apparently that's also not the cause?
Does it happen if you "export LIBGL_ALWAYS_SOFTWARE=1" to the client?
Edit: and/or "LIBGL_DRI3_DISABLE=1"

from 125% back to 100% on Wayland, the bug is also there gone … not it works again

Ie. fractional scaling was a red herring?

Last edited by seth (2024-06-21 07:23:56)

Offline

Board footer

Powered by FluxBB