maya 2013 mental ray

Hey there could you help us with this?

=======================================================
Error Message

Exception during render: An error occurred in RenderTasks(): Monitored managed process “MayaBatch” has exited or been terminated.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

=======================================================
Slave Log

0: Task timeout is disabled.
0: Loaded job: - layer1 (00c_052_999_0c863433)
0: INFO: StartJob: initializing script plugin MayaBatch
0: INFO: About: Maya Batch Plugin for Deadline
0: INFO: Rendering with Maya version 2013.0
0: INFO: Starting monitored managed process MayaBatch
0: INFO: Any stdout that matches the regular expression “READY FOR INPUT” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “FLEXlm error: ." will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “.3DL ERROR .” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression "Finished Rendering.
.([0-9]+).[^.]+” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “.Finished Rendering.” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “Constructing shading groups|Rendering current frame” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “.Error: .|.Warning: .” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “progr: +([0-9]+.[0-9]+)% +rendered” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “progr: +([0-9]+.[0-9]+)% +computing final gather points” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “progr: writing image file .* (frame ([0-9]+))” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “progr: +rendering finished” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “| render done” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “[PROGRESS] Completed frame*” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “.[PROGRESS] TURTLE rendering frame 100.00.” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “.Render complete.” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “[PROGRESS] Percentage of rendering done: (.)" will be handled as appropriate
0: INFO: Any stdout that matches the regular expression ".
[PROGRESS] TURTLE rendering frame ([0-9]+.[0-9]+)." will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “.RIMG : +([0-9]+)%" will be handled as appropriate
0: INFO: Any stdout that matches the regular expression "V-Ray: Building light cache
” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression "V-Ray: Prepass ([0-9]+) of ([0-9]+)
” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “V-Ray: Rendering image*” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “V-Ray: +([0-9]+)%” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “V-Ray: +([0-9]+) %” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “([0-9]+) % completed” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “V-Ray: Total frame time” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “V-Ray: Updating frame at time ([0-9]+)” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “V-Ray: Render complete” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “rfm Notice: Rendering .* at ([0-9]+)” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “[PROGRESS] ([0-9]+) percent” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “([0-9]+)%” will be handled as appropriate
0: INFO: Any popup windows with titles matching the regular expression “.entry point.” will be ignored
0: INFO: Any popup windows with titles matching the regular expression “.Entry Point.” will be ignored
0: INFO: Any popup windows with titles matching the regular expression “.Render history settings.” will be ignored
0: INFO: Any popup windows with titles matching the regular expression “.Render history note.” will be ignored
0: INFO: Stdout Handling Enabled: True
0: INFO: Popup Handling Enabled: True
0: INFO: Using Process Tree: True
0: INFO: Hiding DOS Window: True
0: INFO: Creating New Console: False
0: INFO: Enforcing 64 bit build of Maya
0: INFO: Render Executable: “C:\Program Files\Autodesk\Maya2013\bin\MayaBatch.exe”
0: INFO: Render Argument: -prompt -file “C:/Users/render/AppData/Local/Thinkbox/Deadline/slave/Boston-01/jobsData/renderTest.ma” -proj “//DC02/currentjobs/KY_HealthExchange_0165/07_THREE_D”
0: INFO: Startup Directory: “C:\Program Files\Autodesk\Maya2013\bin”
0: INFO: Process Priority: BelowNormal
0: INFO: Process Affinity: default
0: INFO: Process is now running
0: Plugin rendering frame(s): 7-8
0: INFO: Waiting until maya is ready to go
0: STDOUT: mental ray for Maya 2013
0: STDOUT: // Mental ray for Maya: using startup file C:/Program Files/Autodesk/Maya2013/mentalray//maya.rayrc.
0: STDOUT: mental ray for Maya: setup
0: STDOUT: mental ray for Maya: initialize
0: STDOUT: mental ray: version 3.10.1.11, Jul 26 2012, revision 177995
0: STDOUT: mental ray for Maya: register extensions
0: STDOUT: // mental ray Node Factory: loaded
0: STDOUT: mental ray for Maya: successfully registered
0: STDOUT: mental ray for Maya: loading startup file: C:/Program Files/Autodesk/Maya2013/mentalray//maya.rayrc
0: STDOUT: // parsing C:/Program Files/Autodesk/Maya2013/mentalray/shaders/include/abcimport.mi
0: STDOUT: // loading C:/Program Files/Autodesk/Maya2013/mentalray/shaders/abcimport.dll
0: STDOUT: // generating Maya nodes…
0: STDOUT: // parsing C:/Program Files/Autodesk/Maya2013/mentalray/shaders/include/AdskShaderSDKWrappers.mi
0: STDOUT: // generating Maya nodes…
0: STDOUT: // parsing C:/Program Files/Autodesk/Maya2013/mentalray/shaders/include/architectural.mi
0: STDOUT: // loading C:/Program Files/Autodesk/Maya2013/mentalray/shaders/architectural.dll
0: STDOUT: // generating Maya nodes…
0: STDOUT: // parsing C:/Program Files/Autodesk/Maya2013/mentalray/shaders/include/base.mi
0: STDOUT: // loading C:/Program Files/Autodesk/Maya2013/mentalray/shaders/base.dll
0: STDOUT: // generating Maya nodes…
0: STDOUT: // parsing C:/Program Files/Autodesk/Maya2013/mentalray/shaders/include/builtin_bsdf.mi
0: STDOUT: // generating Maya nodes…
0: STDOUT: // parsing C:/Program Files/Autodesk/Maya2013/mentalray/shaders/include/contour.mi
0: STDOUT: // loading C:/Program Files/Autodesk/Maya2013/mentalray/shaders/contour.dll
0: STDOUT: // generating Maya nodes…
0: STDOUT: // parsing C:/Program Files/Autodesk/Maya2013/mentalray/shaders/include/paint.mi
0: STDOUT: // loading C:/Program Files/Autodesk/Maya2013/mentalray/shaders/paint.dll
0: STDOUT: // generating Maya nodes…
0: STDOUT: // parsing C:/Program Files/Autodesk/Maya2013/mentalray/shaders/include/physics.mi
0: STDOUT: // loading C:/Program Files/Autodesk/Maya2013/mentalray/shaders/physics.dll
0: STDOUT: // generating Maya nodes…
0: STDOUT: // parsing C:/Program Files/Autodesk/Maya2013/mentalray/shaders/include/production.mi
0: STDOUT: // loading C:/Program Files/Autodesk/Maya2013/mentalray/shaders/production.dll
0: STDOUT: // generating Maya nodes…
0: STDOUT: // parsing C:/Program Files/Autodesk/Maya2013/mentalray/shaders/include/ptex.mi
0: STDOUT: // loading C:/Program Files/Autodesk/Maya2013/mentalray/shaders/ptex.dll
0: STDOUT: // generating Maya nodes…
0: STDOUT: // parsing C:/Program Files/Autodesk/Maya2013/mentalray/shaders/include/subsurface.mi
0: STDOUT: // loading C:/Program Files/Autodesk/Maya2013/mentalray/shaders/subsurface.dll
0: STDOUT: // generating Maya nodes…
0: STDOUT: // parsing C:/Program Files/Autodesk/Maya2013/mentalray/shaders/include/surfaceSampler.mi
0: STDOUT: // loading C:/Program Files/Autodesk/Maya2013/mentalray/shaders/surfaceSampler.dll
0: STDOUT: // generating Maya nodes…
0: STDOUT: // parsing C:/Program Files/Autodesk/Maya2013/mentalray/shaders/include/userdata.mi
0: STDOUT: // loading C:/Program Files/Autodesk/Maya2013/mentalray/shaders/userdata.dll
0: STDOUT: // generating Maya nodes…
0: STDOUT: // parsing C:/Program Files/Autodesk/Maya2013/mentalray/shaders/include/useribl.mi
0: STDOUT: // loading C:/Program Files/Autodesk/Maya2013/mentalray/shaders/useribl.dll
0: STDOUT: // generating Maya nodes…
0: STDOUT: File read in 6 seconds.
0: STDOUT: Result: C:/Users/render/AppData/Local/Thinkbox/Deadline/slave/Boston-01/jobsData/renderTest.ma
0: STDOUT: mel: READY FOR INPUT
0: INFO: Rendering with mentalray
0: INFO: Rendering to network drive
0: INFO: Creating melscript to execute
0: INFO: Script contents:
0: INFO:
////////////////////////////////////////////////////////////////////////////
// Starting Mel program

proc renderIt(string $name) {

string $opt=""; string $rl=""; string $rp=""; int $renderThreads = 2; float $resize=-1.; miLoadMayatomr; miCreateDefaultNodes(); select defaultRenderGlobals; setAttr .renderAll 1;
removeRenderLayerAdjustmentAndUnlock .animation; setAttr .animation 1; removeRenderLayerAdjustmentAndUnlock .startFrame; setAttr .startFrame 7;
removeRenderLayerAdjustmentAndUnlock .animation; setAttr .animation 1; removeRenderLayerAdjustmentAndUnlock .endFrame; setAttr .endFrame 8;
removeRenderLayerAdjustmentAndUnlock .byFrameStep; catch(setAttr .byFrameStep 1);

removeRenderLayerAdjustmentAndUnlock .imageFilePrefix; catch(setAttr -type "string" .imageFilePrefix "test/");
workspace -rt “images” “//DC02/currentjobs/KY_HealthExchange_0165/07_THREE_D/images”; workspace -rt “depth” “//DC02/currentjobs/KY_HealthExchange_0165/07_THREE_D/images”;
makeCameraRenderable(“cameraShape1”);
removeRenderLayerAdjustmentAndUnlock defaultResolution.width; catch(setAttr defaultResolution.width 1920);
removeRenderLayerAdjustmentAndUnlock defaultResolution.height; catch(setAttr defaultResolution.height 1080);

global int $g_mrBatchRenderCmdOption_NumThreadAutoOn = true; global int $g_mrBatchRenderCmdOption_NumThreadAuto = true;
global int $g_mrBatchRenderCmdOption_MemLimitAutoOn = true; global int $g_mrBatchRenderCmdOption_MemLimitAuto = true;
global int $g_mrBatchRenderCmdOption_VerbosityOn = true; global int $g_mrBatchRenderCmdOption_Verbosity = 5;
$rl=“layer1”;

setMayaSoftwareLayers($rl, $rp); miCreateMentalJobs(); setImageSizePercent($resize); mayaBatchRenderProcedure(0, “”, “”, “mentalRay”, $opt);

}

