We are currently in production and are facing a strange rendering inconsistency on our render farm using Thinkbox Deadline.
We have multiple shot types, but on most of them we encounter the same issue:
The job usually renders correctly, however almost every submission ends up with 1 or 2 frames that fail to render.
In the V-Ray logs, the renderer gets stuck at the following step:
`Updating render effects.`
From our understanding, this is the stage where V-Ray compiles the VRayGolaem .vrscene. The render then hangs on this step until it eventually times out, gets re-queued on a different node, and repeats the same behavior.
The only workaround we’ve found so far is to resubmit the entire job. Sometimes this resolves the issue, but often different frames will fail instead (usually not the same ones as before).
This makes the issue very difficult to debug and to identify a root cause. Have you encountered similar issues, or are you aware of any known problems related to this behavior?
Happy to assist figuring the problem on the Golaem / Autodesk side
Can you let us know what’s happening in the `Updating render effects.` and how can we know more about what fails ?
Hi, Jordan. We will need a scene in order to check the issue. Please try to isolate the problem as much as possible and send a scene through our support portal. The scene will be stored securely, so there’s no need to worry about NDAs, etc.
On our side will check and sync with Golaem about it.
Thanks, Golaem, for joining the topic.
@jordan_dubosc It will certainly be of great help if you can send us some example scene to reproduce the problem (unless the problem appears on any scene with Golaem?)
@GOLAEM On “Updating render effects.” we invoke Update(t, …) for all the effects configured for the scene (ex. Hair And Fur, Blur, Film Grain or any other plugin that inherits and acts as “Effect” class)
Unfortunately, since we are in production, I can’t really send a scene right now.
Also the type of scene that has this problem is very heavy in assets with a lot of references everywhere.
What’s worse is that I can’t easily reproduce the behavior, since this type of scene can’t be rendered on local computers (128gb+ in RAM required) and it happens randomly on render nodes.
What I can provide right know are Deadline logs where you can see some warnings from Golaem with a “Trapped SEH” error (usually happens when we exceed memory limits / to little vraydisplacement edge legth or corrupted vrmesh in proxys), maybe with golaem on our side we can identify a possible cause.
We get thoses types of warning a lot, but I feel like its a false alarm because most of the frames within the same scene actually render properly.
I have some job example currently rendering, so I could provide other log files feel free to tell me. GolaemLogs.txt (68.2 KB)
From the logs there seems to be some critical moments with peak memory usage of 100%. At this usage anything could go wrong and applications usually exit due insufficient working memory.
Usually such a peak may come from having lot of unique geometries in the scene. It depends how Golaem provides the geometry to V-Ray and if it is instanced.
I will assume you get inconsistent failures (i.e. different frames not being rendered) due the variable nature of memory balancing in multi-component & multi-threaded environment.
I guess it is hard to split the scene somehow, but with the current state it might be the way.
Also, if Golaem cache memory requirements is something you can control, then limiting it may leave more space for render geometry (in exchange of slower scene preparation).
An extra point for the present case, enabled sub-frame motion blur might lead to extra geometry samples being produced and kept during the rendering. Each additional moblur sample may add significant load.
We will try to investigate further and see if there is room for improvement in future.
Could you please drop a message to kostadin.terziev@chaos.com, so we can discuss technical details via mail and possibly look for an improvement on rendering crowd sims.
just to add up, yes this logs peaked a 100% and logged an error, to me the inconsistent failures occures within the scene or some specific actions with RAM on updating VrayGolaem vrscene. As an example, on this specific job I have an average peak RAM at 126Gb (on 105 frames), and as seen on the log, some frames saturate RAM 512gb+.
The other factor I can see on deadline is the task time, most jobs take 5/6 minutes on average and some frames takes 1 hours or more (they ended up rendering). Those long frames peaked way less in RAM (this might be Deadline not logging correctly, but it’s still surprising they are at 120MB on average).
An extra point for the present case, enabled sub-frame motion blur might lead to extra geometry samples being produced and kept during the rendering. Each additional moblur sample may add significant load.
On this note, did you see sub-frame motion blur enabled in the log or this is a suggestion? We do not render motion blur, so it shouldn’t be enabled, or could this be a specific parameter inside the vrscene that I should look up?
I see. Really odd.
It will be extremely hard for us to reproduce and track down this short term.
From what you said earlier, the break seems to happen during the “Updating render effects”, but it is not exactly the point V-Ray consumes geometry or expects such to be injected - it rather tells the Effect plugins to set their state properly for given frametime.
(on other side the Effect plugin itself is logical to do its geometry generation during the update)
Aside, I am seeing log about some degenerate Fur curves.
Depending on how this fur is produced and if it acts as an “Effect” it could explain the situation around “Updating render effects”.
In this context, is it possible that there appear some occasional degenerate large faces for some reason and fur is applied on them? - this may cause extreme memory consumption.
On this note, did you see sub-frame motion blur enabled in the log or this is a suggestion? We do not render motion blur, so it shouldn’t be enabled, or could this be a specific parameter inside the vrscene that I should look up?
There isn’t indication for enabled moblur in the log, but its visibility depends on the logging level, so I decided to warn you just in case for a possible factor.
But, since you don’t render blurred - it is clear no extra weight added.
Of course I understand that it is really hard to reproduce on your side, I’m trying to make a small scene that will reproduce the bug but it will take some time.
For the fur curves to give more insight, it is .abc groom files coming from houdini, referenced in the Golaem plugin inside maya for simulation, then exported in vrscene for 3dsMax (Yeah i Know…)
So it shouldn’t be large faces since those Fur curves are only used as Hairs for characters project on head scalps, so it shouldn’t be large faces unless something when wrong in the cache export but i doubt it since other frames are compiling normally. The only thing I can suspect might be on the Golaem side GOLAEM could it be possible that simulation went wrong on some frames and completly corrups curves deformation that end up on this log?
From my experience VrayProxy hate empty geometry so if its the same with vrscene and curves are potentienlly corrupted it could makes sense that renders is having a hard time at updating geo.
On our main animation pipeline we use the same process but only beetween houdini and max using abc files in VrayProxys.
There isn’t indication for enabled moblur in the log, but its visibility depends on the logging level, so I decided to warn you just in case for a possible factor
Ok all good then! thanks
At this point, I don’t think we’ll be able to fully diagnose the issue without being able to reproduce it under test conditions; That’s said, we are currently investigating two 2 things.
First, we tried localizing all Golaem files locally for a single user, since then she didn’t had any problems rendering or preparing render effect, we are currently rendering our biggest crowd shots on renderfarm with files localized on 5 render nodes to check if we have similar results.
We also noticed something else: when the crash occurs, we lose connexion with the os (windows) after that, we can’t launch any application anymore (3dsmax or even deadline worker) until the node or computer is rebooted or if we restart the windows service “Windows Management Instrumentation”.
Do you think it is possible to enable more detailed Vray Logs during the “preparing render effect” phase? We’re trying to determine whether there is something specific at that stage that Vray might not be able to access over our network.