More aerender woes: 22.6 on M Cannot connect to a running instance of AE, fails with -1712 (timeout)
I am trying to automate the rendering of a very large number of projects (5-15k), however on mac, whenever I use the -reuse flag (since restarting aerender every time becomes untenably slow, where %95 of per project render time is aerender opening and closing aerendercore/whatever render engine is being used).
Trying to launch with a simple test project from terminal:
% ./aerender -project ~/Desktop/test.aep -comp Comp 1 -output ~/Desktop/sap_out/out\[####\].tiff -reuse
aerender version 22.6x64
aerender ERROR -1712: AESend failed to send apple event at line 939
Where test.aep is just a comp with a single solid layer, although that doesn't matter since it obviously fails way before it ever connects to AE. I've made sure that an instance of AE is running (I've tried both render engine and normal), I've enabled automation of AE in privacy settings (and full disk access, just in case), and nevertheless the problem persists.
This error appears to be propagating from a call to connect with applescript, since the "-1712" (connection timeout) is an error I can reproduce using osascript by trying to connect to aerendercore directly (which I suspect is not officially supported behaviour).
I have tried downgrading to the version 22.5, but that fails with an older syntax error invalid flag: -reuse bug.
Any help as promptly as possible would be GREATLY appreciated! I'm currently resorting to rendering without the reuse flag which is ~20x slower than it should be.
SYSTEM:
MacBook Pro 16 M1 Pro 10 Core | Mac Mini M1 Pro 6 Core
Montery 12.6
