debauchee / barrier

Open-source KVM software
Other
27.16k stars 1.5k forks source link

big clipboard content makes Linux server keyboard/mouse freeze when pointer moves to Windows client #1754

Open davebiffuk opened 2 years ago

davebiffuk commented 2 years ago

What happened?

  1. with the pointer in the Linux (server) desktop, copy something large to the clipboard (e.g. via alt-printscreen and "copy to clipboard" to copy a image of the whole screen)
  2. try to move the pointer to the Windows (client) desktop
  3. notice that the Linux (server) keyboard and mouse input are no longer acted on; the Windows (client) keyboard and mouse still work as expected, on the Windows desktop

The situation can be recovered from by ssh'ing to the Linux server and killing the barrier process. The system tray part of the snap notices it has died and restarts it.

This is 100% reproducible with Ubuntu 18.04 barrier server (barrier 2.4.0-4-gac5a1bfd installed as a "snap") and Windows 10 version 20H2 barrier client (barrier 2.4.0-release-3e0d758b)

Version

v2.4.0

Git commit hash (if applicable)

gac5a1bfd

If applicable, where did you install Barrier from?

Linux server: from snap 2.4.0-4-gac5a1bfd

Windows client: from BarrierSetup-2.4.0-release.exe downloaded from Github

What OSes are you seeing the problem on? (Check all that apply)

Linux, Windows

What OS versions are you using?

Linux: Ubuntu 18.04

Windows 10 20H2

Relevant log output

none in "show log" on either server or client

Any other information

No response

davebiffuk commented 2 years ago

This is probably the same cause: https://github.com/debauchee/barrier/issues/1248#issuecomment-916411048

davebiffuk commented 2 years ago

I enabled debug logging and reproduced this, and the messages on the server side were:

[2022-08-24T08:59:06] DEBUG: open clipboard 0
[2022-08-24T08:59:06] DEBUG: ICCCM fill clipboard 0
[2022-08-24T08:59:06] DEBUG:   available targets: TARGETS (536), MULTIPLE (533), image/tiff (699), image/jpeg (698), image/x-MS-bmp (689)
[2022-08-24T08:59:14] DEBUG: ssl connection closed

and on the client side:

[2022-08-24T08:59:14] NOTE: server is dead
[2022-08-24T08:59:14] DEBUG: Closing socket: FB8B9B00
[2022-08-24T08:59:14] WARNING: failed to connect to server: server is not responding
[2022-08-24T08:59:14] DEBUG: retry in 1 seconds

Is there any further debug info I can provide?

emisca commented 5 months ago

I can confirm the same issue, barrier 2.4.0-release-3e0d758b server on MacOS 14.4.1 and client (same version) on Windows 11.

Strangely if I copy in the clipboard the same image on windows, there is no issue, if I do it on the server side (macos) it creates trouble. In any case it seems that only text based clipboard works.

DerekVeit commented 5 months ago

This project seems probably abandoned, but there is an actively maintained fork of it called input-leap. https://github.com/input-leap/input-leap

emisca commented 5 months ago

I noticed that after commenting this issue...

For now I've installed the latest build from synergy opensource code which fixes this issue: https://github.com/DEAKSoftware/Synergy-Binaries

Eagerly waiting for some release from input-leap Team :D