Deadline 10.1.17.4 with Maya 2022 not working

Hello,

Deadline is working fine with Maya 2020, but I can’t make it work with Maya 2022.
It’s a simple scene with only a sphere and using MtoA 4.2.2 - Arnold 6.2.1.0

Could it be a Python 3 issue ? In the log there is this warning:
“WARNING: Python version for ‘MayaBatch’ plugin is not specified! Defaulting to Py2.”

Thanks for any help !

Deadline log below.

=======================================================

Error

=======================================================

Error: FailRenderException : Renderer returned non-zero error code -1073740791. Check the renderer's output.

at Deadline.Plugins.DeadlinePlugin.FailRender(String message) (Python.Runtime.PythonException)

File "C:\ProgramData\Thinkbox\Deadline10\workers\FX-01\plugins\611663524aeb754fb8d4eba9\MayaCmd.py", line 1097, 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 ber, CancellationToken bes)

at Deadline.Plugins.SandboxedPlugin.RenderTask(Task task, CancellationToken cancellationToken)

at Deadline.Slaves.SlaveRenderThread.c(TaskLogWriter aix, CancellationToken aiy)

=======================================================

Log

=======================================================

2021-08-13 14:22:17: 0: Loading Job's Plugin timeout is Disabled

2021-08-13 14:22:17: 0: WARNING: Python version for 'MayaCmd' plugin is not specified! Defaulting to Py2.

2021-08-13 14:22:17: 0: SandboxedPlugin: Render Job As User disabled, running as current user 'X'

2021-08-13 14:22:19: 0: nogui was not added to the CommandLineParser.

2021-08-13 14:22:19: 0: Executing plugin command of type 'Initialize Plugin'

2021-08-13 14:22:19: 0: INFO: Executing plugin script 'C:\ProgramData\Thinkbox\Deadline10\workers\FX-01\plugins\611663524aeb754fb8d4eba9\MayaCmd.py'

2021-08-13 14:22:19: 0: INFO: About: Maya Cmd Plugin for Deadline

2021-08-13 14:22:19: 0: INFO: The job's environment will be merged with the current environment before rendering

2021-08-13 14:22:19: 0: Done executing plugin command of type 'Initialize Plugin'

2021-08-13 14:22:19: 0: Start Job timeout is disabled.

2021-08-13 14:22:19: 0: Task timeout is disabled.

2021-08-13 14:22:19: 0: Loaded job: deadline_test_maya_2002_arnold - camera1 (611663524aeb754fb8d4eba9)

2021-08-13 14:22:19: 0: Executing plugin command of type 'Start Job'

2021-08-13 14:22:19: 0: DEBUG: S3BackedCache Client is not installed.

2021-08-13 14:22:19: 0: INFO: Executing global asset transfer preload script 'C:\ProgramData\Thinkbox\Deadline10\workers\FX-01\plugins\611663524aeb754fb8d4eba9\GlobalAssetTransferPreLoad.py'

2021-08-13 14:22:19: 0: INFO: Looking for legacy (pre-10.0.26) AWS Portal File Transfer...

2021-08-13 14:22:19: 0: INFO: Looking for legacy (pre-10.0.26) File Transfer controller in C:/Program Files/Thinkbox/S3BackedCache/bin/task.py...

2021-08-13 14:22:19: 0: INFO: Could not find legacy (pre-10.0.26) AWS Portal File Transfer.

2021-08-13 14:22:19: 0: INFO: Legacy (pre-10.0.26) AWS Portal File Transfer is not installed on the system.

2021-08-13 14:22:19: 0: Done executing plugin command of type 'Start Job'

2021-08-13 14:22:19: 0: Plugin rendering frame(s): 3

2021-08-13 14:22:19: 0: Executing plugin command of type 'Render Task'

2021-08-13 14:22:19: 0: INFO: Setting MAYA_DEBUG_ENABLE_CRASH_REPORTING environment variable to 0 for this session

2021-08-13 14:22:19: 0: INFO: Setting MAYA_DISABLE_CIP (ADSK Customer Involvement Program) environment variable to 1 for this session

2021-08-13 14:22:19: 0: INFO: Setting MAYA_DISABLE_CER (ADSK Customer Error Reporting) environment variable to 1 for this session

2021-08-13 14:22:19: 0: INFO: Setting MAYA_DISABLE_CLIC_IPM (ADSK In Product Messaging) environment variable to 1 for this session

2021-08-13 14:22:19: 0: INFO: Setting MAYA_OPENCL_IGNORE_DRIVER_VERSION environment variable to 1 for this session

2021-08-13 14:22:19: 0: INFO: Setting MAYA_VP2_DEVICE_OVERRIDE environment variable to VirtualDeviceDx11 for this session

