Fresh Install of KM failing

I just did a fresh install after deleting everything related to KM.
I still get an error which is why I did the re-install.
The PID 9501 is Keyboard Maestro in Activity monitor.
OS 14.6.1
KM 11.0.3
I appreciate in feedback - this has been a drain...

2024-10-10 12:52:18 GetProcessForPID(9501) failed with -600 for <KBMRunningApplication “Keyboard Maestro” <0x600000c43b20> pid=9501 bid=com.stairways.keyboardmaestro.editor Abht>, using cached version

Did you then import all your old macros, or is that error just there after the install?

-rob.

erg, good point, yes, sync'd to the 'old set'....
right, test without syncing...

it's only erroring when I run the MBU macro...

2024-10-10 13:15:34 Execute macro “•main | MacroBackerUpper” from trigger Editor
2024-10-10 13:15:34 Variable “KMVAR_ZIP__ScriptResults” excluded from environment to ensure the environment is not too large
2024-10-10 13:15:34 GetProcessForPID(11232) failed with -600 for <KBMRunningApplication “Keyboard Maestro” <0x600000f82100> pid=11232 bid=com.stairways.keyboardmaestro.editor Abht>, using cached version

Is that a variable from one of your macros? If so, does MBU work if you don't import the macro that creates it?

-rob.

you know that's what's crazy, I thought of that a day or two ago and searched for that variable and also looked in the editor and found nothing for:
KMVAR_ZIP__ScriptResults
I have no idea what that's about. !!

I wonder if it's something KM generates based on the scripts that MBU is running. And for whatever reason, yours is so sizable it's causing an error. But still, I don't see how that would then cause the action of simply activating KM to fail.

-rob.

thanx for your time man, much appreciated, maybe someone else will chime in and help me get rid of this 'bug' - it's quite a pain in the ass and I'm not about to give up my 3x a day MBU run =) -

As a test, if you import half your macros, do you see the issue?

-rob.

honestly, I've sort of had it with this.....
I'll just have to trigger it manually and keep an eye on it..
Thank you for all of your help man.

Hey @peternlewis ... can you shed any light on what KMVAR_ZIP__ScriptResults is? From the name, is it a variable that holds the results of script runs? If so, could a ton of text in it be causing the issues Troy is experiencing?

-rob.

1 Like

Error -600 is procNotFound.

GetProcessForPID is returning that error when Keyboard Maestro asks for Process Serial Number for the specified pid.

Why the system is failing, well, that's anyone’s guess. That API is depricated, has long been, but then again, its the only way to get the ProcessSerialNumber, which in turn is the only way to perform certain other functions.

As for the ZIP ScriptResults variable, that's just a variable, it has nothing to do with Keyboard Maestro. It is either in your variables (check the Variables preference pane), or its in your macros (or some script or whatever).

Nope, nothing related to Keyboard Maestro per se.

Thanks for the explanation, Peter. I've confirmed that there's no such variable in the MBU macro, but Troy says he searched his as well. Weird.

-rob.

I double checked, searched the whole cpu via the finder for visible or invisible files with the name: "KMVAR_ZIP__ScriptResults" and found none.
Is there some other way I can search?

Also, when I run the MBU macro manually, it successfully completes.
The log has the following in it.

I am going to run another scheduled run and report back.
Thank you

2024-10-11 09:31:48 Execute macro “•main | MacroBackerUpper” from trigger The Hot Key ⌃⌥Key Pad * is pressed
2024-10-11 09:31:48 Variable “KMVAR_ZIP__ScriptResults” excluded from environment to ensure the environment is not too large
2024-10-11 09:31:49 GetProcessForPID(11232) failed with -600 for <KBMRunningApplication “Keyboard Maestro” <0x600000f82100> pid=11232 bid=com.stairways.keyboardmaestro.editor abht>, using cached version

And you did search your macros? Just search for ScriptResults, it should find any references.

-rob.

When I run a schedule MBU it fails and the log is:
And the action is an "Activate Keyboard Maestro"

2024-10-11 09:45:00 Execute macro “•main | MacroBackerUpper” from trigger At 9:45 AM every day
2024-10-11 09:45:00 Variable “KMVAR_ZIP__ScriptResults” excluded from environment to ensure the environment is not too large
2024-10-11 09:45:20 Action 15603653 timeout exceeded. Macro “•main | MacroBackerUpper” cancelled (while executing Activate Keyboard Maestro).

there are a few "ScriptResults" but no "KMVAR_ZIP__ScriptResults"
There are a couple "KMVAR_ZIP__Folder"

EDIT: erg... there was a "ZIP__ScriptResults" variable that had a huge amount of text in it.
I of course forgot about the underline thing as a preface to variables,
I deleted the text and am running again.

1 Like

I ran scheduled again, duh-now the ScriptResults exclusion is gone but it still fails on Activating KM action. I have tried default, path and bundle options on that action....
Close.... what is it?

2024-10-11 11:14:59 Execute macro “•main | MacroBackerUpper” from trigger At 11:15 AM every day
2024-10-11 11:15:20 Action 15603653 timeout exceeded. Macro “•main | MacroBackerUpper” cancelled (while executing Activate Keyboard Maestro).

I just checked, and the default timeout for that action is 20 seconds ... that means it's taking more than that to simply activate Keyboard Maestro, which seems really weird.

Just as a test, edit that action in the macro and set its timeout to a minute (or five or whatever) and see if it works.

-rob.