Re: [Sikuli-driver] [Question #700532]: Sikulix hanging on region.exists(target, timeout), screen.exists(target, timeout) method, Region or Screen

2022-04-20 Thread RaiMan
Question #700532 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700532

RaiMan posted a new comment:
Ok, you have deleted comment #9 --- no problem.
All you said is true. My priority is to keep the stuff running on Windows, Mac 
and Linux. Over the time I am trying to revise the code, but it is much effort, 
when you try to keep the stuff backwards compatible.
And on top there is the support for Jython based scripting with the IDE.
So I have to set priorities based on what the majority of users is asking for.
Anyways I am always open for suggestions and contributions.

--- at comment #10
I had to learn, that supporting SikuliX features on USB-connected Android 
devices is possible, but a huge effort on top, to keep it up-to-date. So I 
decided, to let others kick that ball.
One of those others is scrcpy, which looks rather mature and handy: 
https://github.com/Genymobile/scrcpy

All the best.

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

___
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 #700532]: Sikulix hanging on region.exists(target, timeout), screen.exists(target, timeout) method, Region or Screen

2022-04-20 Thread johnny doe
Question #700532 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700532

johnny doe posted a new comment:
It's sad that adb is not supported anymore I've been using this library
for everything in my daily life. Thank you for developing the library to
what is it today. I need to move on to other libraries if adb is not
supported anymore.

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

___
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 #700532]: Sikulix hanging on region.exists(target, timeout), screen.exists(target, timeout) method, Region or Screen

2022-04-20 Thread johnny doe
Question #700532 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700532

Status: Answered => Solved

johnny doe confirmed that the question is solved:
Sorry its not only adb. The library today it's full of bugs. Unlike
before v1.1, I dunno what you are doing to the library. The code is a
mess with the naming convention of java not being followed. I will
transfer to opencv myself >.<  . Maybe father time hit you and should
just pass the library to other ppl to manage. There is too much
boilerplate code inside without documentation. I don't mean to be rude I
am just concern the path library is taking.

https://www.oracle.com/java/technologies/javase/codeconventions-
namingconventions.html

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

___
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 #700532]: Sikulix hanging on region.exists(target, timeout), screen.exists(target, timeout) method, Region or Screen

2022-04-19 Thread RaiMan
Question #700532 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700532

Status: Open => Answered

RaiMan proposed the following answer:
No one has the time to look at lengthy videos.

If you have problems, then post some code and a very good description of
the problem.

adb... is currently not supported anyways.

Since you are using Java, you probably can debug.

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

___
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 #700532]: Sikulix hanging on region.exists(target, timeout), screen.exists(target, timeout) method, Region or Screen

2022-04-18 Thread johnny doe
Question #700532 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700532

Status: Answered => Open

johnny doe is still having a problem:
Sir please check the video. It hangs at region.exists(target,timeout) 
https://youtu.be/FH19nxhYg3I?t=7276 
It also hangs in adbScreen.captureScreen

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

___
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 #700532]: Sikulix hanging on region.exists(target, timeout), screen.exists(target, timeout) method, Region or Screen

2022-02-09 Thread RaiMan
Question #700532 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700532

RaiMan proposed the following answer:
then it might be a good idea, to cut the process into subprocesses, that
only run for an hour.

I do not have any experiences with long running scripts.

Might be a good idea, to set up a long running test and track the
resources.

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

___
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 #700532]: Sikulix hanging on region.exists(target, timeout), screen.exists(target, timeout) method, Region or Screen

2022-02-07 Thread johnny doe
Question #700532 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700532

johnny doe posted a new comment:
it happens after a few of hours of running

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

___
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 #700532]: Sikulix hanging on region.exists(target, timeout), screen.exists(target, timeout) method, Region or Screen

2022-02-07 Thread jason sanga
Question #700532 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700532

jason sanga posted a new comment:
That one question is very difficult for me and as ell as for the
https://tubbomerchshop.com/so I really found difficulty to implement it.

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

___
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 #700532]: Sikulix hanging on region.exists(target, timeout), screen.exists(target, timeout) method, Region or Screen

2022-02-07 Thread RaiMan
Question #700532 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700532

Status: Open => Answered

RaiMan proposed the following answer:
Made some tests and did not find any reason, why exists(..., 0) should hang 
internally.
There are loops, but none of them is "unchecked".

Adding
Debug.on(3)
reveals some internal logging, that shows, how the find op proceeds.

If you do not trust the exists(..., 0) (because of a possible internal 
"unchecked loop"), a possible wrapper/substitute could be:
try {
return screen.find(imagename);
} catch {
return null;
}

find internally only searches once and does not have a wait loop
internally.

For the above I suppose that you are not using the features
handleImageMissing and handleFindFailed, which would be a more complex
situation.

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

___
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 #700532]: Sikulix hanging on region.exists(target, timeout), screen.exists(target, timeout) method, Region or Screen

2022-02-07 Thread johnny doe
Question #700532 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700532

Status: Needs information => Open

johnny doe gave more information on the question:
Sikulix 2.5
if(screen.exists(imageName,0)!=null)

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

___
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 #700532]: Sikulix hanging on region.exists(target, timeout), screen.exists(target, timeout) method, Region or Screen

2022-02-06 Thread RaiMan
Question #700532 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700532

Status: Open => Needs information

RaiMan requested more information:
What version of SikuliX?

Always the same exists statement?

Pls. provide a usage example.

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

___
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 #700532]: Sikulix hanging on region.exists(target, timeout), screen.exists(target, timeout) method, Region or Screen

2022-02-06 Thread johnny doe
Question #700532 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700532

Description changed to:
Hello sometimes when I run my bot in java it hangs in the method exists
for unknown reason. Must be a unchecked loop without a timeout. My
current workaround is wrap the exist method in ExecutorService and exit
the function for 2 seconds if stuck. Would be better if it does not need
ExecutorService because it eats cpu resources.

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

___
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 #700532]: Sikulix hanging on region.exists(target, timeout), screen.exists(target, timeout) method, Region or Screen

2022-02-06 Thread johnny doe
Question #700532 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700532

Summary changed to:
Sikulix hanging on region.exists(target,timeout),screen.exists(target,timeout) 
method, Region or Screen

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

___
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