2021-08-13 14:22:19: 0: INFO: Setting MAYA_RENDER_SETUP_INCLUDE_ALL_LIGHTS environment variable to 1 for this session

2021-08-13 14:22:19: 0: INFO: Setting MAYA_COLOR_MANAGEMENT_POLICY_FILE environment variable to C:\ProgramData\Thinkbox\Deadline10\workers\FX-01\jobsData\611663524aeb754fb8d4eba9\thread0_temp0hOrm0\cm_aces2.0.xml for this session

2021-08-13 14:22:19: 0: INFO: Setting MAYA_ENABLE_LEGACY_RENDER_LAYERS environment variable to 0 for this session

2021-08-13 14:22:19: 0: INFO: Rendering with Maya version 2022.0

2021-08-13 14:22:19: 0: INFO: Enforcing 64 bit build of Maya

2021-08-13 14:22:19: 0: INFO: Setting PYTHONHOME environment variable to C:\Program Files\Autodesk\Maya2022\Python for this session

2021-08-13 14:22:19: 0: INFO: Stdout Redirection Enabled: True

2021-08-13 14:22:19: 0: INFO: Stdout Handling Enabled: True

2021-08-13 14:22:19: 0: INFO: Popup Handling Enabled: True

2021-08-13 14:22:19: 0: INFO: QT Popup Handling Enabled: False

2021-08-13 14:22:19: 0: INFO: WindowsForms10.Window.8.app.* Popup Handling Enabled: False

2021-08-13 14:22:20: 0: INFO: Using Process Tree: True

2021-08-13 14:22:20: 0: INFO: Hiding DOS Window: True

2021-08-13 14:22:20: 0: INFO: Creating New Console: False

2021-08-13 14:22:20: 0: INFO: Running as user: X

2021-08-13 14:22:20: 0: INFO: Rendering with Maya version 2022.0

2021-08-13 14:22:20: 0: INFO: Enforcing 64 bit build of Maya

2021-08-13 14:22:20: 0: INFO: Executable: "C:\Program Files\Autodesk\Maya2022\bin\Render.exe"

2021-08-13 14:22:20: 0: INFO: Rendering to network drive

2021-08-13 14:22:20: 0: INFO: Rendering with Arnold.

2021-08-13 14:22:20: 0: INFO: Argument: -r arnold -ai:lve 2 -rt 0 -x 960 -y 540 -s 3 -e 3 -b 1 -rd "B:/tmp/deadline_test/images" -im "deadline_test_maya_2002_arnold" -cam "camera1" -proj "B:/tmp/deadline_test" "B:\tmp\deadline_test\deadline_test_maya_2002_arnold.mb"

2021-08-13 14:22:20: 0: INFO: Full Command: "C:\Program Files\Autodesk\Maya2022\bin\Render.exe" -r arnold -ai:lve 2 -rt 0 -x 960 -y 540 -s 3 -e 3 -b 1 -rd "B:/tmp/deadline_test/images" -im "deadline_test_maya_2002_arnold" -cam "camera1" -proj "B:/tmp/deadline_test" "B:\tmp\deadline_test\deadline_test_maya_2002_arnold.mb"

2021-08-13 14:22:20: 0: INFO: Startup Directory: "C:\Program Files\Autodesk\Maya2022\bin"

2021-08-13 14:22:20: 0: INFO: Process Priority: BelowNormal

2021-08-13 14:22:20: 0: INFO: Process Affinity: default

2021-08-13 14:22:20: 0: INFO: Process is now running

2021-08-13 14:22:20: 0: STDOUT: Starting "C:\Program Files\Autodesk\Maya2022\bin\mayabatch.exe"

2021-08-13 14:22:55: 0: STDOUT: // Maya exited with status -1073740791

2021-08-13 14:22:55: 0: INFO: Process exit code: -1073740791

2021-08-13 14:22:55: 0: Done executing plugin command of type 'Render Task'

=======================================================

Details

=======================================================

Date: 08/13/2021 14:22:59

Frames: 3

Elapsed Time: 00:00:00:42

Job Submit Date: 08/13/2021 14:19:30


Average RAM Usage: 9762325504 (15%)

Peak RAM Usage: 10124214272 (15%)

Average CPU Usage: 10%

Peak CPU Usage: 32%

Used CPU Clocks (x10^6 cycles): 351453

Total CPU Clocks (x10^6 cycles): 3514524

=======================================================

Worker Information

=======================================================


Version: v10.1.17.4 Release (d3559fe75)

Operating System: Windows 10 Professionnel

Running As Service: No

CPU Architecture: x64

CPUs: 24

CPU Usage: 4%

Memory Usage: 9.4 GB / 63.9 GB (14%)

Free Disk Space: 3.619 TB (40.514 GB on C:\, 125.839 GB on D:\, 3.457 TB on E:\)

Video Card: NVIDIA GeForce RTX 2070 SUPER

More informations below

I tried to put the Full Command into a window command line: “C:\Program Files\Autodesk\Maya2022\bin\Render.exe” -r arnold -ai:lve 2 -rt 0 -x 960 -y 540 -s 3 -e 3 -b 1 -rd “B:/tmp/deadline_test/images” -im “deadline_test_maya_2002_arnold” -cam “camera1” -proj “B:/tmp/deadline_test” “B:\tmp\deadline_test\deadline_test_maya_2002_arnold.mb”

The render went through succesfully but I got some warning and errors. The full log below

(c) Microsoft Corporation. Tous droits réservés.

C:\Users\gUSER>"C:\Program Files\Autodesk\Maya2022\bin\Render.exe" -r arnold -ai:lve 2 -rt 0 -x 960 -y 540 -s 3 -e 3 -b 1 -rd "B:/tmp/deadline_test/images" -im "deadline_test_maya_2002_arnold" -cam "camera1" -proj "B:/tmp/deadline_test" "B:\tmp\deadline_test\deadline_test_maya_2002_arnold.mb"

Starting "C:\Program Files\Autodesk\Maya2022\bin\mayabatch.exe"
__feature__ could not be imported. This is an unsolved PyInstaller problem.
Initialized VP2.0 renderer {
  Version : 2016.11.62.12. Feature Level 5.
  Adapter : GeForce RTX 2070 SUPER/PCIe/SSE2
  Vendor ID: 4318. Device ID : 7812
  Driver : .
  API : OpenGL V.4.6.
  Max texture size : 16384 * 16384.
  Max texture coords : 32
  Shader versions supported (Vertex: 5, Geometry: 5, Pixel 5).
  Shader compiler profile : (Best card profile)
  Active stereo support available : 0
  GPU Memory Limit : 8192 MB.
  CPU Memory Limit : 62209.2 MB.
  MultiDraw consolidation : enabled
}
OpenCL evaluator is attempting to initialize OpenCL.
Detected 1 OpenCL Platforms:
 0: NVIDIA Corporation. NVIDIA CUDA. OpenCL 1.2 CUDA 11.1.96.
 Supported extensions: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_d3d10_sharing cl_khr_d3d10_sharing cl_nv_d3d11_sharing cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_device_uuid
 Selected matching OpenCL Platform: NVIDIA Corporation NVIDIA CUDA OpenCL 1.2 CUDA 11.1.96.
OpenCL evaluator choosing OpenCL platform NVIDIA Corporation.
OpenCL evaluator is unable to find a GPU device that can share VBOs with OpenGL.
00:00:00   546MB         | log started Fri Aug 13 14:51:00 2021
00:00:00   546MB         | Arnold 6.2.1.0 [359aaa66] windows clang-10.0.1 oiio-2.3.2 osl-1.12.0 vdb-7.1.1 clm-2.0.0.235 rlm-14.1.3 optix-6.6.0 2021/04/21 14:04:45
00:00:00   546MB         | running on FX-01, pid=8136
00:00:00   546MB         |  1 x AMD Ryzen 9 3900X 12-Core Processor  (12 cores, 24 logical) with 65483MB
00:00:00   546MB         |  NVIDIA driver version 456.71 (Optix 60700)
00:00:00   546MB         |  GPU 0: GeForce RTX 2070 SUPER @ 1800MHz (compute 7.5) with 8192MB (6899MB available) (NVLink:0)
00:00:00   546MB         |  Windows 10 (version 10.0, build 19042)
00:00:00   546MB         |  soft limit for open files raised from 512 to 2048
00:00:00   546MB         |
00:00:00   546MB         | loading plugins from C:\Program Files\Autodesk\Arnold\maya2022\bin\..\plugins ...
00:00:00   546MB         |  alembic_proc.dll: alembic uses Arnold 6.2.1.0
00:00:00   547MB         |  cryptomatte.dll: cryptomatte uses Arnold 6.2.1.0
00:00:00   547MB         |  cryptomatte.dll: cryptomatte_filter uses Arnold 6.2.1.0
00:00:00   547MB         |  cryptomatte.dll: cryptomatte_manifest_driver uses Arnold 6.2.1.0
00:00:00   547MB         |  synColor_shaders.dll: color_manager_syncolor uses Arnold 6.2.1.0
00:00:00   567MB         |  usd_proc.dll: usd uses Arnold 6.2.1.0
00:00:00   567MB         | loaded 6 plugins from 4 lib(s) in 0:00.08
###############################################################################
Begin attempted read of a shade fragment XML file.
Attempting to read fragment XML code from: aiRectangleAreaLight.xml
Errors loading XML:
-------------------------------------------------------------------------------
Could not find file: aiRectangleAreaLight.xml
-------------------------------------------------------------------------------
End attempted read of fragment XML.
###############################################################################
qt.svg: Cannot open file ':/expression.svg', because: No such file or directory
qt.svg: Cannot open file ':/expression.svg', because: No such file or directory
qt.svg: Cannot open file ':/expression.svg', because: No such file or directory
qt.svg: Cannot open file ':/expression.svg', because: No such file or directory
00:00:00 WARNING | [mtoa] Error loading extension library: Le module spécifié est introuvable.

