Bug 470503

Summary: [nvidia] Screen corruption after changing theme
Product: [Plasma] kwin Reporter: Jean-Francois Roy <jf>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: carlos.colorado, grahamperrin, nate, postix, sam
Priority: NOR    
Version: 5.27.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: compositor recursion

Description Jean-Francois Roy 2023-06-01 03:55:37 UTC
SUMMARY
When changing the global theme via system settings, say from Breeze to Breeze Dark, the screen becomes corrupted, rendering incorrect textures or compositing textures in the wrong place.

STEPS TO REPRODUCE
1. Start a plasma wayland session
2. Change the global theme.

OBSERVED RESULT
Corrupt desktop compositing.

EXPECTED RESULT
Correct desktop compositing.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.3.5-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7950X3D 16-Core Processor
Memory: 62.5 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4090/PCIe/SSE2
Manufacturer: ASUS

ADDITIONAL INFORMATION
Linux: 6.3.5-arch1-1
Nvidia drivers: 530.41.03-15

Taking a screenshot with Spectacle does not show corruption, it is only on-screen.
Comment 1 Jean-Francois Roy 2023-06-06 13:08:45 UTC
It is less reproducible than I initially thought. There may need to be some memory pressure or some extended use of the session for the issue to repro. I'll keep trying to figure out a reliable method. Once the system is in a bad place, it repros reliably.

I have a photo I can share of it, though I had to anonymize it.
Comment 2 Jean-Francois Roy 2023-06-06 13:09:39 UTC
Created attachment 159497 [details]
compositor recursion