KM 11 is so slow it's unusable for me (video inside)

Er... yeah, except this is not a KMFAM problem. This is a Keyboard Maestro problem! I only used KMFAM as an example at the beginning of the video to demonstrate. I can't demonstrate every macro, but as the video shows, I also had the same exact problem with a completely unrelated macro that simply simulates a keystroke within Keyboard Maestro (⌘K -> ⌃⌘A). It also happens for every other macro, no matter how simple or complex. It doesn't happen 100% of the time, but it's happening more and more often lately, and it never happened in KM10.

FWIW no slow-down seen on this system in KM11.

Sonoma 14.0, Apple M2

Whether relatedly or not, my biggest disappointment with KM11 is that some of my most-used macros, which use a Pause Until Key action, now sometimes take several seconds to recognize the key-press. This happened immediately upon upgrade to KM11 (without changing anything about the macros), and it immediately affected all of my Macs, running multiple OS's.

Also, KM Editor now frequently hangs, requiring a forced quit.

FWIW2.... I have Apple M1 Macbook with Sonoma 14.0 and KM11... no problems except for submenus which is an Apple issue.

I've seen a few cases of this, it seems to be a weird corruption in the 1Password third-party integration files.

In 1Password, turn off the integration in the Advanced settings:

image

That should resolve the issue.

If you have already moved to 1Password 8, the option isn't there. You can use 1Password 7 to turn it off, or you'll need to ask 1Password support how to turn it off if you no longer have it.

You should then be able to turn the integration back on and I believe that will rebuild the integration files without the corruption.

The next version of Keyboard Maestro should have some mitigation for this, avoiding 1Password entirely if you do not use the action.

1 Like

Are you saying the 1Password integration problem is also behind the enormous lag in recognizing key presses?

Potentially. Basically, for some people the 1Password exported bookmarks seem to have some really weird corruption that makes just looking at the bookmark contents take a long time (possibly a very long time, possibly just a long time). I don't know what the issue is, maybe a recursive directory structure, or some weird xattr issue, I have no idea. And so when Keyboard Maestro looks for the bookmarks (which it does any time it needs to look at a New Action, which can include any time the menu bar is updated to handle command keys for example) then it can get in a state that is essemntially locked up or almost locked up. I don't entirely understand the cause of it, only how to resolve it.

Okay, thanks, but then what would be an aspect of KM11 that makes the 1Password problem evident, when earlier KM versions were not noticeably affected?

I don't specifically know.

I found two posts on the 1Password site where the founder of 1Password discusses this issue, and in the second post even mentions Keyboard Maestro by name. His first post starts to address the subject:

And here's the second post:

(make sure you read all the way to the end of the page)

In summary, he says that if integration "is critical to your workflows, please use 1Password 7." ... "It's a great app and you can dive into 1Password 8 once we're able to add 3rd party app integration."

1 Like

Can you please elaborate on this? I'm facing a lot of slowdown for general menu selection in Mail through KM 11.

Hi... and welcome to the discourse..

the "submenus" issue I'm referring to doesn't slow things down it just plain doens't work until Apple fixes it. Here is the link to the discussion..

Submenus in Sonoma

Dave

There is another issue in Sonoma I was just reminded about .

In Sonoma, the menus were completely rewritten, and the menu selection API now waits for the target application to complete the action, which can result in a long delay (potentially very very long), and this locks up Keyboard Maestro Engine while it waits.

I believe this will be fixed in an upcoming version of Sonoma.

In the mean time, since the Keyboard Maestro Engine is locked up, there really isn't anything that can be done to work around the issue (for example, setting the action timeout will not help).

I am also experiencing this slowdown. I noticed it yesterday with a macro that I use to navigate my journal notes that I create and store in the bear app. I am enclosing a couple of videos recorded doing the same thing:

  1. KM 10 Fast Recording
  • the fast one is running on my MacBook Pro which is still running KM 10
  1. KM 11 Slow Recording
  • the (very) slow one is running on my Mac Studio which I have upgraded to KM 11.

[Edit: the first link actually shows both machines running in parallel which is pretty useful, so no need for the second link - first time using iimgur]

