question

YOKOYAMA TAKUMI avatar image
YOKOYAMA TAKUMI asked

About Arnold GPU batch rendering

maya2022でGPUバッチレンダリングを実行すると、mayaが突然終了します。


また、バッチレンダリングを実行しても、約40枚出力するとマヤは終了します。


誰かがそれを解決する方法を知っていますか?

When I run a GPU batch render on maya2022, maya quits abruptly.

Also, even if batch rendering is executed, Maya will end when about 40 images are output.

Does anyone know how to solve it?


user_data
10 |600

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered

An info-level Arnold is the best starting point for any troubleshooting.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.


10 |600

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

James Lyles avatar image
James Lyles answered

I'm seeing the same issues as Takumi. The output log shows the lack of memory on the GPU as the culprit as after ~40 frames, there isn't enough memory left to render the next frame. Which is puzzling as one would think the memory would be cleared / released on a per frame basis instead of eating up more and more as it progresses through the frames.

The relevant log entry:

GPU 0 had 9414MB free before rendering started and 397MB free when crash occurred
GPU errors are sometimes due to a GPU not having enough remaining free memory. To see if this is what happened here, try simplifying your scene or running on a GPU with more free RAM to see if it solves the crash. Otherwise, upgrading to the latest nvidia gpu driver and Arnold core (available from www.arnoldrenderer.com) might fix the crash

Even after ensuring the drivers are updated to current release levels, you can watch the GPU memory usage in Task Manager creep up by ~100MB each frame. Eventually, when the memory usage reaches the max available on the card, the batch render simply stops due to reaching the minimum memory set withint the Arnold Render Settings. ( Defaults to 512MB )

Current version of Maya ( 2022.2 ), most current version of Arnold ( MtoA 5.0.0 - 32e7688a ( fix-5.0.0 ) )
Oct 12 2021

10 |600

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Kyan E avatar image
Kyan E answered

I had the same issue last week. Started rendering a batch sequence on GPU and every 30-40 frames Arnold stopped.

In the Log it said:

Error: line 1: RuntimeError: [mtoa] Failed batch render Warning: file: C:/Program Files/Autodesk/Maya2022/scripts/others/mayaBatchRenderProcedure.mel line 654: Renderer returned an error while rendering 'defaultRenderLayer', please verify the output image.

Could not find anything on that topic on the net so i switched to CPU

10 |600

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

James Lyles avatar image
James Lyles answered

I was running Maya 2022.2 and v5.0.0.0 MtoA

Updated MtoA to v5.0.0.1 with no change in behavior.
Updated the Nvidia drivers with no change in behavior.

Wiped the entire Maya install and re-installed it keeping MtoA version 4.2.4 ( which is what comes installed with 2022.2 ). No further issues. GPU Batch render works as expected and monitoring GPU Ram usage frame to frame it no longer increases by 100MB each frame rendered.

10 |600

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stefan Fleig avatar image
Stefan Fleig answered

So it´s been at least 4 month since this problem was reported and it it´s still there in 5.0.0.2. :-/
Only recently started to work on animations and depending on the scene complexity all batch renders abort after a certain amount of frames with GPU memory gradually increasing with each frame.

When will this be fixed?

1 comment
10 |600

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Someone finally gave us a repro scene, so we do have a ticket open and we were working on it. It won't be fixed until the new year.


0 Likes 0 ·
Thiago Ize avatar image
Thiago Ize answered

So far we've been unable to reproduce this GPU memory leak on our end. Could anyone supply a scene and instructions on what we need to do in order to reproduce the GPU memory leak? Thanks!

10 |600

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.