Bug 496821 - Plasmashell freezes and leaks memory after suspend-to-ram if caldav calendars are enabled in digital clock applet.
Summary: Plasmashell freezes and leaks memory after suspend-to-ram if caldav calendars...
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock widget (other bugs)
Version First Reported In: 6.1.5
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 510303 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-11-29 04:52 UTC by Steve Vialle
Modified: 2025-12-07 14:52 UTC (History)
5 users (show)

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


Attachments
My error report (39.04 KB, text/plain)
2025-12-07 14:52 UTC, Lea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Vialle 2024-11-29 04:52:49 UTC
SUMMARY
Enabling caldav (nextcloud) calendars in the digital clock applet causes plasmashell to freeze, consuming 1 CPU core and rapidly leaking memory (~250MB/s) after system resumes from suspend-to-ram.

STEPS TO REPRODUCE
1. Enable display of some configured (via korganizer/akonadi_davgroupware) caldav calendars in digital clock applet. 
2. Suspend to ram.
3. Wake system and unlock session.

OBSERVED RESULT
The "plasmashell" process freezes, consuming all CPU time on one logical core and leaking memory at ~250MB/s until SIGKILL'd or nuked by the OOM-killer.

EXPECTED RESULT
Plasmashell doesn't freeze and doesn't leak memory.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Gentoo Linux 2.17
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.3

ADDITIONAL INFORMATION
This appears specific to having akonadi calendar display enabled, i.e. just having them configured in akonadi/korganizer and available to digital clock (but not checked in its settings) does not cause a problem. 
The calendars do show up in the digital clock correctly when checked, and everything seems to work as expected until the suspend/resume.

AFAICT this is new with Plasma 6.x (first seen in 6.0). My dotfiles, plasma/applet settings and akonadi resources configuration were auto-migrated from plasma 5.x, where this issue was not present.
Comment 1 Patrick Holthaus 2025-01-24 11:13:15 UTC
I might also be affected by this.

I managed to disable the calendar plugin in the widget settings by being quick after logging in - but the memory leak is still happening even after a reboot. "akonadictl stop" if executed quickly makes the system usable again.
Comment 2 Patrick Holthaus 2025-01-24 11:15:06 UTC
(In reply to Patrick Holthaus from comment #1)
> I might also be affected by this.
> 
> I managed to disable the calendar plugin in the widget settings by being
> quick after logging in - but the memory leak is still happening even after a
> reboot. "akonadictl stop" if executed quickly makes the system usable again.

I forgot to mention:

Operating System: Gentoo 2.17
KDE Plasma Version: 6.2.90
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.10-gentoo-x86_64 (64-bit)
Graphics Platform: X11 (happens on wayland too)
Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 960
Comment 3 Nate Graham 2025-05-09 17:55:18 UTC
Thank you for the bug report! I'm sorry we weren't able to get to it yet. Can you check and see if it's still an issue in Plasma 6.3.5 or later, and also presumably with newer system packages including newer versions of the packages for the PIM stack?

Thanks!
Comment 4 Steve Vialle 2025-05-10 10:14:45 UTC
(In reply to Nate Graham from comment #3)
> Can you check and see if it's still an issue in Plasma 6.3.5 or later, and
> also presumably with newer system packages including newer versions of the
> packages for the PIM stack?

Still present in plasma 6.3.4 / frameworks 6.13. 
Plasma 6.3.5 is not yet stabilised in gentoo, but as nothing has apparently been done about this, I expect it'll be there too.
Comment 5 Nate Graham 2025-05-13 16:11:38 UTC
Thanks a lot for checking!
Comment 6 David Edmundson 2025-10-08 13:47:48 UTC
*** Bug 510303 has been marked as a duplicate of this bug. ***
Comment 7 Ray 2025-10-21 07:30:42 UTC
same on Fedora KDE

Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.16.12-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ Ultra 7 258V
Memory: 32 GiB of RAM (30.9 GiB usable)
Graphics Processor: Intel® Graphics

In the logs:
qt.qpa.wayland: There are no outputs - creating placeholder screen
plasmashell: The Wayland connection experienced a fatal error: Protokollfehler
kwin_wayland_drm: Atomic modeset test failed! Das Argument ist ungültig
Comment 8 Ray 2025-10-21 07:40:04 UTC
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/configuration/ConfigurationShortcuts.qml:
  Setting initial properties failed: ConfigurationShortcuts does not have a property called cfg_showDate
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml:131:
  TypeError: Cannot read property 'screenGeometry' of null
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml:261:
  TypeError: Cannot read property 'plasmoid' of undefined
Oct 20 21:05:11 plasmashell[89862]: segfault at ... sig=11 (core dumped)
systemd-coredump: Process 89862 (plasmashell) terminated abnormally with signal 11
Comment 9 Lea 2025-12-07 14:52:54 UTC
Created attachment 187414 [details]
My error report

This happens to me if I try to DISABLE one of my calender events (1 out of 6). Everything seems to be working fine - calendars are shown as expected. After trying to disable one calendar event, they remain enabled after freeze + stopping and restarting plashmashell.

STEPS TO REPRODUCE
1. Disable display of some configured (via korganizer) caldav calendars in digital clock applet
2. Hit apply
3. Freeze occurs

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.9.3
Kernel Version: 6.17.9-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X3D 8-Core Processor
Memory: 32 GiB of RAM (31.2 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 4080
Manufacturer: ASUS