Re: [Sikuli-driver] [Question #665279]: [1.1.x] Mac: node-java : Instantiating SikuliX classes through API hangs --- solution

2018-03-15 Thread Finn Ellis
Question #665279 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665279

Finn Ellis posted a new comment:
If it's all right with you, as I learn more things about this I'm going
to continue putting them here, as an aid to future searchers -- if you'd
rather that go elsewhere, please let me know. :)

One caveat of this approach is that it appears to support screen-reading
operations but not screen-writing; so mouse movement and image finding
work, but highlighting fails and hangs. (I suspect that the built-in
image-capturing mechanism might also fail, because it shades the screen
to indicate the capture area, but I haven't had reason to test it.)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #665279]: [1.1.x] Mac: node-java : Instantiating SikuliX classes through API hangs --- solution

2018-03-15 Thread RaiMan
Question #665279 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665279

Description changed to:
 solution (from comment #12)

Adding:

process.env['JAVA_STARTED_ON_FIRST_THREAD_' + process.pid] = '1'

before instantiating any Sikuli classes through node got it working. :)

--

I'm using the node-java module (https://github.com/joeferner/node-java)
as a bridge between some nodejs test scripts and the SikuliX Java API.
It's working great on Windows, but when I try to run the same scripts on
Mac, it hangs at the first point where it tries to instantiate any class
from SikuliX. Specifically, it opens up a little GUI app whose label is
just "bin" and which has no windows; command-clicking to see its
location takes me to /usr/local/bin (which raises more questions than it
answers). When I force quit the app, the script doesn't resume, it just
ends.

Using the API and the command line tool work fine (although of course
they're not compatible with my Node scripts) -- and using node-java with
any other Java package on Mac also works fine. So neither one is broken
alone, and I'm not sure what about the combination causes this error. I
realize how much of an edge case this is, but any suggestions about what
might be going on or where I could look would be much appreciated.

I've tried SikuliX 1.1.1 and 1.1.2, in both cases by completing the
setup normally (taking options #1 and #2) and then copying the generated
sikulixapi.jar into the folder I'm working in. Java JDK version is
1.8.0, macOS 10.13.3.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #665279]: [1.1.x] Mac: node-java : Instantiating SikuliX classes through API hangs --- solution

2018-03-15 Thread RaiMan
Question #665279 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665279

Summary changed to:
[1.1.x] Mac: node-java : Instantiating SikuliX classes through API hangs --- 
solution

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp