swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.09k stars 1.08k forks source link

Sway hangs at 100% cpu usage when copying to clipboard #7244

Open tgharib opened 1 year ago

tgharib commented 1 year ago

Occasionally, when copying to clipboard from some highlighted text in neovim in wezterm (running in xwayland mode), a sway thread appears to go to 100% cpu usage and my desktop completely hangs. I can still hear audio from a running youtube video but my screen is completely frozen and I can't even switch to a different tty.

I am running sway via greetd via the command sway -d 2>/tmp/sway.log. The log appears to be 6.2G in size so I will only upload the first and last 10k lines of the log file.

emersion commented 1 year ago

Maybe a dup of https://github.com/swaywm/sway/issues/6974

Bobo1239 commented 1 year ago

I think it's probably the same root cause. I also have had this issue with other apps which are ran in Xwayland mode. Specifically IDA Pro and Ghidra. Sometimes with these programs I also notice that copying from them to another window doesn't work and then after switching back to the app there's a chance that sway hangs.