//
// Main part
//

string $sceneName = “C:/Users/render/AppData/Local/Thinkbox/Deadline/slave/Boston-01/jobsData/renderTest.ma”;

string $checkScene = file -q -sn;
if ($checkScene=="") {
error (“Cannot load scene. Please check the scene name.\n”);
} else if (catch(renderIt($sceneName))) {
error (“Render failed.\n”);
} else {
print (“Render completed.\n”);
}

// Ending Mel program

0: INFO: Executing script: C:\Users\render\AppData\Local\Temp\tmp2155.tmp
0: INFO: Waiting for script to finish
0: WARNING: Deadline is ignoring error “mel: Warning: file: C:/Users/render/AppData/Local/Temp/tmp2155.tmp line 13: The flag “-renderType” is obsolete and has been replaced by the “-fileRule” flag. Please use the new flag.” because plugin setting Strict Error Checking is disabled.
0: STDOUT: mel: Warning: file: C:/Users/render/AppData/Local/Temp/tmp2155.tmp line 13: The flag “-renderType” is obsolete and has been replaced by the “-fileRule” flag. Please use the new flag.
0: WARNING: Deadline is ignoring error “Warning: file: C:/Users/render/AppData/Local/Temp/tmp2155.tmp line 13: The flag “-renderType” is obsolete and has been replaced by the “-fileRule” flag. Please use the new flag.” because plugin setting Strict Error Checking is disabled.
0: STDOUT: Warning: file: C:/Users/render/AppData/Local/Temp/tmp2155.tmp line 13: The flag “-renderType” is obsolete and has been replaced by the “-fileRule” flag. Please use the new flag.
0: WARNING: Deadline is ignoring error “Warning: file: C:/Program Files/Autodesk/Maya2013/scripts/others/makeCameraRenderable.mel line 60: Found camera cameraShape1.” because plugin setting Strict Error Checking is disabled.
0: STDOUT: Warning: file: C:/Program Files/Autodesk/Maya2013/scripts/others/makeCameraRenderable.mel line 60: Found camera cameraShape1.
0: STDOUT: Maya: License was not obtained
0: WARNING: Monitored managed process MayaBatch is no longer running

=======================================================
Error Type

RenderPluginException

=======================================================
Error Stack Trace

at Deadline.Plugins.Plugin.RenderTask(String taskId, Int32 startFrame, Int32 endFrame)
at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask(TaskLogWriter tlw)

This is printed out right before Maya exits:

Looks like Maya is unable to pull a license so that it can render with mental ray. I guess the obvious things to check first is that the render nodes are able to pull licenses, and that you have enough to serve all your render nodes.

If licensing is set on the nodes through an environment variable, you can try rebooting the machine to ensure that Deadline refreshes its environment.

Cheers,

  • Ryan

i didn’t think maya needed a license if it’s in render mode the same as 3ds max dosen’t?

chris

For Maya, it depends on the renderer. If you’re using MayaSoftware, it doesn’t need a license. However, unlike 3dsmax, if you are using Mental Ray, it DOES require a license.

Cheers,

  • Ryan

Yeah, as soon as I confirmed the licensing method as Maya_license_method as network and the maya_license_server in the OS environment it worked fine. thnx for posting this here. Saved a whack of guess work, especially when previous build of 2013 didn’t need this when using Mental Ray.