[1.1.1] macOS Sierra 10.12: type() gets very slow after about 40 sec runtime - fixed 2016-10-10

Bug #1631720 reported by RaiMan on 2016-10-09
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

********* RaiMan tested and confirmed

after about 40 seconds runtime, the type command pauses about 10 seconds at key release for each following single character/key.

This is the same problem as we had with click actions with OSX 10.10.
It was caused by some strange behavior of the Java Robot deep inside.
At this time, type() was not yet affected. But now it seems to be.

this is my test script, that recovers from the situation with an intermediate highlight.

# TextEdit must be running with an open text window
x = "asdfghjklyxcvbnmqwertzuiop"
type("a", Key.CMD)
start = time.time()
for i in range(50):
  type(str(int(time.time() - start)) + " ")
  for c in x:
    lap = time.time()
    if time.time()-lap > 1:

After detecting the extended delay, the problem is fixed by the highlight.


After Upgrade to Sierra the Type Command seems very Slow
Is anyone else finding this or is it just my old Mac struggling

RaiMan (raimund-hocke) wrote :

I have to check, wether the click()-delay fix works as well here.

Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.1

macOS Sierra 10.12 was not detected, hence the hack was not applied.

Changed in sikuli:
status: In Progress → Fix Committed
importance: High → Critical
summary: [1.1.1] macOS Sierra 10.12: type() gets very slow after about 40 sec
- runtime
+ runtime - fixed 2016-10-09
RaiMan (raimund-hocke) wrote :

please check - highly appreciated

summary: [1.1.1] macOS Sierra 10.12: type() gets very slow after about 40 sec
- runtime - fixed 2016-10-09
+ runtime - fixed 2016-10-10
Jeff_Vallis (vallis-pj) wrote :

Enventualy I found out what my problem was - and it was complex

My Usage of Sikuli
    I call Sikuli from Power Manager which enables me to Schedule events to be done
    After the update to Sierra the typing speed was 5 times slower than before
    (i.e. Test Script Typing 10 lines of rubbish into textedit 1min 25 Seconds - run direct 20 seconds)
    Sikuli was called using a command script
    After working with "Power Manager Support" I found that calling Sikuli using Applescript resolved the issue

Posted this in case anyone else has encountered this

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers