-
Notifications
You must be signed in to change notification settings - Fork 233
xvfb-run runsikulix fails at wmctrl #305
Comments
On Linux systems at startup the usability of the command wmctrl is tested. It is later used with the features of The App class. Apparently you have a problem with wmctrl in this xvfb-run situation (it is run in subprocess). So to check, you should run wmctrl with xvfb-run. If the problem persists, the you cannot use the App class features. ... but this has nothing to do with the core features of Sikuli. Run as to get more debug output especially about the screen as it is seen by SikuliX |
Wow, thanks for the swift response. OK—you're right that it's an Without xvfb-run:
With xvfb-run:
As a final question, I've seen so many different threads about xvfb and sikulix—is there a definitive guide or thread you'd recommend for trying to get sikuli to run with xvfb for Ubuntu 16.04? Adding my verbose logs here, before you close the issue, for posterity. I'll keep messing around with xvfb and wmctrl. Thanks again, @RaiMan , for your quick support! Logs:
|
Thanks for your feedback. Sorry no, I do not have any experiences with this Linux related stuff. Especially not about usage scenarios of xvfb. I only use it with version 2 on Travis:CI to run tests ... and it simply works ;-) But may be you should more look for "xvfb java headless". |
Hi you can use our headless vnc Docker contaier for your usecase I think: https://github.com/ConSol/docker-headless-vnc-container |
I've got a working installation of
sikulix 1.1.1
and have been developing a script that runs successfully onUbuntu 16.04
. Recently, I've tried to get the same script running on either a standardxvfb
display, or usingxvfb-run runsiklix -r my_script.sikuli --args state.json
(the latter being preferable for our implementation) but I'm getting this "Hoping for the best error" message. I paired down the script to something very simple and testable, and still can't get it working withxvfb
.Here is the script:
Here is the log:
The resulting screenshot is blank for xvfb and looks as it should, with the website loaded, when I run it with the normal display server.
The error message that I can't figure out is
[info] App: command wmctrl ran, but failed: 'org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)'. Hoping for the best
. I've gotwmctrl
installed, and don't see this message when I run without xvfb. Is it possible that this is a bug with1.1.1
?Thanks in advance for your consideration!
Taylor
The text was updated successfully, but these errors were encountered: