Bug 436555

Summary: kmail app (and others) flickering on Nvidia Hardware
Product: [Plasma] kwin Reporter: ad1rie3
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: ad1rie3, boite.pour.spam, bugs.kde.attila, kde, pandom79
Priority: NOR Flags: vlad.zahorodnii: NVIDIA+
Version: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description ad1rie3 2021-05-03 21:32:47 UTC
SUMMARY
See video https://photos.app.goo.gl/2sqd43hjAUjTXZL4A

STEPS TO REPRODUCE
1. open kmail
2. 
3. 

OBSERVED RESULT
Flicker

EXPECTED RESULT
no flicker

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Fedora 34
(available in About System)
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.80
Qt Version: 5.15.2

ADDITIONAL INFORMATION

Nvidia Hardware
Comment 1 ad1rie3 2021-06-22 08:37:23 UTC
Hello, 

You can see the video of the problem



can you check ? 

https://photos.app.goo.gl/C86tEcLy7wsa13jN8
Comment 2 ad1rie3 2021-06-22 08:39:14 UTC
(In reply to ad1rie3 from comment #1)
> Hello, 
> 
> You can see the video of the problem
> 
> 
> 
> can you check ? 
> 
> https://photos.app.goo.gl/C86tEcLy7wsa13jN8
Comment 3 ad1rie3 2021-06-22 09:56:47 UTC
Another exemple with skype app : 
https://photos.app.goo.gl/LH7ZCyLMoHqgpDsh9
Comment 4 Domenico Panella 2021-11-23 10:11:10 UTC
I'm getting the same problem on Opensuse Tumbleweed. 
At the moment, the affected apps are Falkon Browser (unusable), Kmail and System settings....

Operating System: openSUSE Tumbleweed 20211121
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.15.2-1-default (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Comment 5 Attila 2021-12-26 14:17:55 UTC
Hi,

I can confirm the flickering on Fedora 35. The graphics card is an Nvidia GeForce 9400 in an iMac early 2009.
I can observe the flickering, when I use the nouveau driver and X11.
It works with the nouveau driver on wayland (no flicker) but wayland is still not ready to use on Plasma.
Interesting is that the main window of KMail flickers but the "child" window (click on new e-mail) does not.
By the way "kinfocenter" flickers as well when I click on "devices" -> "device viewer" -> "processors" and expand or collapse the tree.

Everything works properly when I compile and use the Nvidia driver by Nvidia on X11.
So I am not sure if "wayland-generic" is the right component.
Comment 6 Vlad Zahorodnii 2022-01-11 10:09:02 UTC
We've got similar bug reports about having glitches in window decorations when using an nvidia video card.

@Domenico can you describe visual artifacts or maybe attach a photo showing them?
Comment 7 ad1rie3 2022-01-11 10:42:41 UTC
(In reply to Vlad Zahorodnii from comment #6)
> We've got similar bug reports about having glitches in window decorations
> when using an nvidia video card.
> 
> @Domenico can you describe visual artifacts or maybe attach a photo showing
> them?

The video in the ticket description not suffice ? https://photos.app.goo.gl/2sqd43hjAUjTXZL4A
Comment 8 Domenico Panella 2022-01-11 10:52:25 UTC
(In reply to Vlad Zahorodnii from comment #6)
> We've got similar bug reports about having glitches in window decorations
> when using an nvidia video card.
> 
> @Domenico can you describe visual artifacts or maybe attach a photo showing
> them?

You can see them https://gitlab.freedesktop.org/mesa/mesa/-/issues/5731#note_1184944
Comment 9 David Redondo 2022-01-18 10:50:52 UTC
*** Bug 448665 has been marked as a duplicate of this bug. ***
Comment 10 boite.pour.spam 2022-01-18 10:59:16 UTC
I don't use my NVidia card while this bug happens. I've an Intel GPU and I'm not using prime-run to trigger the discrete NVidia's GPU (unless KDE is doing that without telling me).
Comment 11 David Edmundson 2022-01-19 15:19:10 UTC
Can you confirm if this still an issue with the GBM Nvidia path?
Comment 12 boite.pour.spam 2022-01-19 19:19:26 UTC
I'm not using NVidia drivers so clearly it's not NVidia related (of if it is, it also fail on Intel GPU)
Comment 13 Vlad Zahorodnii 2022-01-20 12:12:43 UTC
Can't reproduce on my laptop with an intel gpu. kmail is rendered as expected and its content is not leaked to other windows. Same with falkon. It might be a video driver issue.
Comment 14 ad1rie3 2022-01-23 11:05:30 UTC
i Confirm the bug is gone with GBM path for nvidia hardware ;)
Comment 15 Vlad Zahorodnii 2022-01-24 11:58:30 UTC
Thanks for the update.