First time sikuli user, after download and run, it crashes.

Asked by Bryan

First time to use Sikuli 1.1.4 . Want to try the tool for our application.

Steps:
1. Dowloaded The Jython interpreter 2.7.1 for python scripting (the default)
2. put on Downloads/sikuli
3. Downloaded Download the ready to use sikulix.jar (SikuliX IDE)
4. put on Downloads/sikuli
5. run sikuli.jar
6. Sikuli window displays for 2 secs then crashes.

Java version 1.8.0_211

Did I miss any step?

Thank you!

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Just tested on my Windows 10 with Java 8

After download from https://raiman.github.io/SikuliX1/downloads.html I have in my folder Downloads/sikuli the 2 files:
sikulix.jar
jython-standalone-2.7.1.jar

Double click on sikulix.jar starts the IDE as expected and moves the jython-standalone-2.7.1.jar to the extensions folder in %APPDATA%/Sikulix

You might try from a command window:
java -jar Downloads\sikuli\sikulix.jar -v

and watch the debug log output

Revision history for this message
Bryan (bryanvaldellon) said :
#2

Hello Sir,

here's the log output:

C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2>java -jar "sikulix (2).jar" -v
[DEBUG] IDE: starting
[DEBUG] IDE: no extensions.txt nor valid content
[DEBUG] IDE: moving to extensions: C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2\jython-standalone-2.7.1.jar
[DEBUG] IDE: adding extension: C:\Users\Testcom1\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG] IDE: Running: C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2\sikulix (2).jar
[DEBUG] IDE: AppData: C:\Users\Testcom1\AppData\Roaming\Sikulix
[DEBUG] IDE: Classpath: C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2\sikulix (2).jar;C:\Users\Testcom1\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG] IDE: no extensions.txt nor valid content
[203 debug] RunTimeINIT: temp folder ok: C:\Users\Testcom1\AppData\Local\Temp\Sikulix_1587496721
***** show environment for 1.1.4-SNAPSHOT-#288-2019-04-20_14:08 IDE
user.home: C:\Users\Testcom1
user.dir (work dir): C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2
user.name: testcom1
java.io.tmpdir: C:\Users\Testcom1\AppData\Local\Temp
running 64Bit(amd64) on w (10.0) from a jar
java 8 version 1.8 vm 25.211-b12 class 52.0 arch 64
app data folder: C:\Users\Testcom1\AppData\Roaming\Sikulix
executing jar: C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2\sikulix (2).jar
*** classpath dump sikulix
  0: file:/C:/Users/Testcom1/Downloads/Bryan/Test%20Automation/installers/sukuli2/sikulix%20(2).jar
  1: file:/C:/Users/Testcom1/AppData/Roaming/Sikulix/Extensions/jython-standalone-2.7.1.jar
