Macro stop after a certain number or cycles

Is there any indication of the macro being aborted in the Engine.log file? Help ➤ Open Logs Folder.

Hi Peter,

I provided the log below. The error seems to be located here:

2019-01-04 10:42:27 Launch Task /bin/sh -c /usr/bin/osascript '/var/folders/hs/88m7zsvx3591hjv5fvjkxv6r0000gp/T/Keyboard-Maestro-Script-840D0E40-E90B-46D1-826C-9BF8B9CF8625' failed with exception Failed to set posix_spawn_file_actions for fd -1 at index 0 with errno 9

I did a quick Google search which lead me to this older post which had the same problem. I used the terminal and it revealed this.

I'm not sure what to do now. I have tried restarting my computer many times. Thank you.

-Ken

2019-01-04 09:40:13 Execute macro “main” from trigger The Hot Key ⇧⌘R is pressed
2019-01-04 09:40:25 Execute macro “disable main macros” from trigger The Hot Key ⌘Escape is pressed
2019-01-04 09:40:32 Execute macro “main” from trigger The Hot Key ⇧⌘R is pressed
2019-01-04 09:42:00 Execute macro “disable main macros” from trigger The Hot Key ⌘Escape is pressed
2019-01-04 09:42:31 Execute macro “main” from trigger The Hot Key ⇧⌘R is pressed
2019-01-04 09:58:09 Execute macro “disable main macros” from trigger The Hot Key ⌘Escape is pressed
2019-01-04 09:58:48 Execute macro “main” from trigger The Hot Key ⇧⌘R is pressed
2019-01-04 10:42:27 Launch Task /bin/sh -c /usr/bin/osascript '/var/folders/hs/88m7zsvx3591hjv5fvjkxv6r0000gp/T/Keyboard-Maestro-Script-840D0E40-E90B-46D1-826C-9BF8B9CF8625' failed with exception Failed to set posix_spawn_file_actions for fd -1 at index 0 with errno 9
2019-01-04 10:42:27 Task failed with status -1
2019-01-04 10:42:30 Launch Task /Applications/Keyboard Maestro.app/Contents/MacOS/Keyboard Maestro Engine.app/Contents/MacOS/CompileAppleScript string failed
2019-01-04 10:42:30 Launch Task /Applications/Keyboard Maestro.app/Contents/MacOS/Keyboard Maestro Engine.app/Contents/MacOS/CompileAppleScript string failed
2019-01-04 10:42:31 Launch Task /Applications/Keyboard Maestro.app/Contents/MacOS/Keyboard Maestro Engine.app/Contents/MacOS/CompileAppleScript string failed
2019-01-04 10:42:31 Launch Task /Applications/Keyboard Maestro.app/Contents/MacOS/Keyboard Maestro Engine.app/Contents/MacOS/CompileAppleScript string failed
2019-01-04 10:42:31 Launch Task /Applications/Keyboard Maestro.app/Contents/MacOS/Keyboard Maestro Engine.app/Contents/MacOS/CompileAppleScript string failed

The error you show in the terminal looks like curly quotes instead of plain quotes, I doubt that is related.

The error “Failed to set posix_spawn_file_actions for fd -1 ” looks like the system failing to spawn a posix file. Probably this is caused by overwhelming the system process table. You may need to reconfigure your system to allow more processes, or alternatively you may need to allow a larger pause in the middle of the operation to allow the system to clean up after itself.

Hi Peter,

Thanks for getting back to me. I added a 3 second pause and it seems to be pausing after an hour. Instead of adding a larger pause, it would be more efficient to reconfigure my system to allow more processes. I did a Google search and was unable to find any documentation on reconfiguring my system to allow more processes. Could you link me to any guide if you know any?

Thanks in advance.

-Ken

I don't know the details I'm afraid. I don't even know which particular settings my be appropriate, sorry.

Hi Peter,

No worries. I greatly appreciate all the help that you gave me. Thank you so much.

-Kenny