These are chat archives for RaiMan/SikuliX-2014

6th
Sep 2017
shikazu
@shikazu
Sep 06 2017 10:37 UTC
hey guys, i've got a short question
im trying to start sikuli with a docker container
if i run sikuli with runsikulix -r script the script works until the first wait() command
[error] java.lang.NullPointerException ( java.lang.NullPointerException )
[error] --- Traceback --- error source first
line: module ( function ) statement
63: Sikuli ( wait ) at org.sikuli.script.Screen.capture(Screen.java:545)
[error] --- Traceback --- end --------------
if i run exactly the same command via terminal on the exact same machine in the same working directory it works like a charm
any idea what could have happened?
first im starting vncserver and with && i added a sleep to make sure its started and with another && im running runsikulix
no idea how to fix that :/
shikazu
@shikazu
Sep 06 2017 13:15 UTC
for people who are encountering the same problem in the future: dont use the CMD or ENTRYPOINT for running sikuli but use the xstartup file from the vncserver and attach your command to the end of the file
this ensures all gui, windows, etc. are loaded
otherwise the wmctrl is not able to start the programs ;)