Bug 404375 - Artifacts and flickering with Intel and Nvidia GPUs since Qt 5.12
Summary: Artifacts and flickering with Intel and Nvidia GPUs since Qt 5.12
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 403812 406769 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-02-15 00:21 UTC by Filip Fila
Modified: 2022-04-03 04:34 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Output of qdbus ord.kde.KWin (5.94 KB, text/plain)
2019-02-15 00:21 UTC, Filip Fila
Details
output of "cat /proc/`pidof kwin_x11`/maps | grep gl" (3.04 KB, text/plain)
2019-02-15 12:53 UTC, Filip Fila
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Fila 2019-02-15 00:21:12 UTC
Created attachment 118092 [details]
Output of qdbus ord.kde.KWin

SUMMARY
Even after updating to Plasma 5.15 there are severe visual artifacts that started occurring after an update to Qt 5.12. The visual artifacts are various, ranging from random black elements to titlebar flickering. Consequently it should mean https://phabricator.kde.org/R108:5d63b9c05bbe0c6545b3eeea98d95b40f800fb55 didn't quite solve the issue.

STEPS TO REPRODUCE
1. Use Qt 5.12 and probably Intel (yes I'm using modesetting)
2. Use PC normally and the glitches eventually occur 

OBSERVED RESULT
https://youtu.be/EDk21uo6m1M

EXPECTED RESULT
No visual artifacts.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.15.0
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1
Kernel Version: 4.20.5-1-MANJARO

ADDITIONAL INFORMATION
Output of qdbus ord.kde.KWin is attached.

Note: It's not SierraBreezeEnhanced's fault, it's all the same with Breeze.
Comment 1 Alexander Volkov 2019-02-15 11:09:18 UTC
Please, provide output of "cat /proc/`pidof kwin_x11`/maps | grep gl".
Comment 2 Filip Fila 2019-02-15 12:53:36 UTC
Created attachment 118099 [details]
output of "cat /proc/`pidof kwin_x11`/maps | grep gl"

Hi, thanks for looking into this.

I've attached the output as a .txt file.
Comment 3 Alexander Volkov 2019-02-15 14:33:32 UTC
Maybe it's https://bugreports.qt.io/browse/QTBUG-73715
Comment 4 Filip Fila 2019-02-15 15:42:45 UTC
(In reply to Alexander Volkov from comment #3)
> Maybe it's https://bugreports.qt.io/browse/QTBUG-73715

Hmm but I use Intel, these bugs started appearing from 5.12.0 (not 5.12.1) and they happen both with the modesetting and the xf86-video-intel driver.

Another thing I should have mentioned in the steps to reproduce: the easiest way to detect issues is to observe OSDs. They're meant to fade out smoothly, but with Qt 5.12 the animation either fails entirely or stutters a lot.
Comment 5 Filip Fila 2019-02-19 19:22:43 UTC
Another sure-shot way of triggering and observing the issues is to play a video game (that suspends compositing I believe) and then exit it.
Comment 6 Vlad Zahorodnii 2019-02-25 10:04:14 UTC
*** Bug 403812 has been marked as a duplicate of this bug. ***
Comment 7 Alexander Volkov 2019-02-25 10:30:19 UTC
Probably with Qt 5.12.0 it was a bug that was fixed by https://phabricator.kde.org/R108:5d63b9c05bbe0c6545b3eeea98d95b40f800fb55

https://bugreports.qt.io/browse/QTBUG-73715 can be produced with modesetting, and there was also https://bugreports.qt.io/browse/QTBUG-34492 on intel.
Comment 8 Filip Fila 2019-03-25 20:12:38 UTC
Severe flickering and artifacts after re-enabling compositing *are* still an issue with Qt 5.12.2

OSD stutter issue was fixed with: https://phabricator.kde.org/R120:9a7de4e02399880a0e649bad32a40ad820fc87eb
Comment 9 Martin Flöser 2019-03-25 20:30:47 UTC
Well I don't know how often I told people to not animate opacity... In that point qml sucks. It's way too easy to do inefficient things like animating opacity or geometry.
Comment 10 Filip Fila 2019-09-09 15:50:36 UTC
*** Bug 406769 has been marked as a duplicate of this bug. ***
Comment 11 Janek Bevendorff 2019-10-28 10:12:43 UTC
I started seeing this on Arch Linux with Plasma 5.17. I am not exactly sure what triggers it, but I seem to be getting it mostly (but not only) after certain events like changing some compositing-related settings or other actions that somehow mess with the compositor.
Once it starts, I get massive screen flicker whenever I open a new window and random black spots appear when a game decides to suspend compositing. Flickering only goes away after restarting KWin.

I have an Nvidia card running with the proprietary driver.
Comment 12 postix 2022-03-04 12:59:34 UTC
Do you still experience this with latest Qt 5.15.3 and KWin 5.24.2?
Comment 13 Bug Janitor Service 2022-03-19 04:34:55 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 14 Bug Janitor Service 2022-04-03 04:34:54 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!