Page 1 of 1

Errors when running multiple parallel tasks on renderer with after effects

Posted: Tue May 30, 2017 10:00 am
by victor
Hi,
I succeeded to configure afanasy to execute multiple tasks in parallel on a single renderer (using 'capacity' configurations).
The renderer executes after effects and runs on windows.
For the experiment I set "maxtasks":2 (and I see 2 tasks are starting in parallel on the same renderer).

Now the first task executed successfully while the second task fails (the scenario is easily reproducible).
In order to be sure it is possible to run 2 after effects render processes in parallel I run corresponding task commands manually on the render machine and it successfully executed.

The commands are:
aerender -project "c:\rendering-templates\BooingMiss\booing_miss.aep" -mp -s 0 -e 49 -i 1 -mp -comp "Frequent flyer main" -RStemplate "Best Settings" -output "C:\\rendering-outputs\\frames\\frame_[#####].jpg"

aerender -project "c:\rendering-templates\BooingMiss\booing_miss.aep" -mp -s 50 -e 99 -i 1 -mp -comp "Frequent flyer main" -RStemplate "Best Settings" -output "C:\\rendering-outputs\\frames\\frame_[#####].jpg"

In output of failed task (in afanasy watch) I see:
After Effects warning: Invalid menu operation.
After Effects can't continue: unexpected failure during application startup


Please help.
How can I debug what is going on?

Re: Errors when running multiple parallel tasks on renderer with after effects

Posted: Wed May 31, 2017 10:25 am
by timurhai
May be no one used to run several AEs within Afanasy.
It seems that afrender and you runs command with various environment if the result is differ.
How did you tested that commands?
Can you open 2 terminals from Keeper (it will be with cgru environment).
And run exact commands from 2 different tasks.
( or may be you already tested it this way )

Re: Errors when running multiple parallel tasks on renderer with after effects

Posted: Thu Jun 01, 2017 6:29 am
by victor
I run ae in clean command line (without any dependency on afanacy).

When you say "keeper": do you mean renderer?
So. if I understood you correctly, you propose to run ae in the same environment as the keeper (i.e open the command line of the "keeper" and then run ae manually)

Re: Errors when running multiple parallel tasks on renderer with after effects

Posted: Thu Jun 01, 2017 12:15 pm
by timurhai
I mean CGRU Keeper - a system tray icon to run CGRU tools: "cgru\start.cmd".
Or you can open cmd.exe, cd to cgru folder, call setup.cmd and then run command under CGRU environment.

Re: Errors when running multiple parallel tasks on renderer with after effects

Posted: Sun Jun 04, 2017 7:35 pm
by victor
Got you, will try

Re: Errors when running multiple parallel tasks on renderer with after effects

Posted: Tue Jun 06, 2017 9:10 am
by victor
I did it, and it works fine with cgru env (two ae renders were successfully run in parallel).

I did the following in two windows:
open cmd.exe
cd c:\cgru.2.2.1
setup.cmd
cd "C:\Program Files\Adobe\Adobe After Effects CC 2017\Support Files"

then run the following commands:

in window 1: aerender -project "c:\rendering-templates\BooingMiss\booing_miss.aep" -mp -s 0 -e 49 -i 1 -mp-comp "Frequent flyer main" -RStemplate "Best Settings" -output "C:\\rendering-outputs\\frames\\frame_[#####].jpg"
in window 2: aerender -project "c:\rendering-templates\BooingMiss\booing_miss.aep" -mp -s 50 -e 99 -i 1 -mp-comp "Frequent flyer main" -RStemplate "Best Settings" -output "C:\\rendering-outputs\\frames\\frame_[#####].jpg"

two ae processed run in parallel and successfully generated 100 frames as expected.

any other thoughts?
how can I debug the from more accurately?

Thx

Re: Errors when running multiple parallel tasks on renderer with after effects

Posted: Tue Jun 06, 2017 10:20 am
by timurhai
Hi.
Post move in AfterFX section.
It probably does not play any role, but, why you did:
cd "C:\Program Files\Adobe\Adobe After Effects CC 2017\Support Files" ?
Task working folder was in there?

Re: Errors when running multiple parallel tasks on renderer with after effects

Posted: Tue Jun 06, 2017 11:14 am
by victor
No special reson.
I just run this way without afanasy and it works.

Now, I came up with temporary solution.
We normally run afanasy render as a windows services.
When I run it manually (not as a service) it works well :)
Don't know why
Do you have any idea?

Re: Errors when running multiple parallel tasks on renderer with after effects

Posted: Tue Jun 06, 2017 11:24 am
by timurhai
Sometimes we facing this issue on Windows with various soft.
Sometimes display (logged-in session with GUI) is needed.

btw
If you want to run under the same environment you must run commands in the same working folder.
Different working folders can play a major role.

Re: Errors when running multiple parallel tasks on renderer with after effects

Posted: Tue Jun 06, 2017 1:33 pm
by victor
I see,
thanks