Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wayvnc crashes with "write from clipboard incomplete" #254

Open
mms-neuro opened this issue Jun 19, 2023 · 4 comments
Open

Wayvnc crashes with "write from clipboard incomplete" #254

mms-neuro opened this issue Jun 19, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@mms-neuro
Copy link

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
@mms-neuro mms-neuro added the bug Something isn't working label Jun 19, 2023
@any1
Copy link
Owner

any1 commented Jun 19, 2023

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?

@mms-neuro
Copy link
Author

Yes - I cleared the clipboard with xsel -bc and checked that it is indeed empty.

@any1
Copy link
Owner

any1 commented Oct 31, 2023

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?

@qdii
Copy link

qdii commented Jan 21, 2024

$ 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants