SUMMARY STEPS TO REPRODUCE 1. Copy huge Javascript into Clipboard applet 2. Kill plasmashell and reload 3. PLasma effectively freezes and won't load, CPU will be on 99+% forever OBSERVED RESULT Plasma stuck EXPECTED RESULT Plasma loading SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION Once clipboard history file (.lst) is deleted via command line, everything works as expected
This also could be a security issue, but I am not sure, if JS code gets executed or not or why the freeze otherwise happens.
How large is that file? I tried with a 7000+ 300 kiB C++ file and cannot reproduce.
You can download the file here (1.34 MB minified): https://www.dpdmojkurier.sk/static/js/main.5cfe4e5d.js CTRL+C Go to this JS beautifier: https://beautifier.io/ CTRL+V, beautify, CTRL+C Now try to open Clipboard to see the history, whole plasma just freezes. Once I delete the history file: rm ~/.local/share/klipper/history2.lst And kill and restart plasma, everything is fine.
*** This bug has been marked as a duplicate of bug 360262 ***