wayvnc
wayvnc copied to clipboard
Wayvnc crashes with "write from clipboard incomplete"
Problem
When connecting to a wayvnc-session (via ssh-tunnel on localhost) on sway, the screen is shortly shown on the viewer before wayvnc closes with the error ERROR: ../src/data-control.c: 202: write from clipboard incomplete
Version:
wayvnc: 0.6.0
neatvnc: 0.6.0
aml: 0.3.0
Trace-Log
$ wayvnc -Ltrace 127.0.0.1 5900 | tee wayvnc-crash.log
Info: Capturing output DP-1
Info: >> Eizo Nanao Corporation EV2785 0x0000F6E0 (DP-1) 3840x2160+0x0 Power:ON
DEBUG: ../src/server.c: 1167: Trying address: 127.0.0.1
DEBUG: ../src/server.c: 1182: Successfully bound to address
Info: Listening for connections on 127.0.0.1:5900
DEBUG: ../src/ctl-server.c: 724: Initializing wayvncctl socket: /run/user/1000/wayvncctl
Info: New client connection from localhost: 0x5556569d12d0 (ref 1)
Info: Starting screen capture
DEBUG: ../src/main.c: 1069: Client connected, new client count: 1
DEBUG: ../src/ctl-server.c: 849: Enqueueing client-connected event: {"id":"1","hostname":"localhost","username":null,"connection_count":1}
DEBUG: ../src/ctl-server.c: 876: Enqueued client-connected event for 0 clients
Info: Choosing tight encoding for client 0x5556569d12d0
ERROR: ../src/data-control.c: 202: write from clipboard incomplete
Stack trace
$ coredumpctl gdb wayvnc
No match found.
Reproducibility
- Start wayvnc listening on localost
- Start vncviewer on remote machine
- Crashes almost instantaneous with
vncviewer
(tiger vnc) and GNOME Connections - Works sometimes a bit longer with
KRDC
- Crashes almost instantaneous with
Partial writes and errors need to be handled better here: https://github.com/any1/wayvnc/blame/master/src/data-control.c#L199
Have you tried making sure that your clipboard is empty when you connect?
Yes - I cleared the clipboard with xsel -bc
and checked that it is indeed empty.
Is this still an issue with the newest release?
Was there anything more after the last error? Could it be that you don't have core dumps enabled on your system?
$ wayvnc -f 60 192.168.2.31
Warning: ../wayvnc/src/ctl-server.c: 733: Deleting stale control socket path "/tmp/wayvncctl"
ERROR: ../wayvnc/src/data-control.c: 202: write from clipboard incomplete
$ wayvnc --version
wayvnc: v0.7.2-0-g4de85ac (makepkg)
neatvnc: v0.7.1-0-gb5b330b (makepkg)
aml: v0.3.0-0-gb83f357 (makepkg)