Bug 483592

Summary: After upgrading to Plasma 6, the UI for things like Firefox gets corrupted when using two screens
Product: [Plasma] kwin Reporter: AlexDeLorenzo.dev <alex>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: nate, vlad.zahorodnii, xaver.hugl
Priority: NOR Keywords: multiscreen, qt6, wayland-only
Version First Reported In: 6.0.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of UI corruption on Plasma
Screenshot of UI corruption outside of FF

Description AlexDeLorenzo.dev 2024-03-14 18:49:31 UTC
SUMMARY
After upgrading to Plasma 6, the UI for things like Firefox gets corrupted when using two screens. See attachment for an example of what's happening.


STEPS TO REPRODUCE
1.  Add additional screen
2. Open many Firefox windows


OBSERVED RESULT
After some time, the Firefox UI will start flickering and showing UI corruption.


EXPECTED RESULT
Firefox should work as well as it did on Plasma 5.27 without GUI corruption.


SOFTWARE/OS VERSIONS
Operating System: Arch 
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.9
Graphics Platform: Wayland
Comment 1 AlexDeLorenzo.dev 2024-03-14 18:50:47 UTC
Created attachment 167200 [details]
Screenshot of UI corruption on Plasma
Comment 2 Nate Graham 2024-04-09 22:55:24 UTC
Do you have an NVIDIA GPU?

Does it happen with a single screen?

Is Firefox always involved, or does it also happen when Firefox isn't open?

Does it happen on X11 too, or only Wayland?
Comment 3 AlexDeLorenzo.dev 2024-04-09 23:43:09 UTC
(In reply to Nate Graham from comment #2)
> Do you have an NVIDIA GPU?

Nope, I'm using the iGPU that comes with a Ryzen 7 5850U PRO. I think it's marketed as Vega 8 and is of the Cezanne family. There's no dGPU on this laptop.
 
> Does it happen with a single screen?

So far not that I've seen, but I also stopped using Firefox because of it. I can try using it again on a single screen to see if it reproduces. 

> Is Firefox always involved, or does it also happen when Firefox isn't open?

So far the main culprit is Firefox, because it is consistent, but when Firefox is open other things start to corrupt after a while, too.

I'm also experiencing kwin titlebar corruption as reported here: https://bugs.kde.org/show_bug.cgi?id=484338

> Does it happen on X11 too, or only Wayland?

I haven't tried on X11, but I'll give it a go. I've just been using Wayland consistently.
Comment 4 AlexDeLorenzo.dev 2024-04-10 04:25:16 UTC
On a single screen, I've run into some UI corruption outside of Firefox on Wayland. Not sure if this is related, but I've uploaded a screenshot of what I'm seeing.
Comment 5 AlexDeLorenzo.dev 2024-04-10 04:26:13 UTC
Created attachment 168327 [details]
Screenshot of UI corruption outside of FF
Comment 6 Nate Graham 2024-04-11 15:48:45 UTC
That looks unrelated.
Comment 7 AlexDeLorenzo.dev 2024-04-12 20:10:39 UTC
So I tried Firefox on X11, and there's no corruption. Looks like it's confined to Wayland.
Comment 8 AlexDeLorenzo.dev 2024-04-30 23:08:08 UTC
Found that this corruption is limited to Firefox Nightly. Switching to the normal release fixed it.
Comment 9 Zamundaaa 2024-05-01 02:14:37 UTC
Okay, that's definitely a bug in Firefox then. Please report it to Mozilla