Bug 464989 - Seemingly random hang and restart of the Plasma Desktop
Summary: Seemingly random hang and restart of the Plasma Desktop
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (show other bugs)
Version: 5.26.5
Platform: Manjaro Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-29 15:20 UTC by Danir Toma
Modified: 2024-05-30 11:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Syslog of Crash1, with crashing most open applications (177.50 KB, text/x-log)
2023-01-29 15:20 UTC, Danir Toma
Details
Syslog of Crash2, without any apparent additional crashed apps (64.43 KB, text/x-log)
2023-01-29 15:21 UTC, Danir Toma
Details
Syslog of Crash 3, with crashing K-Apps. This log contains a plasmashell core dump. (830.97 KB, text/x-log)
2023-02-06 13:12 UTC, Danir Toma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Danir Toma 2023-01-29 15:20:07 UTC
Created attachment 155766 [details]
Syslog of Crash1, with crashing most open applications

SUMMARY
I've for multiple version observed some servere crash in the plasma desktop that I first attributed to other (now solved) issues and can't wrap my head around it, I think the behavior started somewhere around Plasma ~ 5.24.

The plasma desktop (including all panels, menus and also visually "integrated" things like Krunner), just freeze and stop in time, not responding to any input and for example clock widgets also freezing in time - open applications and things like screen-edge-actions keep working (for example the show all windows edge action). 

If I try to interact with any of the freezed interface bits or try to restart plasma by running `plasmashell --replace` in an already open terminal window or Yakuake, all plasma panels slide out and also drag many applications into death as well. Apps that I've also regularly observed crashing when this happens are:
- Dolphin
- Kate
- Chrome
- Discord
- TeamSpeak
- Pamac

Some apps like Steam, CS:GO or YouTube-music-bin (Inofficial YouTube Music Desktop) always keep running and never crash when this happens.

Funnily, while writing this it happened again, but Chrome stayed alive.

STEPS TO REPRODUCE
Sadly I don't know how to reproduce the issue. It never happens directly after a fresh reboot, but occurs multiple times a day, when the system already has been running.
When it happens after the system has been idle (with screen off), it seems like more running applications are crashing then when it happens while actively working.
I'm using a 3-monitor setup with the open-source AMD-Linux & MESA drivers, Pipewire and Wayland.
I also have my phone fully connected with KDE Connect, pumping out notifications to the desktop.


OBSERVED RESULT
Freeze and crash of seemingly all plasma panels and services, even crashing open applications like Dolphin, Kate and Chrome. Plasma recovers itself, when I try to use any shortcut (Super-key or ALT+F2 for Krunner) and all panels slide an as if nothing happened. I don't get any crash report window.


EXPECTED RESULT
No crashes and a stable work environment.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 6.0.19-3-MANJARO (64-bit)
Graphics Platform: Wayland
Monitors: 3x 1440p Monitors
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT
Audio Server: Pipewire 0.3.64-1
Manufacturer: ASUS

ADDITIONAL INFORMATION
I have attached two journal-logs:

The first log "crash1" shows the clock freezing at ~15:11 and the panel and me noticing while trying to use Krunner at ~15:17 and apps crashing at ~15:19 and all panels and functionality restoring shortly after. I lost all open apps and unsaved progress. The system was previously idle with me waking the screen and unlocking a few minutes prior.

The second log "crash2" is a log exerpt of the second crash that happened  at 15:53, but without killing open apps.
I noticed the clock being frozen and all panels to vanish shortly after. Plasma Panels only restored after I invoked KRunner with ALT+F2. I've been listening to music the whole time, not noticing any dropouts.
Comment 1 Danir Toma 2023-01-29 15:21:17 UTC
Created attachment 155767 [details]
Syslog of Crash2, without any apparent additional crashed apps
Comment 2 Danir Toma 2023-02-06 13:00:57 UTC
Today I've encountered another freeze and crash of all plasma desktop elements.
Yakuake still worked flawlessly, that's how I extracted the crash log with the plasmashell core dump at Feb 06 13:45:34.

KRunner didn't react to any Hotkeys while the plasmashell was frozen but recovered after it crashed.
Kate and Dolphin also crashed together with plasma and didn't generate any crash report window.

I've attached a log with the name Crash3.
Comment 3 Danir Toma 2023-02-06 13:12:42 UTC
Created attachment 155997 [details]
Syslog of Crash 3, with crashing K-Apps. This log contains a plasmashell core dump.

Freezing started at about ~ 13:44 after I've removed a desktop wallpaper module, which I tried out a few minutes prior.

The problem doesn't seem to arise from the plugin, as the first lines of the crash dump (starting line 3090) is referencing QT message logging and notification functions.

Apologies if this should be a misinterpretation on my side and this crash log not being related to the main issue.
Comment 4 Nate Graham 2023-02-08 20:56:21 UTC
> #4  0x00007ff9411d5697 _ZN13QSGRenderLoop28handleContextCreationFailureEP12QQuickWindow (libQt5Quick.so.5 + 0x1d5697)

By any chance, did you upgrade your system and graphics drivers and not reboot afterwards?
Comment 5 Danir Toma 2023-02-09 05:24:44 UTC
(In reply to Nate Graham from comment #4)
> > #4  0x00007ff9411d5697 _ZN13QSGRenderLoop28handleContextCreationFailureEP12QQuickWindow (libQt5Quick.so.5 + 0x1d5697)
> 
> By any chance, did you upgrade your system and graphics drivers and not
> reboot afterwards?

I'm pretty sure that's not the case with example 1 and 2, but can't certainly remember with example 3.
Comment 6 Akseli Lahtinen 2024-05-30 11:05:49 UTC
Has this crash happened anymore with Plasma 6?
Comment 7 Danir Toma 2024-05-30 11:59:08 UTC
(In reply to Akseli Lahtinen from comment #6)
> Has this crash happened anymore with Plasma 6?

Sadly yes. I'll try to capture a fresh log, the next time it happens.