{"action":"created","issue":{"url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/305","repository_url":"https://api.github.com/repos/RaiMan/SikuliX-2014","labels_url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/305/comments","events_url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/305/events","html_url":"https://github.com/RaiMan/SikuliX-2014/issues/305","id":295104649,"number":305,"title":"xvfb-run runsikulix fails at wmctrl","user":{"login":"taylordowns2000","id":8732845,"avatar_url":"https://avatars2.githubusercontent.com/u/8732845?v=4","gravatar_id":"","url":"https://api.github.com/users/taylordowns2000","html_url":"https://github.com/taylordowns2000","followers_url":"https://api.github.com/users/taylordowns2000/followers","following_url":"https://api.github.com/users/taylordowns2000/following{/other_user}","gists_url":"https://api.github.com/users/taylordowns2000/gists{/gist_id}","starred_url":"https://api.github.com/users/taylordowns2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylordowns2000/subscriptions","organizations_url":"https://api.github.com/users/taylordowns2000/orgs","repos_url":"https://api.github.com/users/taylordowns2000/repos","events_url":"https://api.github.com/users/taylordowns2000/events{/privacy}","received_events_url":"https://api.github.com/users/taylordowns2000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-07T11:35:24Z","updated_at":"2018-02-07T17:21:50Z","closed_at":null,"author_association":"NONE","body":"I've got a working installation of `sikulix 1.1.1` and have been developing a script that runs successfully on `Ubuntu 16.04`. Recently, I've tried to get the same script running on either a standard `xvfb` display, or using `xvfb-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 with `xvfb`.\r\n\r\nHere is the script:\r\n```\r\nimport json\r\nimport shutil\r\nimport sys.argv\r\n\r\nwith open(sys.argv[1]) as json_data:\r\n    d = json.load(json_data)\r\ntype(\"t\", Key.CTRL + Key.ALT)\r\nwait(2)\r\ntype(\"google-chrome https://www.bundesliga.com/de/bundesliga/\")\r\ntype(Key.ENTER)\r\nwait(5)\r\nscreenshot = capture(SCREEN)\r\nshutil.move(screenshot, \"/home/taylor/my_script.sikuli/tmp/screenshot.png\")\r\n```\r\n\r\nHere is the log:\r\n```\r\n ~  xvfb-run ~/runsikulix -r ~/my_script.sikuli --args ~/my_script.sikuli/tmp/state.json\r\nrunning SikuliX: -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine\r\n-jar /home/taylor/sikulix.jar -r /home/taylor/my_script.sikuli --args /home/taylor/my_script.sikuli/tmp/state.json\r\n[info] runcmd: lsb_release -i -r -s \r\n[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\r\n[log] ( Ctrl+Alt )  TYPE \"t\"\r\n[log]  TYPE \"google-chrome https://www.bundesliga.com/de/bundesliga/\"\r\n[log]  TYPE \"#ENTER.\"\r\n```\r\nThe resulting screenshot is blank for xvfb and looks as it should, with the website loaded, when I run it with the normal display server.\r\n\r\nThe 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 got `wmctrl` installed, and don't see this message when I run without xvfb. Is it possible that this is a bug with `1.1.1`?\r\n\r\nThanks in advance for your consideration!\r\n\r\nTaylor"},"comment":{"url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/comments/363843634","html_url":"https://github.com/RaiMan/SikuliX-2014/issues/305#issuecomment-363843634","issue_url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/305","id":363843634,"user":{"login":"RaiMan","id":586370,"avatar_url":"https://avatars1.githubusercontent.com/u/586370?v=4","gravatar_id":"","url":"https://api.github.com/users/RaiMan","html_url":"https://github.com/RaiMan","followers_url":"https://api.github.com/users/RaiMan/followers","following_url":"https://api.github.com/users/RaiMan/following{/other_user}","gists_url":"https://api.github.com/users/RaiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/RaiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaiMan/subscriptions","organizations_url":"https://api.github.com/users/RaiMan/orgs","repos_url":"https://api.github.com/users/RaiMan/repos","events_url":"https://api.github.com/users/RaiMan/events{/privacy}","received_events_url":"https://api.github.com/users/RaiMan/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T17:21:50Z","updated_at":"2018-02-07T17:21:50Z","author_association":"OWNER","body":"Thanks for your feedback.\r\n\r\nSorry no, I do not have any experiences with this Linux related stuff. Especially not about usage scenarios of xvfb.\r\n\r\nI only use it with version 2 on Travis:CI to run tests ... and it simply works ;-)\r\n\r\nBut may be you should more look vor \"xvfb java headless\"."}}
{"actor":{"display_login":"RaiMan"}}