← Back to team overview

sikuli-driver team mailing list archive

Re: [Bug 1433454] [1.1.0] Mac OS X 10.10: Scripts slowing down click/type after some rather short runtime

 

I am currently preparing the next nightly for tomorrow.

If you want you can try with the new IDE app (should work, since I am myself working with OSX 10.10).
http://nightly.sikuli.de/newindex.html

feedback welcome.

Raimund

Am 19.03.2015 um 15:03 schrieb Benjamin Lok:

yes, i do run the mail app from apple.  please note that the script
slowing down thing happens even when i restart my mac, have nothing
open, then just run sikuli and start the script.  it first runs pgadmin,
then excel, then mail.  it never makes it out of excel before it slows
to a crawl.  do you think some sort of screencap/share would help?

Benjamin Lok, Ph.D.
Co-Founder and Product Manager
Shadow Health, Inc.
lok@xxxxxxxxxxxxxxxx

Professor and Director of the Digital Arts and Sciences Program
Computer and Information Sciences Department
University of Florida


> On Mar 19, 2015, at 4:00 AM, RaiMan <rmhdevelop@xxxxxx> wrote:
> 
> thanks.
> I will setup a script that uses Safari and a webpage.
> Might be more universal.
> 
> Do you use the Mail app from Apple?
> 
> Raimund
> 
>> On 18 Mar 2015, at 22:47, Benjamin Lok <lok@xxxxxxxxxxxxxxxx> wrote:
>> 
>> if there are any scripts you want me to try to run on my side and give
>> you and debug output, please let me know.  i’m happy to help.
>> 
>> Benjamin Lok, Ph.D.
>> Co-Founder and Product Manager
>> Shadow Health, Inc.
>> lok@xxxxxxxxxxxxxxxx
>> 
>> Professor and Director of the Digital Arts and Sciences Program
>> Computer and Information Sciences and Engineering Department
>> University of Florida
>> 
>>> On Mar 18, 2015, at 7:16 AM, RaiMan <rmhdevelop@xxxxxx> wrote:
>>> 
>>> ** Description changed:
>>> 
>>> + ******** 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.
>>> + 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?
>>> 
>>> ** Description changed:
>>> 
>>> ******** did some testing with
>>> - Mac OS X 10.10.2 
>>> + 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)
>>> +   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?
>>> 
>>> -- 
>>> You received this bug notification because you are subscribed to the bug
>>> report.
>>> 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
>> 
>> -- 
>> You received this bug notification because you are subscribed to the bug
>> report.
>> 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
> 
> -- 
> You received this bug notification because you are subscribed to the bug
> report.
> 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

-- 
You received this bug notification because you are subscribed to the bug
report.
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

-- 
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


Follow ups

References