KDE Spectale consuming too much RAM

Apr 30 14:15:31 wathi kernel: Out of memory: Killed process 54157 (spectacle) total-vm:22952372kB, anon-rss:7620856kB, file-rss:376kB, shmem-rss:0kB, UID:1000 pgtables:41856kB oom_score_adj:200

7GB RAM for a screenshot?

What is your distro and application version ?

In which circumstances this happened ?
Can you reproduce it ?

Endevarour OS Plasma 6.3.4

Spectacle
Version 6.3.4

I left spectale open after taking a screenshot, then my screen froze and got an OOM notification

I just had this happen to me too (Arch Linux).
I’ve been on Nvidia up until last night and never had this problem until I swapped to an RX 9070 last night, so maybe this is AMD related?

I’ve just downgraded it to 6.3.0 (from 6.3.4) and see how that goes.

Operating System: Arch Linux
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.4-zen1-2-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 9800X3D 8-Core Processor
Memory: 31.0 GiB of RAM
Graphics Processor: AMD Radeon Graphics

Spectacle: Version 6.3.4 - I just tested on my system. Did full screen, active window, rectangular, recorded short desktop video. Zero issues. All is well on my machine.

Operating System: EndeavourOS
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.4-zen1-2-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-8700K CPU @ 3.70GHz
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060 Ti

You have to run it for a very long time, it took over a day until I got the bug and I had taken lots of screenshots during that time.

Huh? Why would anyone run a screenshot app for over a day? If you mean just using it several times a day, I do.

I thought it ran in the background, but checking with top it does indeed start up when you take a screenshot and then shuts off…

When I ran into the bug I hadn’t used Spectacle in about an hour or so, I was just using my computer normally until suddenly I got flooded with error notifications from Spectacle and eventually they got replaced with the OOM notifications.

Also unable to reproduce it, I had left it open for around 1hr-2hrs

My full specs:
Operating System: EndeavourOS
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.4-arch1-2 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8265U CPU @ 1.60GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: LENOVO
Product Name: 20N20024US
System Version: ThinkPad T490

I left Spectacle open since my last post (as of this writing, 11 hours ago). I just did full screen, active window, rectangular, and recorded a short desktop video again. Still, the same result… No issues at all.