← Back to team overview

sikuli-driver team mailing list archive

[Question #679017]: Vnc app detected only at first attempt after Sikulix Ide launch

 

New question #679017 on Sikuli:
https://answers.launchpad.net/sikuli/+question/679017

Hello,
I'm automating using a UltraVNC external app, and for that I have this script:
appVNC= App(getParentFolder() + r'UltraVNC\vncviewer.exe')
if not appVNC.isRunning(0): appVNC.open(0)
print appVNC
if not(appVNC.isRunning(5)):
    LogAll('VNC_NOT STARTED')
    exit(-1)
appVNC.focus()
vncReg=Region(appVNC.window())

With version 
1.1.4-SNAPSHOT-#223-2019-03-06_14:23/Windows10.0/Java8(64)1.8.0_191-b12
it runs ok and finish correctly only at first attempt.
When I try to relaunch it without closing the IDE it has an exception at line 8:
error] script [ testApp ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File "\testApp.sikuli\testApp.py", line 8, in <module> vncReg=Region(appVNC.window()) at org.sikuli.script.Region.<init>(Region.java:414)
at org.python.proxies.sikuli.Region$Region$5.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:211)
java.lang.NullPointerException: java.lang.NullPointerException 

The same behavior can be see using Pycharm, to make it work I have to close the project and restart the IDE

Using an older version I had by mistake
1.1.4-SNAPSHOT-2019-01-30_21:31/Windows10.0/Java8(64)1.8.0_191-b12
It runs correctly every time, as it was doing from months
Let me know if I can help you more on understanding the problem
Thanks in advance



-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.