Hi Raiman, I hope this helps, this is the basic flow. The vncStart never comes out if the unit exists but connect fails. Now I have seen the same type of behavior in KRDC (linux RDP/VNC client)
for n in rang(200): wait("reboot.png", 6).click() sleep(2) # function in our code, hence 2 sleeps sleep(5) vncStop() sleep(70) # reboot with 20 sec grace; sometimes reboot takes longer vncStart(ip=unit['ip'], port=5900, password=unit['passwd'], connectionTimeout=10, timeout=120000) sleep(2) -- 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: Unable to connect VNC from sikuli after 39th iterations Status in Sikuli: New 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 _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp