← Back to team overview

sikuli-driver team mailing list archive

[Bug 1370113] Re: [1.0.1] Mac: Sikuli ignores X11 DISPLAY variable on remote machine run via ssh

 

I am running my nightly build production on a Jenkins installation on
OSX server 10.9.

what is your problem, besides the headless situation?

Java AWT and Java Robot refuse to run on systems having no screen attached.
As far as I understand, simply setting the X11 display is not enough.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1370113

Title:
  [1.0.1] Mac: Sikuli ignores X11 DISPLAY variable on  remote machine
  run via ssh

Status in Sikuli:
  In Progress

Bug description:
  System details are:

  Host machine : OSX 10.9.2 (where i am trying to run the tests FROM)
  Destination machine: OSX 10.9.2 (where I want the tests to execute ON)
  Version 1.0.1

  I have built the setup jar with the and IDE and without (no IDE and
  option of executing on the command line)

  Hi, I am trying to run a sikuli script I have written from another
  machine (all the scripts and the jars, etc exist on the remote
  host...I can run them fine If i am sat at the machine)

  Before running the commands i export the display...

  export DISPLAY=:0.0

  I ssh in, and cd into the directory and run the following command....

  java -jar /Users/admin/Documents/Sikuli/sikuli-script.jar
  Scripts/End2End.sikuli

  I see...

  No X11 DISPLAY variable was set, but this program performed an operation which requires it.
  	at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)
  	at java.awt.Window.<init>(Window.java:535)
  	at java.awt.Frame.<init>(Frame.java:420)
  	at java.awt.Frame.<init>(Frame.java:385)
  	at javax.swing.JFrame.<init>(JFrame.java:180)
  	at org.sikuli.basics.MultiFrame.<init>(MultiFrame.java:29)
  	at org.sikuli.basics.SikuliX.displaySplash(SikuliX.java:109)
  	at org.sikuli.basics.SikuliScript.main(SikuliScript.java:39)

  I also tried....
  /Applications/SikuliX-IDE.app/Contents/runIDE -r "End2End.sikuli" --args superbobc

  But that gives me the same.

  On another note, when I try to launch another app, i.e. TextEdit....
  /Applications/TextEdit.app/Contents/MacOS/TextEdit

  works fine, I can see it fire up

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1370113/+subscriptions


References