sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32161
[Bug 1433454] Re: [1.1.0] Mac OS X 10.10: Scripts slowing down click/type after some rather short runtime
ThinkI started seeing this as well now with the Nightly build, using OSX 10.10.3 and Java 8. Runs at full speed until about 2 minutes in then slows down significantly in the click/type actions. I also see this debug output from the IDE, seems like it is related:
log] CLICK on L(721,196)@S(0)[0,0 1440x900]
[debug] MouseDown: extended delay: 10010
[debug] MouseUp: extended delay: 10011
[log] CLICK on L(808,351)@S(0)[0,0 1440x900]
[debug] MouseDown: extended delay: 10010
[debug] MouseUp: extended delay: 10011
[log] CLICK on L(39,63)@S(0)[0,0 1440x900]
[debug] MouseDown: extended delay: 10010
[debug] MouseUp: extended delay: 10011
Address bar open already
[log] CLICK on L(65,99)@S(0)[0,0 1440x900]
[debug] MouseDown: extended delay: 10010
[debug] MouseUp: extended delay: 10011
[log] CLICK on L(143,321)@S(0)[0,0 1440x900]
[debug] MouseDown: extended delay: 10010
[debug] MouseUp: extended delay: 10011
[log] CLICK on L(1014,66)@S(0)[0,0 1440x900]
[debug] MouseDown: extended delay: 10010
[debug] MouseUp: extended delay: 10011
Address bar open already
[log] CLICK on L(65,99)@S(0)[0,0 1440x900]
[debug] MouseDown: extended delay: 10010
[debug] MouseUp: extended delay: 10011
[log] CLICK on L(143,321)@S(0)[0,0 1440x900]
[debug] MouseDown: extended delay: 10010
[debug] MouseUp: extended delay: 10011
[log] CLICK on L(43,390)@S(0)[0,0 1440x900]
[debug] MouseDown: extended delay: 9777
[log] ( ⌘ ) TYPE "w"
[debug] KeyPress: extended delay: 10010
[debug] KeyRelease: extended delay: 10011
[debug] KeyRelease: extended delay: 10011
Address bar open already
[log] CLICK on L(65,99)@S(0)[0,0 1440x900]
[debug] MouseDown: extended delay: 10010
[debug] MouseUp: extended delay: 10011
[log] CLICK on L(143,321)@S(0)[0,0 1440x900]
[debug] MouseDown: extended delay: 10010
[debug] MouseUp: extended delay: 10011
[log] CLICK on L(139,66)@S(0)[0,0 1440x900]
[debug] MouseDown: extended delay: 10010
[debug] MouseUp: extended delay: 1857
[log] TYPE "#ESC."
[debug] KeyRelease: extended delay: 10010
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1433454
Title:
[1.1.0] Mac OS X 10.10: Scripts slowing down click/type after some
rather short runtime
Status in Sikuli:
In Progress
Bug description:
******** did some testing with
Mac OS X 10.10.2
Java 1.8.0_20 (64-Bit)
SikuliX version 1.1.0 (build 201503181055)
The script (run from the IDE) has a loop, where a new Mail is opened,
some clicks and types are done and the mail is closed with do-not-
save.
The 50 loop-turns ran with constant speed to the end.
(elapsed time about 15 minutes)
I could not see any slowdown effects here.
with this script
-------
switchApp("Mail")
newMail = "newMail.png"
anhang = "anhang.png"
nosave = "nosave.png"
for i in range(50):
start = time.time()
click(newMail)
win = App.focusedWindow()
win.highlight(1)
win.click(anhang)
wait(2)
type(Key.ESC)
ref = win.getLastMatch()
an = ref.offset(50,35)
betreff = an.offset(0, 70)
memo = an.offset(0, 150)
click(an)
type("a", Key.CMD); type(Key.BACKSPACE)
type("rhock"); wait(1); type(Key.ENTER)
click(betreff)
type("a", Key.CMD); type(Key.BACKSPACE)
type("this is some test"); wait(1)
click(memo)
type("a", Key.CMD); type(Key.BACKSPACE)
type("this is some test\n");
type("this is some test\n");
type("this is some test\n");
type("this is some test\n");
wait(2)
type("w", Key.CMD)
win.click(nosave)
wait(2)
print int(time.time()-start)
-------
Using os x 10.10.2, and sikuli 1.1.0 build. I'm pretty new to sikuli,
but have created about a 70 line script. basic stuff, click on this
button, type a short command, etc. however about 40-50 instructions
in (not always at the same spot), performance *suddenly* slows to a
crawl where each instruction can take almost 15 seconds to execute. i
searched around and couldn't come up w/ anything. thoughts?
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1433454/+subscriptions
References