You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vncdotool v1.0.0, python 3.8.10, twisted 20.3.0 and 21.2.0
A simple VNC connection attempt works fine under Windows but when run on Linux (Ubuntu 20.04) it fails to establish a TCP connection. The connection starts, but never progresses. Seems to be a Twisted reactor issue.
In ThreadedVNCClientProxyapi.py line 77 it uses reactor.callWhenRunning. This is not thread-safe. The reactor has already been started so it has the same effect of just calling factory_connect directly from the main thread.
Wrapping it in reactor.callFromThread fixed the issue for me: reactor.callFromThread(reactor.callWhenRunning, factory_connect, self.factory, host, port, family)
vncdotool v1.0.0, python 3.8.10, twisted 20.3.0 and 21.2.0
A simple VNC connection attempt works fine under Windows but when run on Linux (Ubuntu 20.04) it fails to establish a TCP connection. The connection starts, but never progresses. Seems to be a Twisted reactor issue.
In
ThreadedVNCClientProxy
api.py line 77 it usesreactor.callWhenRunning
. This is not thread-safe. The reactor has already been started so it has the same effect of just callingfactory_connect
directly from the main thread.Wrapping it in
reactor.callFromThread
fixed the issue for me:reactor.callFromThread(reactor.callWhenRunning, factory_connect, self.factory, host, port, family)
The text was updated successfully, but these errors were encountered: