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 » Tue May 30, 2017 10:00 am

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: 384
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 » Wed May 31, 2017 10:25 am

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 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client 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 » Thu Jun 01, 2017 6:29 am

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: 384
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 » Thu Jun 01, 2017 12:15 pm

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 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client 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 » Sun Jun 04, 2017 7:35 pm

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 » Tue Jun 06, 2017 9:10 am

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: 384
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 » Tue Jun 06, 2017 10:20 am

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 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client 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 » Tue Jun 06, 2017 11:14 am

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: 384
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 » Tue Jun 06, 2017 11:24 am

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 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client 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 » Tue Jun 06, 2017 1:33 pm

I see,
thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest