[1.1.4] -r "c:\somewhere\somefolder\aScript" does not work --- fixed 2019-07-03 build #317

Bug #1835099 reported by Mike Praeuner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Critical
RaiMan

Bug Description

Every so often I get a error like this: (captured in historical log files)
Setup:
Java 8 U211
SikuliXIDE 1.1.4 SnapShot
Windows 10 Home 64bit build 1063
AMD FX-8370, 32GB ram

Launch:
Error typically occurs on launch of the script (via batch) like this:
>>"C:\Users\Eris\Dropbox\SikuliLogs\Collect.log" (
echo --------------------------------------------------------------------------------------------
echo %date%-%time%
echo --------------------------------------------------------------------------------------------
echo collect1
java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect1"
)

Error:
Exception in thread "main" Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\__init__.py", line 4, in <module>
    from Sikuli import *
  File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 657, in <module>
    use()
  File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 455, in use
    newScreen = JScreen()
 at org.sikuli.script.Location.getScreen(Location.java:255)

 at org.sikuli.script.Mouse.move(Mouse.java:394)

 at org.sikuli.script.Mouse.move(Mouse.java:375)

 at org.sikuli.script.Mouse.init(Mouse.java:63)

 at org.sikuli.script.Screen.initScreens(Screen.java:153)

 at org.sikuli.script.Screen.<init>(Screen.java:186)

 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
IDE terminated: returned: 1

I may run the scripts 50+ times and only see this once, if I catch the error and immediately re-run the batch file it works fine

Revision history for this message
Mike Praeuner (eris667) wrote :

I just checked and my SnapShot was downloaded in May 2019, current SnapShot is June 2019 - so I am downloading the updated version to test (I won't know right away if this changes anything)

Revision history for this message
Mike Praeuner (eris667) wrote :

So with updated Sikuli snapshot
- showHighlight is working
- my batch files are all broken (exit IDE 0?)
    - I also tried just running a single script from the command line and received exit IDE 0
- IDE scripts work fine (from inside the GUI)

Heading back to work tomorrow, so will have to troubleshoot later (reverting to previous SnapShot)

RaiMan (raimund-hocke)
summary: - Exception in thread "main" Traceback
+ [1.1.4] -r "c:\somewhere\somefolder\aScript" does not work
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.4
Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [1.1.4] -r "c:\somewhere\somefolder\aScript" does not work

will fix asap.

RaiMan (raimund-hocke)
summary: - [1.1.4] -r "c:\somewhere\somefolder\aScript" does not work
+ [1.1.4] -r "c:\somewhere\somefolder\aScript" does not work --- fixed
+ 2019-07-03 build #317
Changed in sikuli:
importance: High → Critical
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
milestone: 1.1.4 → 2.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.