*** classpath dump end
***** show environment end
[604 debug] init user preferences
[604 debug] IDE: running with Locale: en_US
[DEBUG] IDE: --- Sikuli parameters ---
[DEBUG] IDE: 1: -v
[604 debug] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[651 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[651 debug] IDE: Init ScriptingSupport
[666 debug] IDESupport: enter
[3367 debug] Runner: added: PowerShell [ps1] text/powershell
[3367 debug] Runner: added: Sikulix [sikuli] directory/sikulix
[3367 debug] Runner: added: Text [txt] text/text
[4086 debug] Runner: added: JavaScript [js] text/javascript
[4498 debug] Runner: added: Jython [py] text/jython
[4498 debug] Runner: added: NetworkRunner [] NET
[4498 debug] IDESupport: added: Jython
[4498 debug] IDESupport: added: JavaScript
[4498 debug] IDESupport: added: Text
[4498 debug] IDESupport: exit: defaultrunner: Jython (py)
[4498 debug] IDE: Reading Preferences
[4498 debug] Screen: initScreens: starting
[4498 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[4498 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[4498 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[4514 debug] Screen: Monitor 0: (0, 0) 1366 x 768
[4514 debug] Screen: initScreens: ending
[4514 debug] IDE: Adding components to window
[4532 debug] [I18N] menuRecent
[4555 debug] [I18N] menuToolAndroid
[4558 debug] IDE: creating tabbed editor
[4698 debug] IDE: creating message area
[5120 debug] EditorConsolePane: starting redirection to message area
IDE terminated: returned: 0

Revision history for this message
RaiMan (raimund-hocke) said :
#3

rename sikulix (2).jar

to
sikulix.jar

Revision history for this message
Bryan (bryanvaldellon) said :
#4

Sorry about that,

Here's the log file after renaming:

C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2>java -jar sikulix.jar -v
[DEBUG] IDE: starting
[DEBUG] IDE: no extensions.txt nor valid content
[DEBUG] IDE: moving to extensions: C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2\jython-standalone-2.7.1.jar
[DEBUG] IDE: adding extension: C:\Users\Testcom1\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG] IDE: Running: C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2\sikulix.jar
[DEBUG] IDE: AppData: C:\Users\Testcom1\AppData\Roaming\Sikulix
[DEBUG] IDE: Classpath: C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2\sikulix.jar;C:\Users\Testcom1\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG] IDE: no extensions.txt nor valid content
[63 debug] RunTimeINIT: temp folder ok: C:\Users\Testcom1\AppData\Local\Temp\Sikulix_1024677180
***** show environment for 1.1.4-SNAPSHOT-#288-2019-04-20_14:08 IDE
user.home: C:\Users\Testcom1
user.dir (work dir): C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2
user.name: testcom1
java.io.tmpdir: C:\Users\Testcom1\AppData\Local\Temp
running 64Bit(amd64) on w (10.0) from a jar
java 8 version 1.8 vm 25.211-b12 class 52.0 arch 64
app data folder: C:\Users\Testcom1\AppData\Roaming\Sikulix
executing jar: C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2\sikulix.jar
*** classpath dump sikulix
  0: file:/C:/Users/Testcom1/Downloads/Bryan/Test%20Automation/installers/sukuli2/sikulix.jar
  1: file:/C:/Users/Testcom1/AppData/Roaming/Sikulix/Extensions/jython-standalone-2.7.1.jar
*** classpath dump end
***** show environment end
[244 debug] init user preferences
[245 debug] IDE: running with Locale: en_US
[DEBUG] IDE: --- Sikuli parameters ---
[DEBUG] IDE: 1: -v
[249 debug] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[329 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[329 debug] IDE: Init ScriptingSupport
[345 debug] IDESupport: enter
[2021 debug] Runner: added: PowerShell [ps1] text/powershell
[2021 debug] Runner: added: Sikulix [sikuli] directory/sikulix
[2021 debug] Runner: added: Text [txt] text/text
[2501 debug] Runner: added: JavaScript [js] text/javascript
[2610 debug] Runner: added: Jython [py] text/jython
[2610 debug] Runner: added: NetworkRunner [] NET
[2610 debug] IDESupport: added: Jython
[2610 debug] IDESupport: added: JavaScript
[2610 debug] IDESupport: added: Text
[2610 debug] IDESupport: exit: defaultrunner: Jython (py)
[2610 debug] IDE: Reading Preferences
[2626 debug] Screen: initScreens: starting
[2626 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[2626 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[2626 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[2626 debug] Screen: Monitor 0: (0, 0) 1366 x 768
[2626 debug] Screen: initScreens: ending
[2626 debug] IDE: Adding components to window
[2641 debug] [I18N] menuRecent
[2657 debug] [I18N] menuToolAndroid
[2673 debug] IDE: creating tabbed editor
[2816 debug] IDE: creating message area
[2894 debug] EditorConsolePane: starting redirection to message area
IDE terminated: returned: 0

Revision history for this message
RaiMan (raimund-hocke) said :
#5

ok, you should have the idea window now!?

otherwise run:
java -jar sikulix.jar -v -c

Revision history for this message
Bryan (bryanvaldellon) said :
#6

Hi, Sorry It's my first time to encounter this. Still crashing.
Not yet tried to run the .jar via Admin, I'm not sure if it will fix the issue.

Do you have any advise?

Error log:

C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2>java -jar sikulix.jar -v -c
[DEBUG] IDE: starting
[DEBUG] IDE: no extensions.txt nor valid content
[DEBUG] IDE: moving to extensions: C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2\jython-standalone-2.7.1.jar
[DEBUG] IDE: adding extension: C:\Users\Testcom1\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG] IDE: Running: C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2\sikulix.jar
[DEBUG] IDE: AppData: C:\Users\Testcom1\AppData\Roaming\Sikulix
[DEBUG] IDE: Classpath: C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2\sikulix.jar;C:\Users\Testcom1\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG] IDE: no extensions.txt nor valid content
[369 debug] RunTimeINIT: temp folder ok: C:\Users\Testcom1\AppData\Local\Temp\Sikulix_1297067661
***** show environment for 1.1.4-SNAPSHOT-#288-2019-04-20_14:08 IDE
user.home: C:\Users\Testcom1
user.dir (work dir): C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2
user.name: testcom1
java.io.tmpdir: C:\Users\Testcom1\AppData\Local\Temp
running 64Bit(amd64) on w (10.0) from a jar
java 8 version 1.8 vm 25.211-b12 class 52.0 arch 64
app data folder: C:\Users\Testcom1\AppData\Roaming\Sikulix
executing jar: C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2\sikulix.jar
*** classpath dump sikulix
  0: file:/C:/Users/Testcom1/Downloads/Bryan/Test%20Automation/installers/sukuli2/sikulix.jar
  1: file:/C:/Users/Testcom1/AppData/Roaming/Sikulix/Extensions/jython-standalone-2.7.1.jar
*** classpath dump end
***** show environment end
[1383 debug] init user preferences
[1383 debug] IDE: running with Locale: en_US
[DEBUG] IDE: --- Sikuli parameters ---
[DEBUG] IDE: 1: -v
[DEBUG] IDE: 2: -c
[1399 debug] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[1477 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[1477 debug] IDE: Init ScriptingSupport
[1492 debug] IDESupport: enter
[4338 debug] Runner: added: PowerShell [ps1] text/powershell
[4338 debug] Runner: added: Sikulix [sikuli] directory/sikulix
[4354 debug] Runner: added: Text [txt] text/text
[5510 debug] Runner: added: JavaScript [js] text/javascript
[5589 debug] Runner: added: Jython [py] text/jython
[5589 debug] Runner: added: NetworkRunner [] NET
[5589 debug] IDESupport: added: Jython
[5589 debug] IDESupport: added: JavaScript
[5589 debug] IDESupport: added: Text
[5589 debug] IDESupport: exit: defaultrunner: Jython (py)
[5589 debug] IDE: Reading Preferences
[5604 debug] Screen: initScreens: starting
[5604 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[5604 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[5604 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[5604 debug] Screen: Monitor 0: (0, 0) 1366 x 768
[5604 debug] Screen: initScreens: ending
[5604 debug] IDE: Adding components to window
[5807 debug] [I18N] menuRecent
[5885 debug] [I18N] menuToolAndroid
[5917 debug] IDE: creating tabbed editor
[6370 debug] IDE: creating message area
[6651 debug] IDE: creating combined work window
[6667 debug] IDE: Putting all together
[6667 debug] IDE: Putting all together - after main pane
[6917 debug] IDE: Putting all together - after toolbar
[6932 debug] IDE: Putting all together - before layout
[7698 debug] IDE: Putting all together - after layout
[7698 debug] IDE: Putting all together - Restore last Session
[7698 debug] IDE: doNew: create new tab at: -1
[7698 debug] EditorPane: EditorPane: creating new pane (constructor)
[7870 debug] FileManager: createTempDir:
C:\Users\Testcom1\AppData\Local\Temp\Sikulix_1297067661\tmp-755205609.sikuli
[7886 debug] ImagePath: new BundlePath:
/C:/Users/Testcom1/AppData/Local/Temp/Sikulix_1297067661/tmp-755205609.sikuli/
[7901 debug] EditorPane: initBeforeLoad: null
[7901 debug] Jython: starting initialization
[7979 debug] EditorPane: updateDocumentListeners from: initBeforeLoad
[7979 debug] EditorPane: InitTab: (text/jython)
[7995 debug] IDE startup: 8.0 seconds
IDE terminated: returned: 0

Revision history for this message
RaiMan (raimund-hocke) said :
#7

rather sure, that this is the problem:
C:\Users\Testcom1\Downloads\Bryan\Test Automation\installers\sukuli2

there is a space in the path ...\Test Automation\...

change to
...\TestAutomation\...

or
...\Test_Automation\...

or
...\Test-Automation\...

I have to fix this odd behavior ;-)

... but I always recommend to use path/file names (at least with SikuliX) that only contain:
letters, numbers, hyphen and underscore (no spaces, no other special characters!)

Revision history for this message
Bryan (bryanvaldellon) said :
#8

Hello RaiMan,

Thanks for the quick reply. Tried to remove the space on the 'Test Automation' folder. see the log below.

also did add a Pref key on registry as suggested on stackoverflow but still not resolved.

HKEY_LOCAL_MACHINE\Software\JavaSoft
HKEY_LOCAL_MACHINE\Software\WOW6432Node\JavaSoft

Log:
C:\Users\Testcom1\Downloads\Bryan\TestAutomation\installers\sukuli2>java -jar sikulix.jar -v
[DEBUG] IDE: starting
[DEBUG] IDE: no extensions.txt nor valid content
[DEBUG] IDE: adding extension: C:\Users\Testcom1\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG] IDE: Running: C:\Users\Testcom1\Downloads\Bryan\TestAutomation\installers\sukuli2\sikulix.jar
[DEBUG] IDE: AppData: C:\Users\Testcom1\AppData\Roaming\Sikulix
[DEBUG] IDE: Classpath: C:\Users\Testcom1\Downloads\Bryan\TestAutomation\installers\sukuli2\sikulix.jar;C:\Users\Testcom1\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG] IDE: no extensions.txt nor valid content
[185 debug] RunTimeINIT: temp folder ok: C:\Users\Testcom1\AppData\Local\Temp\Sikulix_1971258039
***** show environment for 1.1.4-SNAPSHOT-#288-2019-04-20_14:08 IDE
user.home: C:\Users\Testcom1
user.dir (work dir): C:\Users\Testcom1\Downloads\Bryan\TestAutomation\installers\sukuli2
user.name: testcom1
java.io.tmpdir: C:\Users\Testcom1\AppData\Local\Temp
running 64Bit(amd64) on w (10.0) from a jar
java 8 version 1.8 vm 25.211-b12 class 52.0 arch 64
app data folder: C:\Users\Testcom1\AppData\Roaming\Sikulix
executing jar: C:\Users\Testcom1\Downloads\Bryan\TestAutomation\installers\sukuli2\sikulix.jar
*** classpath dump sikulix
  0: file:/C:/Users/Testcom1/Downloads/Bryan/TestAutomation/installers/sukuli2/sikulix.jar
  1: file:/C:/Users/Testcom1/AppData/Roaming/Sikulix/Extensions/jython-standalone-2.7.1.jar
*** classpath dump end
***** show environment end
[332 debug] init user preferences
[332 debug] IDE: running with Locale: en_US
[DEBUG] IDE: --- Sikuli parameters ---
[DEBUG] IDE: 1: -v
[332 debug] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[370 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[370 debug] IDE: Init ScriptingSupport
[370 debug] IDESupport: enter
[2230 debug] Runner: added: PowerShell [ps1] text/powershell
[2230 debug] Runner: added: Sikulix [sikuli] directory/sikulix
[2230 debug] Runner: added: Text [txt] text/text
[2230 debug] Runner: added: Robot [robot] text/robot
[2735 debug] Runner: added: JavaScript [js] text/javascript
[2757 debug] Runner: added: Jython [py] text/jython
[2757 debug] Runner: added: NetworkRunner [] NET
[2757 debug] IDESupport: added: Jython
[2757 debug] IDESupport: added: JavaScript
[2757 debug] IDESupport: added: Text
[2757 debug] IDESupport: exit: defaultrunner: Jython (py)
[2757 debug] IDE: Reading Preferences
[2773 debug] Screen: initScreens: starting
[2773 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[2773 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[2773 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[2773 debug] Screen: Monitor 0: (0, 0) 1366 x 768
[2773 debug] Screen: initScreens: ending
[2773 debug] IDE: Adding components to window
[2788 debug] [I18N] menuRecent
[2820 debug] [I18N] menuToolAndroid
[2835 debug] IDE: creating tabbed editor
[3036 debug] IDE: creating message area
[3105 debug] EditorConsolePane: starting redirection to message area
IDE terminated: returned: 0

Revision history for this message
RaiMan (raimund-hocke) said :
#9

rather strange :-(

please run with
-v -c

Revision history for this message
Bryan (bryanvaldellon) said :
#10

Hello RaiMan,

it looks like the admin is blocking this. Checked the event blocker and saw that

"Information: The application C:\Users\Testcom1\Downloads\Bryan\TestAutomation\installers\sikuliz\sikulix.jar invoked the application C:\Windows\SysWOW64\cmd.exe. The operation was blocked and the application terminated by Confer."

already raised to our Infra team. will update you once it is whitelisted.

Thanks!

Can you help with this problem?

Provide an answer of your own, or ask Bryan for more information if necessary.

To post a message you must log in.