← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #274811]: screen/graphics issue when running from terminal

 

Question #274811 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/274811

Description changed to:
So firstly, I have sikuli.skl or sikuli.sikuli files. There is a simple
click on terminal. There are no issues to 'run' these script using
graphical interface - /Applications/SikuliX. I can see mouse movement
and click.

My OS: Yosemite 10.10.5

Two version of java tested:

mac:~ root# /usr/bin/java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)
mac:~ root#

mac:Sikulix root# ./runsikulix -r /Users/apple/Downloads/sikuli.skl 
running SikuliX: ./SikuliX.app/Contents/Java/sikulix.jar -r /Users/apple/Downloads/sikuli.skl
[error] Location: outside any screen (0, 1440) - subsequent actions might not work as expected
[error] Location: outside any screen (0, 1440) - subsequent actions might not work as expected
[error] script [ /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/Sikulix_1531865805/sikuli.sikuli ] stopped with error in line 1
[error] FindFailed ( can not find 1447888085660.png in R[0,0 2560x1440]@S(0) )
mac:Sikulix root#


I did - rm /usr/bin/java; ln -s ....java1.8..... /usr/bin/java
mac:~ root# java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

mac:Sikulix root# ./runsikulix -r /Users/apple/Downloads/sikuli.skl
running SikuliX: /Applications/SikuliX.app/Contents/Java/sikulix.jar -r /Users/apple/Downloads/sikuli.skl
Exception in thread "main" java.awt.HeadlessException
	at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
	at java.awt.Window.<init>(Window.java:536)
	at java.awt.Frame.<init>(Frame.java:420)
	at javax.swing.JFrame.<init>(JFrame.java:233)
	at org.sikuli.ide.SikuliIDE.<init>(SikuliIDE.java:153)
	at org.sikuli.ide.SikuliIDE.getInstance(SikuliIDE.java:158)
	at org.sikuli.ide.SikuliIDE.run(SikuliIDE.java:179)
	at org.sikuli.ide.Sikulix.main(Sikulix.java:21)
mac:Sikulix root# 

For some reason I get screen or graphics environment errors. Any ideas
how to test it better? Or maybe you can see the issue now?

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