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

WinVNC crashes when client connects #943

Open
pauldurham opened this issue Jan 15, 2020 · 12 comments
Open

WinVNC crashes when client connects #943

pauldurham opened this issue Jan 15, 2020 · 12 comments
Labels
bug Something isn't working winvnc This is only relevant for WinVNC

Comments

@pauldurham
Copy link

pauldurham commented Jan 15, 2020

I am testing TigerVNC (latest 64-bit version) between two Windows 10 Enterprise 64-bit installations in a domain. The product installs successfully on both machines but I cannot successfully remote from either one to the other.

I found that the installer does NOT create any Windows Firewall rules. I manually added an inbound rule for the server executable for all profiles, IP's, protocols & ports. (By the way, why does it not create a Windows Firewall rule automatically?)

The viewer requests the password, which it accepts, but then displays nothing and closes. No blank screen or anything else. I have the options set at their defaults, and have defined a password. I have tried between other PC's but get the exact same result.

Interestingly, I have the same issue with UltraVNC. However, TightVNC works perfectly with a default install, and it automatically creates the correct Windows Firewall rule.

Any ideas as to why TigerVNC is not working? I'd really like to be using this version.

Lastly, surely good Windows documentation would not be difficult to create for TigerVNC. Why isn't there any?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@bphinz
Copy link
Member

bphinz commented Jan 15, 2020 via email

@pauldurham
Copy link
Author

pauldurham commented Jan 15, 2020

I have uninstalled all VNC products & deleted related Windows Firewall rules from both PC's.
I installed TigerVNC 1.10.80 x64 on both PC's. Again no WIndows Firewall rules were created automatically. I manually created a rule for the server allowing all IP's, ports & protocols. Shouldn't the installer do this?
I run the server with default settings & set a basic password.

  • When I connect from the viewer to the server the viewer prompts for the password and then displays "read: Connection reset by peer (10054)." This is more information than 1.10.1 provides, but it still fails.

  • Each time I attempt a connection from the viewer & it fails it creates an additional TigerVNC icon on the Taskbar.

  • I have the Viewer encryption set to use only "TLS with anonymous certificates" and "None" authentication deselected. However, the Viewer still states "This connection is not secure".

@bphinz
Copy link
Member

bphinz commented Jan 15, 2020 via email

@pauldurham
Copy link
Author

I will attempt your above suggestion.

Two other things I have noticed:

  • Each time I attempt a connection from the viewer & it fails it creates an additional TigerVNC icon on the Taskbar.

  • I have the Viewer encryption set to use only "TLS with anonymous certificates" and "None" authentication deselected. However, the Viewer still states "This connection is not secure".

It is a pity the Windows TigerVNC is being neglected. No everyone wants to use RDP, especially with all its vulnerabilities ;-)

@bphinz
Copy link
Member

bphinz commented Jan 15, 2020 via email

@pauldurham
Copy link
Author

Result of the log file output: Note that the server appears to crash / shut down after attempting to connect from the Viewer & entering the password.

Wed Jan 15 15:21:11 2020
Config: set immutable Log
VNCServerST: creating single-threaded server IZAN5LSL2X
Registry: duplicated FFFFFFFF80000001 to FFFFFFFF80000001
Registry: createKey(FFFFFFFF80000001,Software\TigerVNC\WinVNC4) =
0000000000000240
MsgWindow: creating window "VNCTray"
Registry: RegCloseKey(FFFFFFFF80000001)
RegConfig: registry changed
Config: set Password(Binary) to dbd83cfd727a1458
Config: set SecurityTypes(String) to VeNCrypt,TLSVnc
Config: set QueryConnect(Bool) to 1(1)
Config: set QueryOnlyIfLoggedOn(Bool) to 0(0)
Config: set DisconnectAction(String) to None
Config: set RemoveWallpaper(Bool) to 0(0)
Config: set DisableEffects(Bool) to 0(0)
Config: set PortNumber(Int) to 5900
Config: set IdleTimeout(Int) to 0
Config: set LocalHost(Bool) to 0(0)
Config: set Hosts(String) to +,
Config: set AcceptKeyEvents(Bool) to 1(1)
Config: set RawKeyboard(Bool) to 0(0)
Config: set AcceptPointerEvents(Bool) to 1(1)
Config: set AcceptCutText(Bool) to 1(1)
Config: set SendCutText(Bool) to 1(1)
Config: set DisableLocalInputs(Bool) to 0(0)
Config: set DisconnectClients(Bool) to 1(1)
Config: set AlwaysShared(Bool) to 0(0)
Config: set NeverShared(Bool) to 0(0)
Config: set UpdateMethod(Int) to 0
Config: set PollConsoleWindows(Bool) to 1(1)
Config: set UseCaptureBlt(Bool) to 1(1)
RegConfig: unable to process UseHooks
Config: set Protocol3.3(Bool) to 0(0)
ManagedListener: set server to 0000000001A4F6C8
ManagedListener: set port to 5900
MsgWindow: null _this in 00000000000B0A4A, message 24
MsgWindow: null _this in 00000000000B0A4A, message 81
ManagedListener: set filter to +,
MsgWindow: null _this in 00000000000B0A4A, message 83
VNCServerWin32: Refreshing tray icon
VNCServerWin32: Entering message loop
MsgWindow: created window "VNCTray" (00000000000B0A4A)

