[1.1.0] Mac OSX 10.9: MouseDown extended delay

Asked by Jonathan

I am running the following code interacting with a game

Settings.MoveMouseDelay = 0

            click(chatWindowRegion)
            click(chatWindowRegion) # second click as sometimes the first click brings the wrong field into focus
            type("a",KEY_CMD)
            type("c",KEY_CMD)
            clipBoard = App.getClipboard()
            print chunkU

sometimes (usually the first time) it works but then I get in the log:-

[log] CLICK on L(82,1075)@S(0)[0,0 2560x1440]

[debug] MouseDown: extended delay: 19956

[debug] MouseUp: extended delay: 2777
[log] CLICK on L(82,1075)@S(0)[0,0 2560x1440]
[debug] MouseDown: extended delay: 10010

[log] ( ⌘ ) TYPE "a"

[debug] KeyRelease: extended delay: 3157

java.lang.InterruptedException: sleep interrupted
java.lang.InterruptedException: sleep interrupted
 at java.lang.Thread.sleep(Native Method)
 at java.awt.Robot.delay(Robot.java:427)
 at org.sikuli.script.RobotDesktop.delay(RobotDesktop.java:193)
 at java.awt.Robot.autoDelay(Robot.java:413)
 at java.awt.Robot.afterEvent(Robot.java:363)
 at java.awt.Robot.mouseRelease(Robot.java:204)
 at org.sikuli.script.RobotDesktop.doMouseUp(RobotDesktop.java:70)
 at org.sikuli.script.RobotDesktop.mouseUp(RobotDesktop.java:167)
 at org.sikuli.script.Mouse.up(Mouse.java:391)
 at org.sikuli.script.Mouse.up(Mouse.java:375)
 at org.sikuli.script.Mouse.reset(Mouse.java:100)
 at org.sikuli.script.Sikulix.cleanUp(Sikulix.java:318)
 at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:2328)

[debug] KeyRelease: extended delay: 2683
[error] script [ main ]] stopped with error at line --unknown--
[error] Could not evaluate error source nor reason. Analyze StackTrace!
[error]

Because of the extended delays the rest of my program is not working. Can you suggest any reasons I'm getting these extended delays? Could it be something else running on my computer?

Thanks

Jonathan

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
Best RaiMan (raimund-hocke) said :
#1

if Mac 10.10 look:
bug 1447096

Revision history for this message
Jonathan (jonathan-clark404) said :
#2

For future reference I was running Sikuli on a MAC OS X 10.9.5.

Running the IDE from the command line seems to solve this problem.

Thanks for your prompt response

Jonathan

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

thanks for feedback.

What Java version?

Do you use the latest 1.1.0 build?

Revision history for this message
Jonathan (jonathan-clark404) said :
#4

If I put java -version into a shell I get

java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

Is that what you want?

 I'm using 1.1.0 build 2015-05-04_01.00nightly. I don't download the latest build that often but I did when I experienced this problem to see if it made a difference. I got the problem with 1.0.1 as well.

Jonathan

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

thanks for the info.

You should try with the latest 1.1.0, since I added a "workaround" (ok, let's say a hack ;-) that seems to help.

Revision history for this message
Jonathan (jonathan-clark404) said :
#6

I just downloaded 1.1.0 again but it still says that it is 2015-05-04_01.00nightly. It is also still giving the same problem. I shall continue to launch from the command line as this seems to work fine.

Jonathan

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

you have to download the setup jar, then run setup again and then copy the SikuliX.app again to /Applications.

Revision history for this message
Christopher H (chris-haerem) said :
#8

I don't know if this problem has been fully solved. I still get the extended delay error on build 2015-10-05_1:00nightly on OS X 10.11. I have tried reinstalling Sikuli to the newest build(at least I think it's the newest), but still get the error.

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

Thanks for the pointer.
yes you have the latest 1.1.0 (but should switch to final now ;-)

I will check.
I had inserted a hack, but have to admit, that I did not check in 10.11 yet.

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

checked:
the hack only works on 10.10.

I will fix it asap.
Watch the nightly builds for 1.1.1.

Revision history for this message
Christopher H (chris-haerem) said :
#11

Great :) sorry for a dumb question, but where/when is the build released?

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

Somewhen the next days.

simply visit the nightly build page once a day.

start here
http://sikulix.com

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

Somewhen the next days.

simply visit the nightly build page once a day.

start here
http://sikulix.com

Revision history for this message
Christopher H (chris-haerem) said :
#14

Hi again. Sorry for many questions, but the nightly build page has no builds on it. It only says "Coming soon". If this is because no night build has been released yet I apologies for being inpatient :)

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

Sorry for the delay. Other priorities.
I hope that I get it ready today, so that the first build will be available tomorrow.

Revision history for this message
Jody (jody-corpinsight) said :
#16

I also am running into the same problem - unable to loop my script because I get extended delay in my debug

first time it works

[log] DOUBLE CLICK on L(62,71)@S(0)[0,0 2560x1440]
second loop
[log] DOUBLE CLICK on L(62,71)@S(0)[0,0 2560x1440]
[debug] MouseDown: extended delay: 30209
[debug] MouseUp: extended delay: 10010
[debug] MouseDown: extended delay: 30208
[debug] MouseUp: extended delay: 10010

and then it fails.
I am running MacOS 10.11.2 and Sikuli 1.1.0

Revision history for this message
Sao (e-bm) said :
#17

I have the same problem on OSX 10.11.3 and Sikuli 1.1.0

Scripts are useless, they slow down too much after just a short while.
Tried the listed workarounds but they didn't work.

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

@Sao
you should try with 1.1.1 nightly, which is available again since today.

Revision history for this message
Sao (e-bm) said :
#19

Yes, that did it. Ty!