Bug 468837 - Kwin stops working after 2 days of uptime (forcing a reboot)
Summary: Kwin stops working after 2 days of uptime (forcing a reboot)
Status: CLOSED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.4
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-22 21:00 UTC by Paul Stansell
Modified: 2023-10-04 23:45 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Photo showing how monitor is not updating correctly. (363.68 KB, image/jpeg)
2023-10-04 23:45 UTC, Paul Stansell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Stansell 2023-04-22 21:00:13 UTC
STEPS TO REPRODUCE
1.  I have not found a pattern that can reproduce the problem.

OBSERVED RESULT
On Kubuntu 22.10 with Plasma: 5.27.4 after 2 days of uptime all my windows lost their borders, and the panel and main menu KDE buttons stop responding to mouse clicks.

On Kubuntu 22.10 with Plasma: 5.27.4 I noticed the following (as reported at https://bugs.kde.org/show_bug.cgi?id=468340) :
There seem to be different manifestations of the same problem.  I have observed each of the following happening, but not all at once:
1. Patches of the screen go black or are fixed (as in not updated) with an old image.
2. My Plasma panel stops responding to mouse clicks (and the digital clock on my panel stops updating).
3. All my windows lose their borders.
4. Xorg and sddm use nearly 100% CPU when problem occurs, but not before (and not always when the problem occurs).

EXPECTED RESULT
None of the above observed results.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 22.10
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.6
Kernel Version: 5.19.17-051917-generic (64-bit)
Graphics Platform: X11

HARDWARE
Processors: 12 x Intel Core i7-8850H CPU @ 2.60GHz
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: Dell Inc.
Product Name: Precision 5530

ADDITIONAL INFORMATION
I asked the question here
https://askubuntu.com/questions/1458083/desktop-freezing-on-kubuntu-22-04-lts
I followed the suggestions, but they did not work.

I have what appears to be the same problem on four machines, all running either Kubuntu 22.04 LTS or Kubuntu 22.10 with Plasma 5.27, two of which are identical models, so I don't think it's a hardware problem.  The models are:
1. Dell Precision 5520 laptop
2. Dell Precision 5530 laptop (x 2)
3. Dell XPS 8940 desktop

Nothing helpful shows up in the logs, and when the problem happens I can `ssh` into the machine or `Alt-Ctrl-F2` to drop to console mode to reboot.

Things I've tried, none of which prevent the problem:
- Running newer kernel (5.19.17 instead of 5.15.0).
- Using Wayland instead of Xorg.
- Upgrading to Kubuntu 22.10 with Plasma 5.27 on one Precision 5530.

I'd be very grateful if someone could suggest things I could do to diagnose what's causing the problem next time it happens.
Comment 1 Paul Stansell 2023-05-09 09:58:36 UTC
This issue may be caused by the bug reported here https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/2018671
Comment 2 David Edmundson 2023-10-03 21:34:56 UTC
Lets assume it's that mesa issue if there's no information otherwise.
Comment 3 Paul Stansell 2023-10-03 22:15:44 UTC
It was a MESA problem as it's been fixed since MESA was upgraded from version 22.2.5 to 23.0.4 in August.
Comment 4 Paul Stansell 2023-10-04 23:45:40 UTC
Created attachment 162091 [details]
Photo showing how monitor is not updating correctly.

After many weeks of problem-free running of Kubuntu 23.04, I just experienced the same symptoms that I'd previously experienced with Kubuntu 22.04 LTS, that is, parts of the screen don't update correctly and don't respond to the mouse.
I've attached an example photo (because I couldn't take a screenshot).

This happened on the following machine running MESA 23.0.4:

Operating System: Kubuntu 23.04
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.0-34-generic (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-8850H CPU @ 2.60GHz
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: Dell Inc.
Product Name: Precision 5530