To the best of my knowledge the machines are otherwise the same running the same versions of OS and apps except for KM:

Studio: Apple M1 Max / Ventura 13.6.1 / KM 11.0.2
MacBook Pro: Apple M1 Pro / Ventura 13.6.2 / KM 10.2

What is happening in the videos: You will see a navigation palette, center-bottom, that I built in KM. Each time that I press the - to the left of Today the displayed journal notes shift one to the right and a new note is added on the far left. In this way the date range starts one day earlier. The underlying macros are straightforward using calculations for today’s date and window position, then opening the resulting 5 notes via individual shell calls to bear. I haven’t updated this set of macros in many months.

I noted the observation in this forum about 1Password being a possible culprit, and I am running 1Password 8 which has no settings to toggle 3rd party integrations, so I reached out to Agile Bits, the developer.

They assured me that they are (still) not using these integrations in 8 as you had indicated was the case in your posts from the 1Password community - and so there is nothing to disable:

Do you still have 1Password 7 on your device? If not, there is nothing to disable. Your email would seem to indicate that you do not. Without the 1Password 7 application, no integrations are enabled, and nothing should run. In 1Password 8, we do not even make use of those. So again, nothing to disable.

He then went on to give me some things to do to see if my move from Intel to Apple Silicon (which didn't happen recently) caused any problems. I will follow those steps and report back, but I wanted to get a partial response out regarding 1Password 8 and its lack of integrations.

I don't see any question in your last post, so I don't know what you want me to say. Are you trying to use KM with 1Password version 8? The Founder of 1Password said don't do that.

Fair enough - there is no question.

I did read all the posts on the 1Password forum that you linked to, and what I understood from that was - if the integrations are important to you, then go back to 1 Password 7. I am not aware of any need on my part for these integrations, so I was trying to stick with 1Password 8 since that is what I have on all my devices.

As an aside, I do use a 1Password workflow in Alfred: GitHub - alfredapp/1password-workflow: Search and open 1Password items without issue with 1Password 8. I don't appreciate the details of the integrations but that definitely works with 1Password 8 for me so there must be some other mechanism (op-bookmarks??) being used.

I'm not trying to be argumentative, and I apologize if it came across that way, I was just trying to not have to regress on all fronts. At this point my knowledge would indicate that the easiest path forward for me, right now, would be to regress to KM 10 until this issue is fully understood and resolved. I was just adding my own experience in case it can be of any help leading to an outcome where up to date versions of KM and 1P can coexist.

Thanks.

You were very polite. And I re-wrote my previous post several times before I felt sure that I was also being polite. Writing clearly and politely and constructively is always challenging.

If that works, that's great news. But I'm surprised that KM works at all with 1P8 because the Founder of 1P said 1P8 was not yet designed to co-exist with anything. As the Founder said, if you want to be on the bleeding edge, use 1P8, but if you want stability and compatibility, use 1P7.

1 Like

As I noted earlier in this thread, I am also observing the slow down. I went to disable 3rd party integrations in 1Password following Peter's observation. There is no option to disable these integrations in 1Password 7 so I reached out to 1Password support. I was advised that these integrations are not used in version 8.

We made sure that version 7 wasn't installed, reinstalled version 8, then removed the data for version 7 that contains the 3rd part integrations from my system - just to be sure they weren't being used by any other apps.

So, in my case running 1Password 8 with no 3rd party integrations my macros are very slow compared to the situation running KM 10.

I would conclude that if 3rd party integrations with 1Password are responsible in some way for some people's slow downs, that doesn't explain my situation and there must be some other cause.

Thanks for the update, PaulF. That entirely coincides with my experience. The only variable that changed when I simultaneously and instantaneously took a performance hit on three different Macs was the upgrade to KM11. All of my machines were playing nicely with 1P8 until I changed KM versions.

I don't know what to say, other than to repeat the advice given by the founder of 1Password, "Don't use 1P8 with third party apps until we add support for that." The fact that 1P8 sometimes works with third party apps is not proof that the fault lies with third party apps.