[1.1.0] OS X 10.10: Slow down caused by Images of screen being generated and saved in images folder???

Asked by Mik

OSX10.10.3 Sikuli1.1.0 Nightly 2015-04-23

I happened to notice that multiple images(8+) of the entire screen at 5mb+ a piece are being generated during script execution.

I have been trying to deal with slow script execution.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Eugene S (shragovich) said :
#1

What is the question?

Revision history for this message
Mik (mikola-rose) said :
#2

The question is, is this normal behavior for sikuli to take that many full screen screen shots during script execution? Could it be the cause or the progressive slow down of sikuli? If so then is it attributed to anything in my script?

> On Apr 23, 2015, at 10:51 PM, Eugene S <email address hidden> wrote:
>
> Your question #265782 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/265782
>
> Status: Open => Needs information
>
> Eugene S requested more information:
> What is the question?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/sikuli/+question/265782
>
> You received this question notification because you asked the question.

Revision history for this message
Eugene S (shragovich) said :
#3

I know that some temporary images are being created during runtime. They are being deleted however when the script is finished. DO you mean that those images remain after the script is done?
If yes, can you share their names and location?

Thanks

Revision history for this message
RaiMan (raimund-hocke) said :
#4

There currently is a problem with OS X 10.10.x and definitely Java 8 when running scripts from the IDE, that last longer than 60 seconds after the first mouse or keyboard action. there are delays of some ten seconds until the next click happens.

see bug 1447096

BTW: I would really be interested what images you are talking about.
If they are in the temp folder, then they should only exist during run and auto deleted when the IDE ends (in fact when the JVM ends). But in general even intermediate files of some MB are handled within some 10 milliseconds and do not lead to slowdowns.

Revision history for this message
Mik (mikola-rose) said :
#5

No they are getting deleted after run. I think my question was clear.

> On Apr 23, 2015, at 11:16 PM, Eugene S <email address hidden> wrote:
>
> Your question #265782 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/265782
>
> Status: Open => Answered
>
> Eugene S proposed the following answer:
> I know that some temporary images are being created during runtime. They are being deleted however when the script is finished. DO you mean that those images remain after the script is done?
> If yes, can you share their names and location?
>
> Thanks
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/265782/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/265782
>
> You received this question notification because you asked the question.

Revision history for this message
Mik (mikola-rose) said :
#6

Thank you, that sounds like my problem. the slow downs seem to be progressive and I can wait for 2 min or more for an action.

> On Apr 23, 2015, at 11:36 PM, RaiMan <email address hidden> wrote:
>
> Your question #265782 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/265782
>
> RaiMan proposed the following answer:
> There currently is a problem with OS X 10.10.x and definitely Java 8
> when running scripts from the IDE, that last longer than 60 seconds
> after the first mouse or keyboard action. there are delays of some ten
> seconds until the next click happens.
>
> see bug 1447096
>
> BTW: I would really be interested what images you are talking about.
> If they are in the temp folder, then they should only exist during run and auto deleted when the IDE ends (in fact when the JVM ends). But in general even intermediate files of some MB are handled within some 10 milliseconds and do not lead to slowdowns.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/265782/+confirm?answer_id=3
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/265782
>
> You received this question notification because you asked the question.

Revision history for this message
Best RaiMan (raimund-hocke) said :
#7

No, definitely not your problem.

Did you look at the respective bug mentioned above?

Revision history for this message
Mik (mikola-rose) said :
#8

Thank you

Revision history for this message
Mik (mikola-rose) said :
#9

I did and it runs fine when run from shell