Bug 383179 - KDE desktop compositing occasionally causes flickering and frozen window contents
Summary: KDE desktop compositing occasionally causes flickering and frozen window cont...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (show other bugs)
Version: 5.10.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-05 21:58 UTC by Mircea Kitsune
Modified: 2022-04-03 04:34 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
postix: Wayland-
postix: X11+


Attachments
Screenshot of Skype notification flickering (3.86 KB, image/png)
2017-08-05 22:02 UTC, Mircea Kitsune
Details
Output of "qdbus org.kde.KWin /KWin supportInformation" (6.79 KB, text/plain)
2017-08-06 15:28 UTC, Mircea Kitsune
Details
Xorg.0.log (57.87 KB, text/plain)
2017-08-07 12:48 UTC, Mircea Kitsune
Details
Xorg.1.log (3.08 KB, text/plain)
2017-08-07 12:49 UTC, Mircea Kitsune
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mircea Kitsune 2017-08-05 21:58:11 UTC
KDE desktop compositing occasionally causes strange visual artifacts. This includes the following problems, which may or may not be related:

- Certain panels flicker when rendering against other panels, which looks as if the two are z-fighting. I often see this with Skype notifications in the system tray as they interfere with the Plasma panel.

- The Plasma desktop no longer executes visual updates unless the user does an action that forces it to. For example: If you have an analog clock with the seconds hand enabled, you will notice that it's stuck and the hands aren't moving any longer... however if you switch desktops to force a redraw, the hands will move to represent the current time but only once at that moment. This problem is rare and always goes away after toggling desktop compositing.

- The contents of certain windows are no longer updated, and a past version of the window is drawn instead. I often think the application has frozen until turning off desktop effects and seeing that it updates again. This problem is rare and always goes away after toggling desktop compositing.

Since I don't know how much this is a KDE problem and how much it's the drivers, I'm reporting it with both of the teams. My OS is openSUSE Tumbleweed x64. Plasma 5.10.4, MESA 17.1.5, Kernel 4.11.8. My CPU is an Intel core i7 920, my video card is a Radeon R7 370 from Gigabyte (RadeonSI / GCN 1.0 / Pitcairn Islands) and I'm running the 'radeon' driver (no 'amdgpu' support yet).
Comment 1 Mircea Kitsune 2017-08-05 22:02:33 UTC
Created attachment 107095 [details]
Screenshot of Skype notification flickering

Screenshot of a Skype notification glitching against the Plasma panel. This shows one frame of the interference, the pattern changes constantly causing flickering. Only edit includes removing the message contents from the white area.
Comment 2 Martin Flöser 2017-08-06 14:59:20 UTC
please provide output of:
qdbus org.kde.KWin /KWin supportInformation
Comment 3 Mircea Kitsune 2017-08-06 15:28:20 UTC
Created attachment 107114 [details]
Output of "qdbus org.kde.KWin /KWin supportInformation"
Comment 4 Martin Flöser 2017-08-06 19:44:54 UTC
please try using OpenGL 2 instead of 3.
Comment 5 Mircea Kitsune 2017-08-07 12:48:55 UTC
Created attachment 107123 [details]
Xorg.0.log
Comment 6 Mircea Kitsune 2017-08-07 12:49:20 UTC
Created attachment 107124 [details]
Xorg.1.log
Comment 7 Hector Martin 2017-08-18 05:59:39 UTC
I've been experiencing a seemingly identical issue for months too. I'm on an Intel GPU, which suggests the problem is in kwin or a shared part of Mesa.

When window contents freeze, sometimes they are partially updated, triggering an effect where only some segments/rectangles of the screen see into the updated window. Also, I have the scroll wheel on the window title bar mapped to change window opacity, and doing so always causes the full window to refresh properly. Restarting kwin fixes the problem, temporarily. It would be interesting if the original reporter sees this behavior too to further confirm we're talking about the same problem.

I'm on Gentoo Linux amd64, kernel 4.11.8-gentoo (but this has been going on for multiple kernel releases now), Core i7-3820QM.
Comment 8 Mircea Kitsune 2017-08-18 07:31:55 UTC
(In reply to Hector Martin from comment #7)

Yes, sounds like the same thing. I missed out the rectangle detail; I noticed that sometimes only certain rectangular areas will update when an event happens near them, while the rest of the application remains drawn the same way.
Comment 9 Mircea Kitsune 2018-06-14 14:17:22 UTC
I'm still seeing this every now and then... very rarely, but apparently it will occur at certain times. I'm curious if anyone else is getting those issues and can confirm them. Is this even a KDE problem or a video driver bug?
Comment 10 Hector Martin 2018-06-14 16:17:43 UTC
Yeah, this hasn't gone away for me. These days I just toggle compositing on and off to fix it, but it still happens every now and then.
Comment 11 Mircea Kitsune 2021-05-12 14:19:11 UTC
This issue somehow still exists and occurs to this day. It's X11 specific, never seen it on Wayland... with WL Plasma still being unstable I have to stick to X for now. It's one of the biggest annoyances I have to deal with: It often feels like a process has frozen as its window contents no longer update, then it starts flickering wildly and I realize it's this thing again... I need to hit Alt + Shift + F12 twice to restart desktop compositing.

I recently tried changing all possible options under Configure Desktop - Display and Monitor - Compositor: None of them will resolve this, any setting in there will still cause this to occur. As a reminder I use amdgpu / Mesa.

Only way to reduce occurrences is to reboot daily: It typically appears to start happening after 1 to 3 days of continuous uptime.
Comment 12 postix 2022-03-04 13:15:35 UTC
Do you still flickering and frozen windows still under X11 with latest KWin 5.24.2?
Comment 13 Bug Janitor Service 2022-03-19 04:34:53 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:52 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!