Wed Jan 15 15:21:30 2020
SocketManager: accepting incoming connection
TcpSocket: ACCEPT 10.90.141.219
Connections: accepted: 10.90.141.219::65175
SConnection: reading protocol version
SConnection: Client needs protocol version 3.8
SConnection: processing security type message
SConnection: Client requests security type VeNCrypt(19)
SConnection: processing security message
SConnection: processing security message
SConnection: processing security message
SConnection: processing security message
SVeNCrypt: Client requests security type TLSVnc (258)
TLS: Process security message (session 0000000000000000)
TLS: Anonymous session has been set
TLS: Deferring completion of TLS handshake: Resource temporarily
unavailable, try again.
SConnection: processing security message
TLS: Process security message (session 0000000004B7BB90)
TLS: Deferring completion of TLS handshake: Resource temporarily
unavailable, try again.
SConnection: processing security message
TLS: Process security message (session 0000000004B7BB90)
TLS: TLS handshake completed with
(TLS1.2)-(ANON-ECDH)-(AES-256-CBC)-(SHA1)

Wed Jan 15 15:21:33 2020
SConnection: processing security message
VNCServerST: starting desktop
SDisplay: starting
SDisplay: Attaching to virtual desktop
SDisplay: deleting old pixel buffer & device
SDisplay: creating pixel buffer
DeviceContext: 32-bit BitFields: (ff0000, ff00, ff)
DIBSectionBuffer: recreateBuffer()
MsgWindow: creating window "rfb::win32::SDisplayCorePolling"
MsgWindow: null _this in 00000000000509DA, message 24
MsgWindow: null _this in 00000000000509DA, message 81
MsgWindow: null _this in 00000000000509DA, message 83
MsgWindow: created window "rfb::win32::SDisplayCorePolling"
(00000000000509DA)
SDisplayCorePolling: setScreenRect
SDisplay: Started Polling
MsgWindow: creating window "WMMonitor"
MsgWindow: null _this in 0000000000140814, message 24
MsgWindow: null _this in 0000000000140814, message 81
MsgWindow: null _this in 0000000000140814, message 83
MsgWindow: created window "WMMonitor" (0000000000140814)
MsgWindow: creating window "Clipboard"
MsgWindow: null _this in 00000000000609EA, message 24
MsgWindow: null _this in 00000000000609EA, message 81
MsgWindow: null _this in 00000000000609EA, message 83
MsgWindow: created window "Clipboard" (00000000000609EA)
Clipboard: local clipboard changed by 0000000000120B64
Clipboard: no clipboard notifier registered
Clipboard: registered clipboard handler
SDisplay: started
DeviceFrameBuffer: drawing cursor outline!

@bphinz
Copy link
Member

bphinz commented Jan 15, 2020

I don't have access to a Win10 machine to try to replicate this right now. The fact that a connection is made and the TLS handshake begins suggests to me that it's not a firewall issue.

I looked at the InnoSetup script and the installer does not create firewall rules. I don't have much experience with Windows installers but a quick google search turns up lots of examples so I don't mind trying to add that.

@bphinz
Copy link
Member

bphinz commented Jan 15, 2020

Take a look at #507 the OP shows a log from a client that doesn't support Anonymous DH ciphers and the debug log has those same "TLS: Deferring completion of TLS handshake: Resource temporarily
unavailable, try again." messages. Can you please try X509none with some self-signed certs and see if that works? Are you using our client?

@pauldurham
Copy link
Author

Unfortunately I don't have the knowledge at the moment to create self-signed certs. I have been using the TigerVNC client.
One thing I did note when I was testing at home is that Windows 10 has an associated "Network profile" for every connection (Domain, Private, Public) and that if either one or both sides have their Network profile set to "Public" then communication between the server & client is blocked. This may have something to do with the blocked connections.
Unfortunately I don't have the time right now to continue testing but this information may be of some use.

@CendioOssman CendioOssman added the bug Something isn't working label Jan 21, 2020
@CendioOssman CendioOssman changed the title TigerVNC simply won't show remote desktop WinVNC crashes when client connects Jan 21, 2020
@dbolton
Copy link

dbolton commented Feb 19, 2020

@pauldurham I finally got TigerVNC working between two Windows machines. I fully documented the process. See if the following instructions help you: https://github.com/TigerVNC/tigervnc/wiki/Setup-TigerVNC-server-(Windows)

@lbsfei
Copy link

lbsfei commented Mar 12, 2020

i used the tigervnc64-1.10.80.exe ,but still cann't connection between two windows10. pls help.

@pauldurham I finally got TigerVNC working between two Windows machines. I fully documented the process. See if the following instructions help you: https://github.com/TigerVNC/tigervnc/wiki/Setup-TigerVNC-server-(Windows)

@dbolton
Copy link

dbolton commented Mar 12, 2020

@lbsfei In order to help, we need more information. Did you get any error messages? How far did you get on the Troubleshooting section? Are you using any other remote desktop or VNC software besides TigerVNC?

@samhed samhed added the winvnc This is only relevant for WinVNC label Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working winvnc This is only relevant for WinVNC
Projects
None yet
Development

No branches or pull requests

6 participants