loop delays everything

Asked by babno

while True:
do stuff

I have an infinite loop in the form above. The first time through, it works perfectly fine. However the 2nd time it takes forever. When it should wait a few seconds to do something, it will instead wait >minute. It also will often move the mouse to location, wait 5-20 seconds, and then click. This is responding to a single click command, not a hover. I also notice that when I force stop it it says it's on the while True: line, even if it just executed a command several lines below it.

Previously, this exact script ran fine, however I recently upgraded to mavericks and am currently on 10.9.5, and I suspect that is the cause. Let this be a lesson, never upgrade kids. First my phone now this.
Sikuli version R930
Java version 1.6.0_65

Is anyone else experiencing this or know a fix?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

I totally understand your frustration, but a bit more information would help to help you:

- what version of Sikuli?
- what Java?

are you sure, that the images you are using for searching can be found as before?

Revision history for this message
babno (shieldlesstank) said :
#2

Sikuli version R930
Java version 1.6.0_65

The images are still there. I can cancel the current run of the script, start it again, and it will immediately work fine for 1 run through.

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

Sikuli X-1.0RC3 is no longer supported for such probably system specific problems.

I recommend, to give version 1.1.0 a try.
start here: http://sikulix.com -> nightly builds

If you get the same symptoms with this version, then you have to debug your scripts (… and then having more options with 1.1.0).

Take care:
- for Mac there is no longer an app
- keep the new SikuliX stuff together in one separate folder
- do not mix with RC3

Can you help with this problem?

Provide an answer of your own, or ask babno for more information if necessary.

To post a message you must log in.