Error When Executing Actions

Many actions don’t work and all report the same error in Engine.log:

2015-06-25 11:07:38 Launch Task /Applications/Keyboard Maestro.app/Contents/Resources/Keyboard Maestro Engine.app/Contents/Resources/CompileAppleScript nothing failed with exception Couldn’t posix_spawn: error 7

Some of the affected actions include:

New Safari Window with URL ‘http://www.apple.com
New Google Chrome Window with URL ‘http://www.apple.com
Set System Output Volume to 50%
Play/Pause Current Track

The only way I’ve found to resolve this issue is to restart my Mac. But then after running some of my macros the problem reoccurs. Any help/advice would be appreciated. Thanks.

(I am running Keyboard Maestro 6.4.8 on Mac OS X Version 10.10.3 (Build 14D136))

Sounds like the issue described in the wiki troubleshooting document, Execute Script Actions are Not Working.

Your variables are sent to your scripts by placing them in environment variables. However, the total size of the environment variables is 256k. Therefore if the total size of your variables exceeds about 256k scripts will stop working. Adjust your variables to reduce the total size.

So open the Keyboard Maestro preferences, in the Variables panel and look through your variables for any particularly large ones and delete or empty them.

The next version of Keyboard Maestro will exclude the largest variables from the environment to ensure the size is not too large.

Thank you! This does seem to resolve the issue.

I had looked through the troubleshooting page, but since I wasn’t using execute script actions I didn’t realize this could be the problem.

Yes, lots of things are executed as scripts under the hood, and tend to get the variables in the environment.