Maya exited with status 251

Hi,

I am trying to render a Maya/Yeti/Arnold scene file via Deadline, and it gives me this error: Error: FailRenderException : Renderer returned non-zero error code 251. Check the renderer's output. I have tried hunting down in several forums, but can’t figure out the reason. Any idea what this error code might mean?

Strangely enough when I run the full command from the commandline on the render node, it renders without any issue. Here is the full error log.

=======================================================
Error
=======================================================
Error: FailRenderException : Renderer returned non-zero error code 251. Check the renderer's output.
   at Deadline.Plugins.DeadlinePlugin.FailRender(String message) (Python.Runtime.PythonException)
  File "C:\ProgramData\Thinkbox\Deadline10\workers\s0415074cw\plugins\6479c0cba640c3188004bbd1\SGMayaCmd.py", line 1117, in CheckExitCode
    self.FailRender( "Renderer returned non-zero error code %d. Check the renderer's output." % exitCode )
   at Python.Runtime.Dispatcher.Dispatch(ArrayList args)
   at __FranticX_GenericDelegate1`1\[\[System_Int32\, System_Private_CoreLib\, Version=4_0_0_0\, Culture=neutral\, PublicKeyToken=7cec85d7bea7798e\]\]Dispatcher.Invoke(Int32 )
   at FranticX.Processes.ManagedProcess.CheckExitCode(Int32 exitCode)
   at Deadline.Plugins.DeadlinePlugin.CheckExitCode(Int32 exitCode)
   at FranticX.Processes.ManagedProcess.Execute(Boolean waitForExit)
   at Deadline.Plugins.PluginWrapper.RenderTasks(Task task, String& outMessage, AbortLevel& abortLevel)

=======================================================
Type
=======================================================
RenderPluginException

=======================================================
Stack Trace
=======================================================
   at Deadline.Plugins.SandboxedPlugin.d(DeadlineMessage bgj, CancellationToken bgk)
   at Deadline.Plugins.SandboxedPlugin.RenderTask(Task task, CancellationToken cancellationToken)
   at Deadline.Slaves.SlaveRenderThread.c(TaskLogWriter ajq, CancellationToken ajr)

=======================================================
Log
=======================================================
2023-06-05 09:47:49:  0: Loading Job's Plugin timeout is Disabled
2023-06-05 09:47:49:  0: SandboxedPlugin: Render Job As User disabled, running as current user 'sglocal'
2023-06-05 09:48:06:  0: Executing plugin command of type 'Initialize Plugin'
2023-06-05 09:48:06:  0: INFO: Executing plugin script 'C:\ProgramData\Thinkbox\Deadline10\workers\s0415074cw\plugins\6479c0cba640c3188004bbd1\SGMayaCmd.py'
2023-06-05 09:48:06:  0: INFO: Plugin execution sandbox using Python version 3
2023-06-05 09:48:06:  0: INFO: About: Maya Cmd Plugin for Deadline
2023-06-05 09:48:06:  0: INFO: The job's environment will be merged with the current environment before rendering
2023-06-05 09:48:06:  0: Done executing plugin command of type 'Initialize Plugin'
2023-06-05 09:48:06:  0: Start Job timeout is disabled.
2023-06-05 09:48:06:  0: Task timeout is disabled.
2023-06-05 09:48:06:  0: Loaded job: pst_sparrow_test_01 (6479c0cba640c3188004bbd1)
2023-06-05 09:48:06:  0: Executing plugin command of type 'Start Job'
2023-06-05 09:48:06:  0: DEBUG: S3BackedCache Client is not installed.
2023-06-05 09:48:06:  0: INFO: Executing global asset transfer preload script 'C:\ProgramData\Thinkbox\Deadline10\workers\s0415074cw\plugins\6479c0cba640c3188004bbd1\GlobalAssetTransferPreLoad.py'
2023-06-05 09:48:06:  0: INFO: Looking for legacy (pre-10.0.26) AWS Portal File Transfer...
2023-06-05 09:48:06:  0: INFO: Looking for legacy (pre-10.0.26) File Transfer controller in C:/Program Files/Thinkbox/S3BackedCache/bin/task.py...
2023-06-05 09:48:06:  0: INFO: Could not find legacy (pre-10.0.26) AWS Portal File Transfer.
2023-06-05 09:48:06:  0: INFO: Legacy (pre-10.0.26) AWS Portal File Transfer is not installed on the system.
2023-06-05 09:48:06:  0: Done executing plugin command of type 'Start Job'
2023-06-05 09:48:06:  0: Plugin rendering frame(s): 1
2023-06-05 09:48:07:  0: Executing plugin command of type 'Render Task'
2023-06-05 09:48:07:  0: INFO: Setting MAYA_DEBUG_ENABLE_CRASH_REPORTING environment variable to 0 for this session
2023-06-05 09:48:07:  0: INFO: Setting MAYA_DISABLE_CIP (ADSK Customer Involvement Program) environment variable to 1 for this session
2023-06-05 09:48:07:  0: INFO: Setting MAYA_DISABLE_CER (ADSK Customer Error Reporting) environment variable to 1 for this session
2023-06-05 09:48:07:  0: INFO: Setting MAYA_DISABLE_CLIC_IPM (ADSK In Product Messaging) environment variable to 1 for this session
2023-06-05 09:48:07:  0: INFO: Setting MAYA_OPENCL_IGNORE_DRIVER_VERSION environment variable to 1 for this session
2023-06-05 09:48:07:  0: INFO: Setting MAYA_VP2_DEVICE_OVERRIDE environment variable to VirtualDeviceDx11 for this session
2023-06-05 09:48:07:  0: INFO: Setting MAYA_RENDER_SETUP_INCLUDE_ALL_LIGHTS environment variable to 1 for this session
2023-06-05 09:48:07:  0: INFO: Setting MAYA_ENABLE_LEGACY_RENDER_LAYERS environment variable to 0 for this session
2023-06-05 09:48:07:  0: INFO: Rendering with Maya version 2018.0
2023-06-05 09:48:07:  0: INFO: Setting PYTHONHOME environment variable to C:\apw\apps\maya\2018\Maya2018update5\Python for this session
2023-06-05 09:48:07:  0: INFO: Stdout Redirection Enabled: True
2023-06-05 09:48:07:  0: INFO: Stdout Handling Enabled: True
2023-06-05 09:48:07:  0: INFO: Popup Handling Enabled: True
2023-06-05 09:48:07:  0: INFO: QT Popup Handling Enabled: False
2023-06-05 09:48:07:  0: INFO: WindowsForms10.Window.8.app.* Popup Handling Enabled: False
2023-06-05 09:48:07:  0: INFO: Using Process Tree: True
2023-06-05 09:48:07:  0: INFO: Hiding DOS Window: True
2023-06-05 09:48:07:  0: INFO: Creating New Console: False
2023-06-05 09:48:07:  0: INFO: Running as user: sglocal
2023-06-05 09:48:07:  0: INFO: Rendering with Maya version 2018.0
2023-06-05 09:48:07:  0: INFO: Executable: "C:/apw/apps/maya/2018/Maya2018update5/bin/Render.exe"
2023-06-05 09:48:07:  0: INFO: Rendering to network drive
2023-06-05 09:48:07:  0: INFO: Rendering all layers - using the renderer(s) set in the Maya render settings.
2023-06-05 09:48:07:  0: INFO: Argument:  -r file  -s 1 -e 1 -b 1 -rd "j:/SG_Render/2023-04-11/deadline_sparrow_female_a_tex/test_####.exr" -proj "V:/src/PSS/WORK_FILES"  "j:\src\sp_hindi\work_files\assets\animals\sparrow\textures\for_render\sparrow_female_a_tex.mb"
2023-06-05 09:48:07:  0: INFO: Full Command: "C:/apw/apps/maya/2018/Maya2018update5/bin/Render.exe"  -r file  -s 1 -e 1 -b 1 -rd "j:/SG_Render/2023-04-11/deadline_sparrow_female_a_tex/test_####.exr" -proj "V:/src/PSS/WORK_FILES"  "j:\src\sp_hindi\work_files\assets\animals\sparrow\textures\for_render\sparrow_female_a_tex.mb"
2023-06-05 09:48:07:  0: INFO: Startup Directory: "C:\apw\apps\maya\2018\Maya2018update5\bin"
2023-06-05 09:48:07:  0: INFO: Process Priority: BelowNormal
2023-06-05 09:48:07:  0: INFO: Process Affinity: default
2023-06-05 09:48:07:  0: INFO: Process is now running
2023-06-05 09:48:07:  0: STDOUT: Starting "C:\apw\apps\maya\2018\Maya2018update5\bin\mayabatch.exe"
2023-06-05 09:48:07:  0: STDOUT: // Maya exited with status 251
2023-06-05 09:48:07:  0: INFO: Process exit code: 251
2023-06-05 09:48:07:  0: Done executing plugin command of type 'Render Task'

=======================================================
Details
=======================================================
Date: 06/05/2023 09:48:28
Frames: 1
Elapsed Time: 00:00:00:23
Job Submit Date: 06/02/2023 15:43:31
Job User: sglocal
Average RAM Usage: 10087141376 (6%)
Peak RAM Usage: 10087141376 (6%)
Average CPU Usage: 1%
Peak CPU Usage: 25%
Used CPU Clocks (x10^6 cycles): 3043
Total CPU Clocks (x10^6 cycles): 304291

=======================================================
Worker Information
=======================================================
Worker Name: S0415074CW
Version: v10.1.23.6 Release (773a6289d)
Operating System: Windows 10 Pro
Running As Service: No
Machine User: sglocal
IP Address: 20.24.15.74
MAC Address: D2:FD:D5:8B:12:9A
CPU Architecture: x64
CPUs: 44
CPU Usage: 0%
Memory Usage: 9.4 GB / 160.0 GB (5%)
Free Disk Space: 9.605 GB 
Video Card: Microsoft Remote Display Adapter

Hello

Thanks for reaching out. I looked at the job report I found two things.

  1. You are using a customized plugin SGMayaCmd
  2. Mayabatch.exe seems to be starting up while the command sent by the custom plugin was run Render.exe on line#75 of the log

I think the best way forward is to run the command directly on the render node and see if it works. If not then you can try using the standard MayaCmd plugin here and check if that exits with exit code 251.

So to run the command outside of Deadline, login to render node S0415074CW as user sglocal and run below on cmd:

"C:/apw/apps/maya/2018/Maya2018update5/bin/Render.exe"  -r file  -s 1 -e 1 -b 1 -rd "j:/SG_Render/2023-04-11/deadline_sparrow_female_a_tex/test_####.exr" -proj "V:/src/PSS/WORK_FILES"  "j:\src\sp_hindi\work_files\assets\animals\sparrow\textures\for_render\sparrow_female_a_tex.mb"

What error do you get?

Hello, sorry for taking a while to reply. Running the batch command gives me “Maya exited with status 251” as well. Any idea what the error code might mean?

Hello

Did you run the command via the command prompt outside of Deadline? If yes you are able to reproduce the issue outside of Deadline I think contacting Autodesk support should be the next step.

In the meantime can you share the output form the cmd after Maya exits with 251? I will see if it writes something.