Bug 499351 - Spectacle gets occasional memory leaks after several hours of usage
Summary: Spectacle gets occasional memory leaks after several hours of usage
Status: REPORTED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 6.2.91
Platform: Arch Linux Linux
: NOR grave
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-31 05:10 UTC by Antti Savolainen
Modified: 2025-02-18 22:04 UTC (History)
2 users (show)

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


Attachments
Screenshot from a phone (268.89 KB, image/png)
2025-01-31 05:10 UTC, Antti Savolainen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Savolainen 2025-01-31 05:10:31 UTC
Created attachment 177838 [details]
Screenshot from a phone

SUMMARY
Spectacle gets random memory leaks. Once the memory usage starts climbing, screenshotting no longer works. Eventually oomkiller kicks in and reports that "The background service app-org.kde.spectacle.service has been terminated by the Linux kernel because the system is low on memory." If I don't have the oomkiller enabled, the system will eventually go into an unusable state. I have lost unsaved data to this several times before enabling oomkiller 

I have no idea what triggers this.

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Plasma Version: 6.2.91
KDE Frameworks Version: 6.10.0
Qt Version: 6.9.0
Comment 1 Noah Davis 2025-01-31 17:52:22 UTC
Is this running on a virtual machine on a phone? Also, do you not use systemd? While a memory leak is certainly a serious issue that should be fixed, Spectacle doesn't normally need to constantly run in the background. It should come with a systemd service `app-org.kde.spectacle.service` that will launch spectacle as needed. You may be able to avoid this problem until the issue is fixed.
Comment 2 Noah Davis 2025-01-31 17:54:53 UTC
Actually, I'm not sure what the systemd service is for, so disregard that. In any case, global shortcuts should be able to launch spectacle without needing it to run in the background.
Comment 3 Antti Savolainen 2025-01-31 17:58:34 UTC
I took the screenshot on a phone because the screenshot utilities would not work on the PC when the memory leak happens. It's an ssh connection.