OpenCue: mayabatch.exe - application error

hi all,

when i submit a maya job via cuesubmit and then look at the job in cuegui its “running” but all the time i get this pop up error and its always reappearing and it doesnt complete the job

mayabatch_error

heres the log it shows in cuegui

`=========================================================== RenderQ JobSpec Sun Jul 30 12:20:29 2023

proxy rqd.rqnetwork.RunningFrame/149a685e-997f-4485-bed8-2b08a3dd8156 -t:tcp -h 10.110.110.200 -p 10021 command Render -r file -s 1 -e 1 C:\Users\gfx14_uk\Desktop\test\TEST.ma uid 1 gid 20 logDestination /home/opencue/opencue-demo/logs/testing/370/logs/testing-370-gfx14_uk_370–770e5193-cc00-4792-bd22-4fb7e292982a\testing-370-gfx14_uk_370.0001-370.rqlog cwd C:\Users\gfx14_uk\AppData\Local\Temp/testing-370-gfx14_uk_370\0001-370 renderHost 10.110.110.200 jobId 770e5193-cc00-4792-bd22-4fb7e292982a frameId 149a685e-997f-4485-bed8-2b08a3dd8156 env APPDATA=C:\Users\gfx14_uk\AppData\Roaming env COMMONPROGRAMFILES=C:\Program Files\Common Files env CUE3=1 env CUE_CHUNK=1 env CUE_FRAME=0001-370 env CUE_FRAME_ID=149a685e-997f-4485-bed8-2b08a3dd8156 env CUE_GPUS=0 env CUE_GPU_MEMORY=0 env CUE_IFRAME=1 env CUE_JOB=testing-370-gfx14_uk_370 env CUE_JOB_ID=770e5193-cc00-4792-bd22-4fb7e292982a env CUE_LAYER=370 env CUE_LAYER_ID=22175045-83c4-4999-aea2-95eeac1a98ff env CUE_LOG_PATH=/home/opencue/opencue-demo/logs/testing/370/logs/testing-370-gfx14_uk_370–770e5193-cc00-4792-bd22-4fb7e292982a env CUE_MEMORY=3355443 env CUE_RANGE=1-100 env CUE_SHOT=370 env CUE_SHOW=testing env CUE_THREADABLE=0 env CUE_THREADS=1 env CUE_USER=gfx14_uk env LOGNAME=gfx14_uk env PATH=C:\OpenCue\venv\Scripts;C:\Program Files\Python310\Scripts;C:\Program Files\Python310;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\compiler;C:\Program Files\Python311\Scripts;C:\Program Files\Python311;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files\Eclipse Adoptium\jre-8.0.372.7-hotspot\bin;C:\Program Files\Eclipse Adoptium\jre-17.0.7.7-hotspot\bin;C:\Program Files\Eclipse Adoptium\jre-11.0.19.7-hotspot\bin;C:\Program Files (x86)\Eclipse Adoptium\jre-8.0.362.9-hotspot\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\PuTTY;C:\Program Files (x86)\dotnet;C:\Program Files\dotnet;C:\Windows\gpfs_cygwin\usr\lpp\mmfs\win;C:\Program Files\Mellanox\MLNX_WinOF2\Management Tools;C:\Program Files\Mellanox\MLNX_WinOF2\Performance Tools;C:\Program Files\Mellanox\MLNX_WinOF2\Diagnostic Tools;C:\Program Files (x86)\Extensis\Universal Type Client;C:\Program Files\WireGuard;C:\Program Files\Autodesk\Maya2024\bin;C:\Program Files\Autodesk\Arnold\maya2024\bin;C:\Users\gfx14_uk\AppData\Local\Microsoft\WindowsApps; env SP_NOMYCSHRC=1 env SYSTEMROOT=C:\Windows env TERM=unknown env TMP=C:\Users\gfx14_uk\AppData\Local\Temp env TZ=PST8PDT env USER=gfx14_uk env frame=0001-370 env jobhost=10.110.110.200 env jobid=testing-370-gfx14_uk_370 env logfile=testing-370-gfx14_uk_370.0001-370.rqlog env maxframetime=0 env mcp=1 env minspace=200 env shot=370 env show=testing env zframe=0001-370

C:\OpenCue\venv\Scripts>Render -r file -s 1 -e 1 C:\Users\gfx14_uk\Desktop\test\TEST.ma

Starting “C:\Program Files\Autodesk\Maya2024\bin\mayabatch.exe” ` and when i try to run the render command manually via cmd, i get this

`Render -r file -s 1 -e 1 C:\Users\gfx14_uk\Desktop\test\TEST.ma

Starting “C:\Program Files\Autodesk\Maya2024\bin\mayabatch.exe” This plugin does not support createPlatformOpenGLContext! Initialized VP2.0 renderer { Version : 2016.11.62.12. Feature Level 5. Adapter : NVIDIA RTX A4500/PCIe/SSE2 Vendor ID: 4318. Device ID : 8754 Driver : C:\Windows\System32\DriverStore\FileRepository\nv_dispwi.inf_amd64_de2577632fa3c946\nvoglv64.dll.dll:31.0.15.2895. 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 : 20470 MB. CPU Memory Limit : 124272 MB. MultiDraw consolidation : enabled } OpenCL evaluator is attempting to initialize OpenCL. Detected 1 OpenCL Platforms: 0: NVIDIA Corporation. NVIDIA CUDA. OpenCL 3.0 CUDA 12.0.151. 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_3d_image_writes 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_khr_gl_event cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_nv_kernel_attribute cl_khr_device_uuid cl_khr_pci_bus_info cl_khr_external_semaphore cl_khr_external_memory cl_khr_external_semaphore_win32 cl_khr_external_memory_win32 Selected matching OpenCL Platform: NVIDIA Corporation NVIDIA CUDA OpenCL 3.0 CUDA 12.0.151. OpenCL evaluator choosing OpenCL platform NVIDIA Corporation. OpenCL evaluator is unable to find a GPU device that can share VBOs with OpenGL. 00:00:01 1552MB | log started Sun Jul 30 12:09:58 2023 00:00:01 1552MB | Arnold 7.2.0.0 [3560d69f] windows x86_64 clang-10.0.1 oiio-2.4.1 osl-1.12.0 vdb-7.1.1 adlsdk-7.4.2.47 clmhub-3.1.1.43 rlm-14.2.5 optix-6.6.0 2023/02/06 16:46:20 00:00:01 1552MB | running on lon-p-gfx14, pid=7040 00:00:01 1552MB | 1 x 13th Gen Intel® Core™ i9-13900K (32 cores, 32 logical) with 130812MB 00:00:01 1552MB | NVIDIA driver version 528.95 (Optix 60805) 00:00:01 1552MB | GPU 0: NVIDIA RTX A4500 @ 1650MHz (compute 8.6) with 20469MB (19270MB available) (NVLink:0) 00:00:01 1552MB | Windows 10 (version 10.0, build 19045) 00:00:01 1552MB | soft limit for open files changed from 512 to 2048 00:00:01 1552MB | 00:00:01 1552MB | [metadata] loading metadata file: C:\Program Files\Autodesk\Arnold\maya2024\bin\arnold.mtd 00:00:01 1555MB | [color_manager_ocio] default ocio.config found in C:\Program Files\Autodesk\Arnold\maya2024\bin../ocio/configs/arnold/config.ocio 00:00:01 1555MB | loading plugins from C:\Program Files\Autodesk\Arnold\maya2024\bin..\plugins … 00:00:01 1555MB | alembic_proc.dll: alembic uses Arnold 7.2.0.0 00:00:01 1556MB | cryptomatte.dll: cryptomatte uses Arnold 7.2.0.0 00:00:01 1556MB | cryptomatte.dll: cryptomatte_filter uses Arnold 7.2.0.0 00:00:01 1556MB | cryptomatte.dll: cryptomatte_manifest_driver uses Arnold 7.2.0.0 00:00:01 1556MB | [metadata] loading metadata file: C:\Program Files\Autodesk\Arnold\maya2024\bin..\plugins\cryptomatte.mtd 00:00:01 1596MB | usd_proc.dll: usd uses Arnold 7.2.0.0 00:00:01 1597MB | loaded 5 plugins from 3 lib(s) in 0:00.07 ############################################################################### 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 File read in 0.015 seconds. Result: C:/Users/gfx14_uk/Desktop/test/TEST.ma Exporting Arnold Scene… Updating Arnold Scene… 00:00:05 1688MB | log started Sun Jul 30 12:10:03 2023 00:00:05 1688MB | Arnold 7.2.0.0 [3560d69f] windows x86_64 clang-10.0.1 oiio-2.4.1 osl-1.12.0 vdb-7.1.1 adlsdk-7.4.2.47 clmhub-3.1.1.43 rlm-14.2.5 optix-6.6.0 2023/02/06 16:46:20 00:00:05 1688MB | host application: MtoA 5.3.0 467bd77f (fix-5.3.0) Maya 2024 00:00:05 1688MB | running on lon-p-gfx14, pid=7040 00:00:05 1688MB | 1 x 13th Gen Intel® Core™ i9-13900K (32 cores, 32 logical) with 130812MB 00:00:05 1688MB | NVIDIA driver version 528.95 (Optix 60805) 00:00:05 1688MB | GPU 0: NVIDIA RTX A4500 @ 1650MHz (compute 8.6) with 20469MB (19270MB available) (NVLink:0) 00:00:05 1688MB | Windows 10 (version 10.0, build 19045) 00:00:05 1688MB | soft limit for open files is set at 2048 00:00:05 1688MB | Warning: WARNING | rendering with watermarks because of failed authorization: 00:00:14 1693MB WARNING | rendering with watermarks because of failed authorization: 00:00:14 1693MB | [rlm] error initializing license system: 00:00:14 1693MB | [rlm] * Can’t read license data (-102)No such file or directory (errno: 2) 00:00:14 1693MB | [clm.v1] license server was not set (51) 00:00:14 1693MB | [clm.v2] SERVICE (13): entitlement not found 00:00:14 1693MB | environment variables: 00:00:14 1693MB | ARNOLD_LICENSE_ORDER = (not set) 00:00:14 1693MB | ARNOLD_LICENSE_MANAGER = (not set) 00:00:14 1693MB | [rlm] solidangle_LICENSE = (not set) 00:00:14 1693MB | [rlm] RLM_LICENSE = (not set) 00:00:14 1693MB | [clm] ADSKFLEX_LICENSE_FILE = (not set) 00:00:14 1693MB | [clm] LM_LICENSE_FILE = (not set) Scene C:\Users\gfx14_uk\Desktop\test\TEST.ma completed. 00:00:17 1743MB | unloading 11 plugins 00:00:17 1743MB | closing alembic_proc.dll … 00:00:17 1743MB | closing cryptomatte.dll … 00:00:17 1742MB | closing usd_proc.dll … 00:00:17 1738MB | closing hairPhysicalShader_shaders.dll … 00:00:17 1738MB | closing lookdevkit_shaders.dll … 00:00:17 1738MB | closing mtoa_shaders.dll … 00:00:17 1738MB | closing renderSetup_shaders.dll … 00:00:17 1738MB | closing xgenSpline_shaders.dll … 00:00:17 1738MB | closing xgenSpline_procedural.dll … 00:00:17 1738MB | closing xgen_procedural.dll … 00:00:17 1738MB | closing arnold_bifrost.dll … 00:00:17 1738MB | unloading plugins done 00:00:17 1738MB | Arnold shutdown`

