https://bugs.kde.org/show_bug.cgi?id=480127

            Bug ID: 480127
           Summary: How about not storing clipboard history in RAM?
    Classification: Plasma
           Product: plasmashell
           Version: master
          Platform: Neon
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Clipboard
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: 1.0

Created attachment 165095
  --> https://bugs.kde.org/attachment.cgi?id=165095&action=edit
Demonstration

SUMMARY
In KDE you can set the clipboard history to be saved after a PC reboot and set
the maximum log size to 2048 entries.

However, I noticed that the clipboard keeps storing all pictures and text in
RAM, which further leads to plasmashell eating 1.5 gigabytes or more from
system startup.

I think we should either add a warning about this in the applet settings or not
load the entire clipboard history into RAM, but only a part of it and load the
rest as needed.

I have recorded a video demonstrating this problem. I ran a bash script that
generates random text and copies it to the clipboard. You can see how the RAM
consumption increases. If you reboot the PC, the RAM consumption does not
decrease, only clearing the buffer and restarting the plasmashell process will
help.

OBSERVED RESULT
The applet stores all clipboard history in RAM

EXPECTED RESULT
The clipboard history should be loaded in parts somehow, so as not to use too
much RAM.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon Unstable, Wayland
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
I've attached a video

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to