Bug 469472 - KWin stops redrawing content of some windows
Summary: KWin stops redrawing content of some windows
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.24.7
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-08 08:41 UTC by Martin Riethmayer
Modified: 2023-09-13 09:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Output of kwin_x11 --replace (4.72 KB, text/plain)
2023-05-08 08:41 UTC, Martin Riethmayer
Details
Output of plasmashell --replace (7.17 KB, text/plain)
2023-05-08 08:42 UTC, Martin Riethmayer
Details
Output of qdbus org.kde.KWin /KWin supportInformation (6.80 KB, text/plain)
2023-05-08 08:49 UTC, Martin Riethmayer
Details
Output of kscreen-doctor -o (3.29 KB, text/plain)
2023-05-08 08:50 UTC, Martin Riethmayer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Riethmayer 2023-05-08 08:41:28 UTC
Created attachment 158762 [details]
Output of kwin_x11 --replace

SUMMARY
Seemingly randomly, (some) windows are not being drawn any more. 
Currently, no Thunderbird windows (main, compose-window) are re-drawn, Systemsettings start with a black content (title bar is drawn), krunner doesn't show up. If I bring Thunderbird to the front (by clicking on the entry in the task manager), the screen does not update correctly, but shows old content (from a Konsole window that should now be "beneath" Thunderbird in the graphical stack).
I can still interact with the session, e.g. I'm typing this message, if I bring Konsole to the front of Thunderbird I can run commands etc. 
I can close some windows (e.g. systemsettings), but not Thunderbird (times out, display is grayed and there should be the dialog from KWin to force quit, but that dialog is not drawn).

STEPS TO REPRODUCE
1.  Sorry, I don't know how to reproduce this

OBSERVED RESULT
Some re-drawing seems to break.

EXPECTED RESULT
KWin should continue to redraw the content of all applications

Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-71-generic (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 5500U with Radeon Graphics
Memory: 62.2 GiB of RAM
Graphics Processor: RENOIR

ADDITIONAL INFORMATION
I've added some output from kwin_x11 --replace from a Konsole window. I'll happily add more info if wanted but since I can't reproduce the issue, it might take a while. I'm also not very familiar with getting more detailed info, if possible, please be a little detailed in what I have to do to get the requested info.
I'll attach the log from plasmashell --replace, too, if that's of any help.
Comment 1 Martin Riethmayer 2023-05-08 08:42:14 UTC
Created attachment 158763 [details]
Output of plasmashell --replace
Comment 2 Martin Riethmayer 2023-05-08 08:49:41 UTC
Created attachment 158764 [details]
Output of qdbus org.kde.KWin /KWin supportInformation
Comment 3 Martin Riethmayer 2023-05-08 08:50:06 UTC
Created attachment 158765 [details]
Output of kscreen-doctor -o
Comment 4 Martin Riethmayer 2023-09-13 09:01:03 UTC
It *might* have to do something with one of the following two things (I'm starting so see some kind of pattern):

- KDEConnect notifications. I feel like if there's a phone call incoming and the system has been running for a while (e.g. a couple of KDEConnect notifications have come in), the above situation happens. Reasoning (for believing this might cause the issue):  A playing video stops quickly, but is resumed only after a couple of minutes after the call has ended. It seems like something is preventing the notification of the ended call to un-pause the video? The notification of the incoming call is also very late and sometimes drawn in a slow manner (e.g. first the notification box with transparent content, then a couple of seconds later the content is drawn).

- More in general: If ton's of notifications are in the notification history. E.g. I get a ton of e-mail (using Thunderbird), Slack messages, KTeaTimer-notifications, Signal (the messenger), ... so my notifications history fills up quickly. Reasoning (for believing this might cause the issue): if (at that point) I'm still able to clear the notification history, that seems to improve things most of the time (again: hard to be sure and reproduce). Also, if I think about it, I try to clear my notification history more often, now, which seems to help to prevent the issue.

Could there be something like a notification-history-overflow that brings down performance / impacts KWin (or other components)?