so looks like opencue cant start mayabatch but running it manually works

thanks, rob

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 35 (9 by maintainers)

Most upvoted comments

Hi! Just created a draft pull request for a fix that I believe will get CueSubmit Maya jobs working on Windows RQDs. Will work out some things in the back end and mark the request ready for review 😃

hi @bcipriano @splhack @DiegoTavares @sharifsalah @akim-ruslanov @lgritz

you think this can be addressed as atm maya for windows just does not work with opencue at all, ive installed cuebot server on linux and the rest ie rqd/submit/gui/admin/outline/cue on windows and blender on windows works fine with opencue but as said maya just does not work as @angelali-ms theres a hack of getting it to work but it would be nice if this was addressed

@angelali-ms have you tried installing cuesubmit in maya

https://www.opencue.io/docs/getting-started/installing-cuesubmit/

you think that will work?

EDIT - answered my own question, no it doesnt work as still get the pop ups all the time “mayabatch.exe application error”

@robina80 that’s great news!! 😄 @malkia it seems like there are two open pull requests that do just that - not sure what the status is for them though:

great, this is a step in the right direction!!!

i ran first this

import getpass import outline import outline.cuerun import outline.modules.shell ol = outline.Outline( 'basic_job', shot='shot01', show='testing', user=getpass.getuser()) layer = outline.modules.shell.Shell( 'echo_frame', command=['echo', '#IFRAME#'], chunk=1, threads=1, range='1-5') ol.add_layer(layer) outline.cuerun.launch(ol, use_pycuerun=False)

