gnome-shell-extension-clipboard-indicator: clipboard-indicator causes system lag on copy

After one of the last updates I noticed that clipboard-indicator causes a system lag when pressing CTRL + C.

Now every time I copy something the system hangs. How depends on the size of the “thing” (length of text, size of image, etc) added to the clipboard.

A JPG with one or two MB causes a hang for more than 1 second.

I had to turn the clipboard-indicator off, because of that.

Using manjaro (arch) + wayland

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 1
  • Comments: 16 (6 by maintainers)

Most upvoted comments

Ok. thanks a lot for the reply. If there is anything that a simple user can do to help, don´t hesitate to let me know.

Issue still occurs on GNOME 46, the lag can be traced to here:

== Stack trace for context 0x5dad28d70a10 ==
#0   7ffd9d583de0 b   file:///home/user/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/registry.js:153 (3bf3788df100 @ 42)
#1   7ffd9d5844c0 b   file:///home/user/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/registry.js:134 (3bf3788df060 @ 26)
#2   5dad28e3ceb8 i   file:///home/user/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/registry.js:143 (3bf3788df0b0 @ 140)
#3   7ffd9d584fa0 b   file:///home/user/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/extension.js:394 (3bf3788db060 @ 176)
#4   7ffd9d585690 b   file:///home/user/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/extension.js:468 (3bf3788db1a0 @ 254)
#5   7ffd9d585da0 b   file:///home/user/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/extension.js:299 (17843b4fcd80 @ 15)

It appears to be recalculating the hash for every image