Errors when running multiple parallel tasks on renderer with after effects

Post Reply
victor
Posts: 22
Joined: Mon May 15, 2017 9:53 am

Errors when running multiple parallel tasks on renderer with after effects

Post 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?
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

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

Post 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 )
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
victor
Posts: 22
Joined: Mon May 15, 2017 9:53 am

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

Post 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)
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

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

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
victor
Posts: 22
Joined: Mon May 15, 2017 9:53 am

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

Post by victor »

Got you, will try
victor
Posts: 22
Joined: Mon May 15, 2017 9:53 am

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

Post 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
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

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

Post 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?
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
victor
Posts: 22
Joined: Mon May 15, 2017 9:53 am

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

Post 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?
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

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

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
victor
Posts: 22
Joined: Mon May 15, 2017 9:53 am

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

Post by victor »

I see,
thanks
Post Reply