-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Cannot reconnect to wayvnc #335
Comments
It helps if you follow the bug report template. This also needs a more thorough description of how to reproduce the problem. |
I'm sorry. Here is the trace log. WayVNC doens't crash, the viewer just cannot connect to it anymore. UltraVNC closes after tried to reconnect showing a black screen and then closes. Tried the master version of WayVNC and other versions of the viewers with the same behavior. RealVNC Viewer connect and reconnect normally even after the connection of these two clients cited above. In resume cannot connect anymore after the first connection. I'm using Windows 11 in the client. |
This is probably a duplicate of #305. If this was globally and trivially reproducible, it would be fixed already. This is why it helps to have as much information as possible; things such as what compositor you're running and the exact output from |
root@darkstar:~# wayvnc -V I'm using LabWC 0.8.0 |
Does it make a difference if you change the "preferred encoding" in the "compression" options menu in TigerVNC? I see you're using RSA-AES. Does disabling it and using VeNCrypt (TLS) instead change anything? You can change that in the security menu if you're configured both on the server side. |
It occurs to me that when this happens, wayvnc may be stalled on a blocking system call. If you attach to it using gdb when this happens and get a backtrace, that should tell us where it's stuck. Do you know how to do that? |
@drigoskalwalker: Have you seen the latest @any1 comment? |
Hi sorry for the absence.. |
There is a chance that we don't need debug symbols to figure this out, but they will definitely help. To enable debug symbols, you can pass the After you've reproduced the issue, please issue the following command:
|
Hi sorry for the wait again. Thank you |
That backtrace looks normal. I did notice a race condition with resizing that trips up tigervnc a couple a weeks ago. Could that be what you're running into? What happens if you remove this line? https://github.com/any1/wayvnc/blob/master/src/main.c#L937 |
Same behavior But I think when I try to reconnect the buffer or something that wayvnc is sending is not ordered or not right in the form that ultraVNC could read, so it rejects the connection. I think neatvnc need to clean the buffer or reset the display on each reconnection. |
@drigoskalwalker, Can you try selecting a different "preferred encoding" in TigerVNC?
You can also play with other parameters and select other encodings if you want. If that doesn't do anything, maybe try disabling the clipboard:
It might also help to know the following:
|
Hi thanks for your response. I tried Tight and several others encoders, same behavior. I tried to disable clipboard but seems ultravnc doesn't have this option. Are you running a clipboard manager? - Don't know what you mean.
You can have a try. the address: |
Yeah, I can even reproduce the problem by connecting with tigervnc from Linux to your system. The problem is that NVidia wants to use a 24 bit pixel format. but the clients aren't having it. They want each pixel to be 1, 2, or 4 bytes. We could convert to 32, but technically 24 is not a protocol violation, so I'd say that the clients are wrong. |
By the way, thanks for answering my questions and setting up the server. I really appreciate it! |
I'm glad for your support. |
I think I can take it from here. I'll report the issue with TigerVNC and UltraVNC. However, supporting 24 bit buffers might be more work than they're willing to undertake. |
@maztheman, did you never run into this issue? |
I really appreciate your effort. Thank you. |
I don't think so. However, it's been awhile.. |
@drigoskalwalker, I pushed a fix to neatvnc just now. It should take care of the problem with both the tiger and the ultra. |
@any1: Thanks for your neatvnc fix here: |
@any1: Thanks for the path. |
If you connect with RealVNC and then TigerVNC, do you also get a grey screen then? |
Hi, sorry the wait. Tested Tiger VNC Viewer 1.14.0 and 1.14.1 - OK.
Thank you again! |
I have wayvnc server in my Linux machine.
The first time I connect it works fine.
The second the view close.
I'm using UltraVNC Viewer and TigerVNC Viewer on my Windows11
The RealVNC Viewer works, and reconnects normally
But I think it's a problem with wayvnc on reconnections.
The text was updated successfully, but these errors were encountered: