** Changed in: sikuli
Status: Fix Committed => In Progress
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1761226
Title:
[1.1.2] macOS: running SikuliX via ssh needs a java option for the
screen --- should be detected and reported
Status in Sikuli:
In Progress
Bug description:
------ solution in this special case: (see related question)
run ssh so:
ssh user@ip 'AWT_FORCE_HEADFUL=true java -jar <sikulix.jar> -r
<someScript.sikuli>'
--------------------------------------
Sikuli versions: 1.1.2, 1.1.3
Mac OS: 10.13, 10.12, 10.10
Java versions: 1.8, 1.9
My sikuli script works fine when I run it from Sikuli IDE and from command
line (without IDE).
But when I connect via ssh to the Mac where Sikuli is installed and run the
same script, it fails with an error:
[error] script [ /Users/shareduser/<path-to-script>/click_button.sikuli ]
stopped with error in line 1
[error] java.lang.NullPointerException ( java.lang.NullPointerException )
The script 'click_button.sikuli' itself is very simple:
click(<my image>)
How do I run the script from command line:
java -jar /Applications/SikuliX.app/Contents/Java/sikulix.jar -r
/Users/shareduser/<path-to-script>/click_button.sikuli
(it works fine)
How do I run the same script when I connect via ssh (I run the following
command on a different Mac to run the script on the Mac where Sikuli is
installed):
ssh [email protected] 'java -jar
/Applications/SikuliX.app/Contents/Java/sikulix.jar -r
/Users/shareduser/<path-to-script>/click_button.sikuli'
(it fails with NullPointerException, see full error text above)
I've tried different versions of Java, Mac OS and Sikuli, but the result is
always the same.
I'm out of options now.
Any help will be highly appreciated.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1761226/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp