Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application.focus won't work in 0.9.1-SNAPSHOT #107

Closed
toschneck opened this issue Sep 22, 2015 · 2 comments
Closed

Application.focus won't work in 0.9.1-SNAPSHOT #107

toschneck opened this issue Sep 22, 2015 · 2 comments

Comments

@toschneck
Copy link
Contributor

Due to some changes in the LinuxUtils, following error occures with App.focus() and App.close() afterwards:

 ERROR in closing Application
sakuli-example-centos_1 | java.lang.ArrayIndexOutOfBoundsException: 0
sakuli-example-centos_1 |       at org.sikuli.natives.LinuxUtil.close(LinuxUtil.java:298) ~[sikulixapi-1.1.993.jar:na]
sakuli-example-centos_1 |       at org.sikuli.natives.LinuxUtil.close(LinuxUtil.java:143) ~[sikulixapi-1.1.993.jar:na]
sakuli-example-centos_1 |       at org.sikuli.script.App.close(App.java:468) ~[sikulixapi-1.1.993.jar:na]
sakuli-example-centos_1 |       at org.sakuli.actions.environment.Application.closeApp(Application.java:140) ~[sakuli.jar:na]

Checking:

  • wmctrl", "-ia" won't return the PID
  • App.java:533 init method will set wrong PID
@toschneck toschneck self-assigned this Sep 22, 2015
@toschneck toschneck added this to the rel-v1.0 milestone Sep 22, 2015
@toschneck toschneck modified the milestones: rel-v0.9.1, rel-v1.0 Oct 19, 2015
@simonmeggle
Copy link

Test on latest Sikuli version

@simonmeggle
Copy link

see also #126

toschneck pushed a commit that referenced this issue Dec 8, 2015
* Focus application
* Closing application
* Make  output and control of native commands more flexible
toschneck pushed a commit that referenced this issue Dec 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants