inlife / nexrender

📹 Data-driven render automation for After Effects
https://www.nexrender.com
MIT License
1.62k stars 326 forks source link

aerender error an existing connection was forced closed by the remote host. : unable to receive at line 502 #983

Closed 477174 closed 5 months ago

477174 commented 6 months ago

When I try to render with the -reuse option set to true and with an open instance of After Effects, the render completes successfully, but when I try to render in the background with aerender.exe, I get:

Running Script: C:\my\absolute\path\nexrender-T7hx2ykRnouJJzsphfb-3-script.jsx [0] aerender ERROR An existing connection was forced closed by the remote host. : Unable to receive at line 500.

I tried disabling the firewall and nothing changed, I also tested running my script manually in After Effects and it worked normally.

inlife commented 5 months ago

Hey @477174

Did you figure out the problem?

477174 commented 5 months ago

@inlife

Yes, the problem was in these two lines of my script:

var presetFile = new File('C:\\Users\\Windows 10\\Documents\\bot-video\\after\\presets\\Imagem Ajust Comp.ffx'); newLayer.applyPreset(presetFile);

When running render with an open instance of After Effects with "-reuse" as true, the preset was being imported without any problems and the rendering ran fine until the end, but when I was trying to render in the background, importing this preset was apparently crashing aerender.exe.

inlife commented 5 months ago

Oh I see, very interesting. Thanks for sharing!