sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55429
[Bug 1885858] Re: VNCstart does not return on failure
Hi RaiMan,
I think I found the bug.
https://github.com/RaiMan/SikuliX1/blob/master/API/src/main/java/org/sikuli/vnc/VNCScreen.java line 88
I am not hosting VNC, so no vnc server at default IP 127.0.0.1
vncStart(remote values)
java
line 79 start
scr = canConnect() # null
if (null != scr) {
} else {
scr = new VNCScreen(); # try again with default values
}
# start(remote)-> canConnect(null)-> else-> new VNCScreen-> start(127.0.0.1)-> start(127.0.0.1, 5900, null, 3, 0)-> canConnect(null)-> new VNCScreen
--
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