Comment 0 for bug 1319399

Revision history for this message
Sébastien Sablé (sable-gmx) wrote : [1.1.0 beta1] Java exception while running script

Hi,

I have a sikuli Python script (+ full framework) that is working fine with 1.0.1 on Windows 7 - Java 1.7.0_51 64 bits.
Today I wanted to test with the beta of 1.1.0.

I quickly get a crash but the Java exception is obscure enough that I have no idea where it comes from in my script:

----------- OUTPUT -----------

+++ running this Java

+++ trying to run SikuliX

+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\SikuliX\sikulix.jar -r C:\Users\sikuli\Desktop\techlog\tests\sikuli\ocean\charts.sikuli

[user (5/14/14 3:17:34 PM)] importing techlog_sikuli

[user (5/14/14 3:17:37 PM)] C:\Users\sikuli\Desktop\techlog\tests\sikuli\techlog_sikuli\images\button\checkbox.png

[user (5/14/14 3:17:37 PM)] C:\Users\sikuli\Desktop\techlog\tests\sikuli\techlog_sikuli\images\button\checkbox_checked.png

[user (5/14/14 3:17:38 PM)] C:\Users\sikuli\Desktop\techlog\tests\sikuli\techlog_sikuli\images\button\choice.png

[user (5/14/14 3:17:38 PM)] C:\Users\sikuli\Desktop\techlog\tests\sikuli\techlog_sikuli\images\button\3button_dockwindow_None.png

[user (5/14/14 3:17:38 PM)] C:\Users\sikuli\Desktop\techlog\tests\sikuli\techlog_sikuli\images\button\choice.png

[user (5/14/14 3:17:38 PM)] finished importing techlog_sikuli

----------- STDERR -----------

java version "1.7.0_51"

Java(TM) SE Runtime Environment (build 1.7.0_51-b13)

Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Exception in thread "MainThread" java.lang.ArrayIndexOutOfBoundsException: 1

 at org.sikuli.scriptrunner.JythonScriptRunner.findErrorSource(JythonScriptRunner.java:279)

 at org.sikuli.scriptrunner.JythonScriptRunner.runPython(JythonScriptRunner.java:206)

 at org.sikuli.scriptrunner.JythonScriptRunner.runScript(JythonScriptRunner.java:148)

 at org.sikuli.basics.SikuliScript.main(SikuliScript.java:199)

 at org.sikuli.ide.SikuliIDE.main(SikuliIDE.java:262)

Thanks in advance