and the job finished with success

now running the maya file

import getpass import outline import outline.cuerun import outline.modules.shell ol = outline.Outline( 'basic_job', shot='shot01', show='testing', user=getpass.getuser()) layer = outline.modules.shell.Shell( 'mayabatch_layer', command=['set', 'SYSTEMDRIVE=C:', '\n', 'Render', '-r', 'file', '-s', '#IFRAME#', '-e', '#IFRAME#', '-cam', '020', 'D:\programs\renders\TEST.ma'], chunk=1, threads=0, range='1-100') ol.add_layer(layer) outline.cuerun.launch(ol, use_pycuerun=False)

i see the job in cuegui but the job dies as it thinks the maya file is just D:\programs enders\TEST.ma

but its actually starting mayabatch now which is great as i can see in the logs where as before it just errored trying to start mayabatch!!!

Ah! For PyOutline, these were the steps that I did to utilize it:

Then, I modified the sample code to include the set env command and the mayabatch command. In particular, I modified this line of code like so:

layer = outline.modules.shell.Shell(
    'mayabatch_layer',  # can rename this to what suits your needs
    command=['set', 'SYSTEMDRIVE=C:', '\n', #mayabatch command here#],
    chunk=1,
    threads=1,
    range='1-1')

Not sure if there’s a better way to do this, but this is what has worked so far!

thanks @malkia i really appreciate it

tbh i thought it was just a case of adding another env variable like you to the windows path but havnt had any luck yet, ive tried to add this to my env variable paths in windows but no joy

C:\Program Files\Autodesk\Arnold\maya2024\bin

obviously you need the below one to start the render cmd so ive added it to my windows paths env var

C:\Program Files\Autodesk\Maya2024\bin

ive changed my rqd.bat

@echo off for /f "tokens=3 delims=: " %%i in ('netsh interface ip show address ^| findstr "10.100" ^| findstr "IP ADDRESS"') do set ip=%%i mkdir %localappdata%\OpenCue echo [Override] > %localappdata%\OpenCue\rqd.conf echo OVERRIDE_HOSTNAME=%ip% >> %localappdata%\OpenCue\rqd.conf echo RQD_USE_PATH_ENV_VAR=True >> %localappdata%\OpenCue\rqd.conf echo DEFAULT_FACILITY=local >> %localappdata%\OpenCue\rqd.conf echo GPU=False >> %localappdata%\OpenCue\rqd.conf echo RQD_TAGS = >> %localappdata%\OpenCue\rqd.conf echo RQD_BECOME_JOB_USER=False >> %localappdata%\OpenCue\rqd.conf set OPENCUE_SERVER=172.17.1.1 set CUEBOT_HOSTS=%OPENCUE_SERVER% set CUEBOT_HOSTNAME=%OPENCUE_SERVER% set CUEBOT_HOSTNAME_OR_IP=%OPENCUE_SERVER% cmd /k "cd D:\programs\OpenCue-0.22.14\venv\Scripts & activate & rqd"

Ok, I’ve hit the same on Windows. Turns out RQD was resseting the environment. I’m still finding out what variables are needed, but definitely sanitizing the whole env, and just placing (what looks) like above may not work in all situations. All it take is for some code to rely on these, and then it won’t work.