sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55430
[Bug 1885858] Re: VNCstart does not return on failure
Additionally it does not appear 'timeout' is used/set to detect loss of
connection
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1885858
Title:
VNCstart does not return on failure
Status in Sikuli:
In Progress
Bug description:
Python version 3.7.4 64 bit
Sikuli 2.0.4
Windows server 2016 DC 64 bit & windows 10 64bit
Procedure:
1. installed python version 3.7.4 with sikuli 2.0.4 (windows server 2016 DC 64 bit & windows 10 64bit)
2. using Git clone cloned the source to local machine
3. created the reboot script in python
4. Accessing device using VNC viewer 6.19.107 using sikuli and python
5. performing reboot operation in loop
6. used below code to connect the VNC
def connect(unit):
if unit['connection'] == 'vnc':
vnc = vncStart(ip=unit['ip'], port=5900, password=unit['passwd'], connectionTimeout=10, timeout=120000)
if not vnc:
print "Unable to connect to %s using password %s over VNC" % (unit['ip'], unit['passwd'])
exit()
return vnc
elif unit['connection'] == 'vlc':
apps.append(openApp('cvlc -f v4l2:///dev/video2'))
return Screen(0)
elif unit['connection'] == 'pi':
pass
return SCREEN
issue faced:
Running the script using command prompt. Able to connect the VNC and reboot the device upto 39th iteration without any issue, in 40th iteration its trying to connect the VNC but not connecting, there is no error messages, its strucking to connect the VNC. Verified this multiple times. Also verified this in sikuli 2.0.2 facing the same issue.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1885858/+subscriptions
References