Sometimes emacs takes a very long time (+ 30 seconds) to read from or save to the system (Linux) clipboard. The entire emacs session hangs while it does this and I can't cancel it with
ESC ESC ESC or anything. This seems to happen at random, but whenever it does happen, it tends to happen more frequently until I restart emacs.
What could be causing this behavior? Where should I start? I haven't changed the default values of
x-select-enable-clipboard (t) or any other clipboard-related variables (to my knowledge)...