00:00:00 ERROR   | [mtoa] Deleting Extension usdProxyShapeTranslator .Unable to load library: (C:/Program Files/Autodesk/Arnold/maya2022/extensions/usdProxyShapeTranslator.dll)
Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication.
File read in  0.32 seconds.
Result: B:/tmp/deadline_test/deadline_test_maya_2002_arnold.mb
Warning: file: C:/Program Files/Autodesk/Maya2022/scripts/others/makeCameraRenderable.mel line 45: Found camera cameraShape1.
00:00:00   722MB         | log started Fri Aug 13 14:51:03 2021
00:00:00   722MB         | Arnold 6.2.1.0 [359aaa66] windows clang-10.0.1 oiio-2.3.2 osl-1.12.0 vdb-7.1.1 clm-2.0.0.235 rlm-14.1.3 optix-6.6.0 2021/04/21 14:04:45
00:00:00   722MB         | host application: MtoA 4.2.2 7d3ee8ca (RB-4.2.2) Maya 2022
00:00:00   722MB         | running on FX-01, pid=8136
00:00:00   722MB         |  1 x AMD Ryzen 9 3900X 12-Core Processor  (12 cores, 24 logical) with 65483MB
00:00:00   725MB         |  NVIDIA driver version 456.71 (Optix 60700)
00:00:00   725MB         |  GPU 0: GeForce RTX 2070 SUPER @ 1800MHz (compute 7.5) with 8192MB (6899MB available) (NVLink:0)
00:00:00   725MB         |  Windows 10 (version 10.0, build 19042)
00:00:00   725MB         |  soft limit for open files is set at 2048
00:00:00   725MB         |
00:00:00   727MB         | loading plugins from C:/Program Files/Autodesk/Arnold/maya2022/shaders ...
00:00:00   727MB         |  hairPhysicalShader_shaders.dll: HairPhysicalShaderDiffuseColorAdapter uses Arnold 6.2.1.0
00:00:00   727MB         |  hairPhysicalShader_shaders.dll: HairPhysicalShaderSpecularWeightAdapter uses Arnold 6.2.1.0



[...] blablabla


00:00:02   839MB         |   90% done - 57 rays/pixel
00:00:02   840MB         |   95% done - 40 rays/pixel
00:00:02   840MB         |  100% done - 11 rays/pixel
00:00:02   840MB         | render done in 0:01.785
00:00:02   840MB         | [driver_exr] writing file `B:/tmp/deadline_test/images/deadline_test_maya_2002_arnold.0003.exr'
00:00:02   840MB         | render done
00:00:02   840MB         |
00:00:02   840MB         | -----------------------------------------------------------------------------------
00:00:02   840MB         | scene creation time          0:00.35    machine utilization (1.12%)
00:00:02   840MB         |  plugin loading              0:00.31
00:00:02   840MB         |  unaccounted                 0:00.03
00:00:02   840MB         | -----------------------------------------------------------------------------------
00:00:02   840MB         | frame time                   0:01.87    machine utilization (90.12%)
00:00:02   840MB         |  driver init/close           0:00.01

00:00:02   840MB         | -----------------------------------------------------------------------------------
00:00:02   840MB         | number of warnings, warning type:
00:00:02   840MB         |     1:  rendering with watermarks because the skip_license_check option was enabled
00:00:02   840MB         | -----------------------------------------------------------------------------------
00:00:02   841MB         |
00:00:02   841MB         | releasing resources
00:00:02   764MB         | Arnold shutdown
Scene B:\tmp\deadline_test\deadline_test_maya_2002_arnold.mb completed.

Sorry for the triple post.
I finally succeed to make it work just by using another computer as slave.
So I think the issue came from the computer that I was using before not deadline.
Best

For anyone else running into the “WARNING: Python version for ‘MayaBatch’ plugin is not specified! Defaulting to Py2.” error, that’s referring to Deadline’s MayaCMD plugin. This is what we use to start and control Maya for rendering. We’re working on moving all our code over to Python 3, and we’ve added the ability to run plugins with Python 3. But we haven’t re-written MayaCMD yet, so it’s defaulting to Python 2.

For this error, it does look like there’s something amiss in your Maya install, but I can’t find anything from Autodesk, so let us know if you figure out what’s wrong!

This sounds like Arnold env vars missing somewhere
MTOA_EXTENSIONS_PATH etc.