Errors with Mental Ray Standalone using 3.10

Hi,

I am having an issue when trying to render using mental ray 3.10 and deadline. I am using deadline 5.2.

I have set the mental ray plugin executable to point to the correct ray.exe file, however when I render with deadline I get the following error log:

[code]=======================================================
Log Message

0: Task timeout is disabled.
0: Loaded job: 2013_standaloneTest (999_050_999_1bfd9194)
0: INFO: StartJob: initializing script plugin MentalRay
0: INFO: Any stdout that matches the regular expression “'ERROR :." will be handled as appropriate
0: INFO: Any stdout that matches the regular expression "\s
\S+\s+\S+\s+progr:\s+([\d.]+)%." will be handled as appropriate
0: INFO: Any stdout that matches the regular expression "\S+\s+\S+\s+error\s+([0-9]+)(.
)” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “\s*[e,E]+rror[:](.)” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “.Can’t connect to any SPM license server.” will be handled as appropriate
0: INFO: About: Mental Ray Plugin for Deadline
0: Plugin rendering frame(s): 1
0: INFO: Starting Mental Ray Render
0: INFO: Stdout Handling Enabled: True
0: INFO: Popup Handling Enabled: False
0: INFO: Using Process Tree: True
0: INFO: Hiding DOS Window: True
0: INFO: Creating New Console: False
0: INFO: Render Executable: “c:\program files\autodesk\mrstand3.10.1-adsk2013\bin\ray.exe”
0: INFO: Rendering to network drive…
0: INFO: Render Argument: -verbose 5 -file_dir “X:\RichardTest\mya13_beta_testing\RENDERS” -render 1 1 “X:\RichardTest\mya13_beta_testing\scenes\NY_deadline_standalone_test.mi”
0: INFO: Startup Directory: “c:\program files\autodesk\mrstand3.10.1-adsk2013\bin”
0: INFO: Process Priority: BelowNormal
0: INFO: Process Affinity: default
0: INFO: Process is now running
0: STDOUT: MSG 0.0 info : mental ray, version 3.10.1.9
0: STDOUT: MSG 0.0 info : use -copyright option to view copyright and terms of use.
0: STDOUT: MSG 0.0 info : License server:
0: STDOUT: MSG 0.0 progr: Running 24 render threads
0: STDOUT: MSG 0.0 4 MB info : version 3.10.1.9, Apr 30 2012, revision 171743
0: STDOUT: MI 0.0 6 MB progr: reading startup file “rayrc”
0: STDOUT: MI 0.0 6 MB progr: parsing file rayrc
0: STDOUT: MSG 0.0 6 MB info : no ray hosts file .ray3hosts or .rayhosts
0: STDOUT: MI 0.0 6 MB progr: parsing file X:\RichardTest\mya13_beta_testing\scenes\NY_deadline_standalone_test.mi
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library AdskShaderSDK.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/AdskShaderSDK.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library MayaShaders.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/MayaShaders.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library mayabase.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/mayabase.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library abcimport.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/abcimport.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library production.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/production.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library useribl.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/useribl.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library architectural.so (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/architectural.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library paint.so (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/paint.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library subsurface.so (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/subsurface.dll)
0: STDOUT: MI 0.0 7 MB info : wallclock 0:00:00.08 for mi scene file parsing
0: STDOUT: MI 0.0 7 MB info : current mem usage 7 MB, max mem usage 7 MB
0: STDOUT: MEM 0.2 7 MB info : physical memory detected: total 24567 MB, free 22019 MB
0: STDOUT: MEM 0.2 7 MB info : virtual memory limit set to 22019 MB
0: STDOUT: SCEN 0.2 7 MB progr: begin scene preprocessing for frame 1
0: STDOUT: SCEN 0.2 8 MB info : 3 geometry leaf instances (3 scheduled, 0 cached, 0 shared)
0: STDOUT: SCEN 0.2 8 MB info : 1 light leaf instance
0: STDOUT: SCEN 0.2 8 MB info : wallclock 0:00:00.00 for scene preprocessing
0: STDOUT: SCEN 0.2 8 MB info : current mem usage 8 MB, max mem usage 8 MB
0: STDOUT: RC 0.2 8 MB info : scene extent: (-25.50,-0.12,-25.50) : (25.50,9.09,25.50)
0: STDOUT: RC 0.2 8 MB info : option: scanline off
0: STDOUT: RC 0.2 8 MB info : option: trace on
0: STDOUT: RC 0.2 8 MB info : option: trace depth reflection 4, refraction 4, sum 8
0: STDOUT: RC 0.2 8 MB info : option: acceleration bsp2
0: STDOUT: RC 0.2 8 MB info : option: shadow on
0: STDOUT: RC 0.2 8 MB info : option: shadow maps (use) (recompute)
0: STDOUT: RC 0.2 8 MB info : option: lightmap on
0: STDOUT: RC 0.2 8 MB info : option: motion off
0: STDOUT: RC 0.2 8 MB info : option: luminance weights 0.212671 0.71516 0.072169
0: STDOUT: RC 0.2 8 MB info : option: caustic off
0: STDOUT: RC 0.2 8 MB info : option: globillum off
0: STDOUT: RC 0.2 8 MB info : option: finalgather off
0: STDOUT: RC 0.2 8 MB info : option: samples min 1.00 per pixel
0: STDOUT: RC 0.2 8 MB info : option: samples max 100.00 per pixel
0: STDOUT: RC 0.2 8 MB info : option: samples quality 0.5 0.5 0.5
0: STDOUT: RC 0.2 8 MB info : option: samples error cutoff 0 0 0
0: STDOUT: RC 0.2 8 MB info : option: jitter 1
0: STDOUT: RC 0.2 8 MB info : option: filter gauss 3 3
0: STDOUT: RC 0.2 8 MB info : option: face both
0: STDOUT: RC 0.2 8 MB info : option: hair on
0: STDOUT: RC 0.2 8 MB info : option: task size 64
0: STDOUT: RC 0.2 8 MB info : option: lens on
0: STDOUT: RC 0.2 8 MB info : option: volume on
0: STDOUT: RC 0.2 8 MB info : option: geometry on
0: STDOUT: RC 0.2 8 MB info : option: displace on
0: STDOUT: RC 0.2 8 MB info : option: premultiply on
0: STDOUT: RC 0.2 8 MB info : option: colorclip raw
0: STDOUT: RC 0.2 8 MB info : option: output on
0: STDOUT: RC 0.2 8 MB info : option: merge on
0: STDOUT: RC 0.2 8 MB info : option: texture cache local
0: STDOUT: RC 0.2 8 MB info : option: limit dynamic
0: STDOUT: RC 0.2 8 MB info : option: fb mem management cached
0: STDOUT: RC 0.2 8 MB info : camera: type filter name
0: STDOUT: RC 0.2 8 MB info : rgb_h yes reflection
0: STDOUT: RC 0.2 8 MB info : rgb_h yes diffuse
0: STDOUT: RC 0.2 8 MB info : rgb_h yes indirect
0: STDOUT: RC 0.2 8 MB info : rgba_h yes mayaColor
0: STDOUT: RC 0.2 8 MB info : camera: focal length 1.37795
0: STDOUT: RC 0.2 8 MB info : camera: aperture 1.41732
0: STDOUT: RC 0.2 8 MB info : camera: aspect 1.33333
0: STDOUT: RC 0.2 8 MB info : camera: resolution 2000 1500
0: STDOUT: RC 0.2 8 MB info : camera: clip 0.1 10000
0: STDOUT: RC 0.2 8 MB info : camera: frame 1 1 0
0: STDOUT: RC 0.2 8 MB progr: rendering
0: STDOUT: RCI 0.2 10 MB progr: begin intersection preprocessing
0: STDOUT: RCI 0.2 10 MB info : using BSP2 for eye rays
0: STDOUT: RCI 0.2 10 MB info : using BSP2 for secondary rays
0: STDOUT: RCI 0.2 12 MB progr: end intersection preprocessing
0: STDOUT: RCI 0.2 12 MB info : wallclock 0:00:00.00 for intersection prep.
0: STDOUT: RCI 0.2 12 MB info : current mem usage 12 MB, max mem usage 12 MB
0: STDOUT: PHEN 0.2 12 MB info : -----------------------------------------------
0: STDOUT: PHEN 0.2 12 MB info : mayabase version 10.8, compiled on May 24 2012.
0: STDOUT: PHEN 0.2 12 MB info : -----------------------------------------------

=======================================================
Log Details

Log Date/Time = Aug 15/12 20:02:17
Frames = 1-1

Slave Machine = Rsxxxxtmp
Slave Version = v5.2.0.47700 R

Plugin Name = MentalRay[/code]

When I just render the mi file via command line, it renders fine.

Not sure what the issue is here.

Any ideas?

Thanks,

Richard

Hi Richard,

I don’t see an error message in that log. If an error is being reported for the job in Deadline, can you send us the error report instead? You can find it by right-clicking on the job in the Monitor and selecting Job Reports -> View Error Reports.

Thanks!

  • Ryan

Hi Ryan,

Oops. Yeah copied the wrong log.

[code]=======================================================
Error Message

Exception during render: An error occurred in RenderTasks(): cutoff 0 0 0
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

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

0: Task timeout is disabled.
0: Loaded job: 2013_standaloneTest (999_050_999_1bfd9194)
0: INFO: StartJob: initializing script plugin MentalRay
0: INFO: Any stdout that matches the regular expression “'ERROR :." will be handled as appropriate
0: INFO: Any stdout that matches the regular expression "\s
\S+\s+\S+\s+progr:\s+([\d.]+)%." will be handled as appropriate
0: INFO: Any stdout that matches the regular expression "\S+\s+\S+\s+error\s+([0-9]+)(.
)” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “\s*[e,E]+rror[:](.)” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “.Can’t connect to any SPM license server.” will be handled as appropriate
0: INFO: About: Mental Ray Plugin for Deadline
0: Plugin rendering frame(s): 1
0: INFO: Starting Mental Ray Render
0: INFO: Stdout Handling Enabled: True
0: INFO: Popup Handling Enabled: False
0: INFO: Using Process Tree: True
0: INFO: Hiding DOS Window: True
0: INFO: Creating New Console: False
0: INFO: Render Executable: “c:\program files\autodesk\mrstand3.10.1-adsk2013\bin\ray.exe”
0: INFO: Rendering to network drive…
0: INFO: Render Argument: -verbose 5 -file_dir “X:\RichardTest\mya13_beta_testing\RENDERS” -render 1 1 “X:\RichardTest\mya13_beta_testing\scenes\NY_deadline_standalone_test.mi”
0: INFO: Startup Directory: “c:\program files\autodesk\mrstand3.10.1-adsk2013\bin”
0: INFO: Process Priority: BelowNormal
0: INFO: Process Affinity: default
0: INFO: Process is now running
0: STDOUT: MSG 0.0 info : mental ray, version 3.10.1.9
0: STDOUT: MSG 0.0 info : use -copyright option to view copyright and terms of use.
0: STDOUT: MSG 0.0 info : License server:
0: STDOUT: MSG 0.0 progr: Running 24 render threads
0: STDOUT: MSG 0.0 4 MB info : version 3.10.1.9, Apr 30 2012, revision 171743
0: STDOUT: MI 0.0 6 MB progr: reading startup file “rayrc”
0: STDOUT: MI 0.0 6 MB progr: parsing file rayrc
0: STDOUT: MSG 0.0 6 MB info : no ray hosts file .ray3hosts or .rayhosts
0: STDOUT: MI 0.0 6 MB progr: parsing file X:\RichardTest\mya13_beta_testing\scenes\NY_deadline_standalone_test.mi
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library AdskShaderSDK.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/AdskShaderSDK.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library MayaShaders.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/MayaShaders.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library mayabase.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/mayabase.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library abcimport.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/abcimport.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library production.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/production.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library useribl.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/useribl.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library architectural.so (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/architectural.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library paint.so (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/paint.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library subsurface.so (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/subsurface.dll)
0: STDOUT: MI 0.0 7 MB info : wallclock 0:00:00.08 for mi scene file parsing
0: STDOUT: MI 0.0 7 MB info : current mem usage 7 MB, max mem usage 7 MB
0: STDOUT: MEM 0.2 7 MB info : physical memory detected: total 24567 MB, free 22019 MB
0: STDOUT: MEM 0.2 7 MB info : virtual memory limit set to 22019 MB
0: STDOUT: SCEN 0.2 7 MB progr: begin scene preprocessing for frame 1
0: STDOUT: SCEN 0.2 8 MB info : 3 geometry leaf instances (3 scheduled, 0 cached, 0 shared)
0: STDOUT: SCEN 0.2 8 MB info : 1 light leaf instance
0: STDOUT: SCEN 0.2 8 MB info : wallclock 0:00:00.00 for scene preprocessing
0: STDOUT: SCEN 0.2 8 MB info : current mem usage 8 MB, max mem usage 8 MB
0: STDOUT: RC 0.2 8 MB info : scene extent: (-25.50,-0.12,-25.50) : (25.50,9.09,25.50)
0: STDOUT: RC 0.2 8 MB info : option: scanline off
0: STDOUT: RC 0.2 8 MB info : option: trace on
0: STDOUT: RC 0.2 8 MB info : option: trace depth reflection 4, refraction 4, sum 8
0: STDOUT: RC 0.2 8 MB info : option: acceleration bsp2
0: STDOUT: RC 0.2 8 MB info : option: shadow on
0: STDOUT: RC 0.2 8 MB info : option: shadow maps (use) (recompute)
0: STDOUT: RC 0.2 8 MB info : option: lightmap on
0: STDOUT: RC 0.2 8 MB info : option: motion off
0: STDOUT: RC 0.2 8 MB info : option: luminance weights 0.212671 0.71516 0.072169
0: STDOUT: RC 0.2 8 MB info : option: caustic off
0: STDOUT: RC 0.2 8 MB info : option: globillum off
0: STDOUT: RC 0.2 8 MB info : option: finalgather off
0: STDOUT: RC 0.2 8 MB info : option: samples min 1.00 per pixel
0: STDOUT: RC 0.2 8 MB info : option: samples max 100.00 per pixel
0: STDOUT: RC 0.2 8 MB info : option: samples quality 0.5 0.5 0.5
0: STDOUT: RC 0.2 8 MB info : option: samples error cutoff 0 0 0
0: STDOUT: RC 0.2 8 MB info : option: jitter 1
0: STDOUT: RC 0.2 8 MB info : option: filter gauss 3 3
0: STDOUT: RC 0.2 8 MB info : option: face both
0: STDOUT: RC 0.2 8 MB info : option: hair on
0: STDOUT: RC 0.2 8 MB info : option: task size 64
0: STDOUT: RC 0.2 8 MB info : option: lens on
0: STDOUT: RC 0.2 8 MB info : option: volume on
0: STDOUT: RC 0.2 8 MB info : option: geometry on
0: STDOUT: RC 0.2 8 MB info : option: displace on
0: STDOUT: RC 0.2 8 MB info : option: premultiply on
0: STDOUT: RC 0.2 8 MB info : option: colorclip raw
0: STDOUT: RC 0.2 8 MB info : option: output on
0: STDOUT: RC 0.2 8 MB info : option: merge on
0: STDOUT: RC 0.2 8 MB info : option: texture cache local
0: STDOUT: RC 0.2 8 MB info : option: limit dynamic
0: STDOUT: RC 0.2 8 MB info : option: fb mem management cached
0: STDOUT: RC 0.2 8 MB info : camera: type filter name
0: STDOUT: RC 0.2 8 MB info : rgb_h yes reflection
0: STDOUT: RC 0.2 8 MB info : rgb_h yes diffuse
0: STDOUT: RC 0.2 8 MB info : rgb_h yes indirect
0: STDOUT: RC 0.2 8 MB info : rgba_h yes mayaColor
0: STDOUT: RC 0.2 8 MB info : camera: focal length 1.37795
0: STDOUT: RC 0.2 8 MB info : camera: aperture 1.41732
0: STDOUT: RC 0.2 8 MB info : camera: aspect 1.33333
0: STDOUT: RC 0.2 8 MB info : camera: resolution 2000 1500
0: STDOUT: RC 0.2 8 MB info : camera: clip 0.1 10000
0: STDOUT: RC 0.2 8 MB info : camera: frame 1 1 0
0: STDOUT: RC 0.2 8 MB progr: rendering
0: STDOUT: RCI 0.2 10 MB progr: begin intersection preprocessing
0: STDOUT: RCI 0.2 10 MB info : using BSP2 for eye rays
0: STDOUT: RCI 0.2 10 MB info : using BSP2 for secondary rays
0: STDOUT: RCI 0.2 12 MB progr: end intersection preprocessing
0: STDOUT: RCI 0.2 12 MB info : wallclock 0:00:00.00 for intersection prep.
0: STDOUT: RCI 0.2 12 MB info : current mem usage 12 MB, max mem usage 12 MB
0: STDOUT: PHEN 0.2 12 MB info : -----------------------------------------------
0: STDOUT: PHEN 0.2 12 MB info : mayabase version 10.8, compiled on May 24 2012.
0: STDOUT: PHEN 0.2 12 MB info : -----------------------------------------------

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

RenderPluginException

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

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

I suspect that the Deadline error parser sees the token “error” in the line

0: STDOUT: RC   0.2      8 MB info : option: samples error cutoff  0 0 0

and assumes incorrectly that an error occurred! :slight_smile:

oh haha.

any way to make it ignore that?

Cheers,

Richard

Go to \your\repository\plugins\MentalRay and open MentalRay.py in a text file. Look for this line near the top:

self.AddStdoutHandler("\s*[e,E]+rror[:]*(.*)",self.HandleStdoutError2)

I think this is the one responsible for the false positive. Try commenting it out by placing a '#" in front of it, like this:

#self.AddStdoutHandler("\s*[e,E]+rror[:]*(.*)",self.HandleStdoutError2)

Save the file, and submit a new job to see if that helps. If it does, we should probably consider removing it altogether. We already have the HandleStdoutParseError function to parse out proper mental ray errors, so also searching for the word “error” arbitrarily is probably overkill.

Cheers,

  • Ryan

Hi Ryan.

I actually have that line commented out already.

Still get the problem.

Any other possibilities?

Thanks,

Richard

It must be this line then:

self.AddStdoutHandler("\S+\s+\S+\s+error\s+([0-9]+)(.*)",self.HandleStdoutParseError)

Try commenting it out, just to confirm if that’s the case. In the meantime, I’ll see if I can get a better regex that doesn’t fail on this specific line.

Cheers,

  • Ryan

hmm ok. so before i was trying to render with our custom mental ray submission script but now I am just testing it using the default mental ray submission script that comes with deadline.

Out of the box I get the same error.

So I tried commenting out the two lines but then i get a different error.

Deadline starts the render but gives an error at the end of the render. See the log.

[code]=======================================================
Error Message

Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

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

0: Task timeout is disabled.
0: Loaded job: mr_3_10_deadlineTest_UnifiedSampling (999_050_999_4ee01c99)
0: INFO: StartJob: initializing script plugin MentalRay
0: INFO: Any stdout that matches the regular expression “'ERROR :." will be handled as appropriate
0: INFO: Any stdout that matches the regular expression "\s
\S+\s+\S+\s+progr:\s+([\d.]+)%.*” will be handled as appropriate
0: INFO: Any stdout that matches the regular expression “.Can’t connect to any SPM license server.” will be handled as appropriate
0: INFO: About: Mental Ray Plugin for Deadline
0: Plugin rendering frame(s): 1
0: INFO: Starting Mental Ray Render
0: INFO: Stdout Handling Enabled: True
0: INFO: Popup Handling Enabled: False
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 Mental Ray
0: INFO: Render Executable: “c:\program files\autodesk\mrstand3.10.1-adsk2013\bin\ray.exe”
0: INFO: Rendering to network drive…
0: INFO: Render Argument: -verbose 5 -file_dir “X:\RichardTest\mya13_beta_testing\RENDERS” -render 1 1 “X:\RichardTest\mya13_beta_testing\scenes\NY_deadline_standalone_test.mi”
0: INFO: Startup Directory: “c:\program files\autodesk\mrstand3.10.1-adsk2013\bin”
0: INFO: Process Priority: BelowNormal
0: INFO: Process Affinity: default
0: INFO: Process is now running
0: STDOUT: MSG 0.0 info : mental ray, version 3.10.1.9
0: STDOUT: MSG 0.0 info : use -copyright option to view copyright and terms of use.
0: STDOUT: MSG 0.0 info : License server:
0: STDOUT: MSG 0.0 progr: Running 24 render threads
0: STDOUT: MSG 0.0 4 MB info : version 3.10.1.9, Apr 30 2012, revision 171743
0: STDOUT: MI 0.0 6 MB progr: reading startup file “rayrc”
0: STDOUT: MI 0.0 6 MB progr: parsing file rayrc
0: STDOUT: MSG 0.0 6 MB info : no ray hosts file .ray3hosts or .rayhosts
0: STDOUT: MI 0.0 6 MB progr: parsing file X:\RichardTest\mya13_beta_testing\scenes\NY_deadline_standalone_test.mi
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library AdskShaderSDK.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/AdskShaderSDK.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library MayaShaders.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/MayaShaders.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library mayabase.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/mayabase.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library abcimport.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/abcimport.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library production.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/production.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library useribl.dll (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/useribl.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library architectural.so (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/architectural.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library paint.so (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/paint.dll)
0: STDOUT: LINK 0.0 6 MB progr: loaded shader library subsurface.so (c:\program files\autodesk\mrstand3.10.1-adsk2013\bin/…/shaders/bin/subsurface.dll)
0: STDOUT: MI 0.0 7 MB info : wallclock 0:00:00.08 for mi scene file parsing
0: STDOUT: MI 0.0 7 MB info : current mem usage 7 MB, max mem usage 7 MB
0: STDOUT: MEM 0.2 7 MB info : physical memory detected: total 24567 MB, free 21954 MB
0: STDOUT: MEM 0.2 7 MB info : virtual memory limit set to 21954 MB
0: STDOUT: SCEN 0.2 7 MB progr: begin scene preprocessing for frame 1
0: STDOUT: SCEN 0.2 8 MB info : 3 geometry leaf instances (3 scheduled, 0 cached, 0 shared)
0: STDOUT: SCEN 0.2 8 MB info : 1 light leaf instance
0: STDOUT: SCEN 0.2 8 MB info : wallclock 0:00:00.00 for scene preprocessing
0: STDOUT: SCEN 0.2 8 MB info : current mem usage 8 MB, max mem usage 8 MB
0: STDOUT: RC 0.2 8 MB info : scene extent: (-25.50,-0.12,-25.50) : (25.50,9.09,25.50)
0: STDOUT: RC 0.2 8 MB info : option: scanline off
0: STDOUT: RC 0.2 8 MB info : option: trace on
0: STDOUT: RC 0.2 8 MB info : option: trace depth reflection 4, refraction 4, sum 8
0: STDOUT: RC 0.2 8 MB info : option: acceleration bsp2
0: STDOUT: RC 0.2 8 MB info : option: shadow on
0: STDOUT: RC 0.2 8 MB info : option: shadow maps (use) (recompute)
0: STDOUT: RC 0.2 8 MB info : option: lightmap on
0: STDOUT: RC 0.2 8 MB info : option: motion off
0: STDOUT: RC 0.2 8 MB info : option: luminance weights 0.212671 0.71516 0.072169
0: STDOUT: RC 0.2 8 MB info : option: caustic off
0: STDOUT: RC 0.2 8 MB info : option: globillum off
0: STDOUT: RC 0.2 8 MB info : option: finalgather off
0: STDOUT: RC 0.2 8 MB info : option: samples min 1.00 per pixel
0: STDOUT: RC 0.2 8 MB info : option: samples max 100.00 per pixel
0: STDOUT: RC 0.2 8 MB info : option: samples quality 0.5 0.5 0.5
0: STDOUT: RC 0.2 8 MB info : option: samples error cutoff 0 0 0
0: STDOUT: RC 0.2 8 MB info : option: jitter 1
0: STDOUT: RC 0.2 8 MB info : option: filter gauss 3 3
0: STDOUT: RC 0.2 8 MB info : option: face both
0: STDOUT: RC 0.2 8 MB info : option: hair on
0: STDOUT: RC 0.2 8 MB info : option: task size 64
0: STDOUT: RC 0.2 8 MB info : option: lens on
0: STDOUT: RC 0.2 8 MB info : option: volume on
0: STDOUT: RC 0.2 8 MB info : option: geometry on
0: STDOUT: RC 0.2 8 MB info : option: displace on
0: STDOUT: RC 0.2 8 MB info : option: premultiply on
0: STDOUT: RC 0.2 8 MB info : option: colorclip raw
0: STDOUT: RC 0.2 8 MB info : option: output on
0: STDOUT: RC 0.2 8 MB info : option: merge on
0: STDOUT: RC 0.2 8 MB info : option: texture cache local
0: STDOUT: RC 0.2 8 MB info : option: limit dynamic
0: STDOUT: RC 0.2 8 MB info : option: fb mem management cached
0: STDOUT: RC 0.2 8 MB info : camera: type filter name
0: STDOUT: RC 0.2 8 MB info : rgb_h yes reflection
0: STDOUT: RC 0.2 8 MB info : rgb_h yes diffuse
0: STDOUT: RC 0.2 8 MB info : rgb_h yes indirect
0: STDOUT: RC 0.2 8 MB info : rgba_h yes mayaColor
0: STDOUT: RC 0.2 8 MB info : camera: focal length 1.37795
0: STDOUT: RC 0.2 8 MB info : camera: aperture 1.41732
0: STDOUT: RC 0.2 8 MB info : camera: aspect 1.33333
0: STDOUT: RC 0.2 8 MB info : camera: resolution 2000 1500
0: STDOUT: RC 0.2 8 MB info : camera: clip 0.1 10000
0: STDOUT: RC 0.2 8 MB info : camera: frame 1 1 0
0: STDOUT: RC 0.2 8 MB progr: rendering
0: STDOUT: RCI 0.2 10 MB progr: begin intersection preprocessing
0: STDOUT: RCI 0.2 10 MB info : using BSP2 for eye rays
0: STDOUT: RCI 0.2 10 MB info : using BSP2 for secondary rays
0: STDOUT: RCI 0.2 12 MB progr: end intersection preprocessing
0: STDOUT: RCI 0.2 12 MB info : wallclock 0:00:00.00 for intersection prep.
0: STDOUT: RCI 0.2 12 MB info : current mem usage 12 MB, max mem usage 12 MB
0: STDOUT: PHEN 0.2 12 MB info : -----------------------------------------------
0: STDOUT: PHEN 0.2 12 MB info : mayabase version 10.8, compiled on May 24 2012.
0: STDOUT: PHEN 0.2 12 MB info : -----------------------------------------------
0: STDOUT: IMG 0.24 54 MB progr: opening local texture X:/RichardTest/sourceimages/mall 5_cropped_bilinear3_2k.hdr, for reading
0: STDOUT: PHEN 0.24 128 MB progr: environment texture sampler constructed.
0: STDOUT: RC 0.2 99 MB info : rendering statistics
0: STDOUT: RC 0.2 99 MB info : type number per eye ray
0: STDOUT: RC 0.2 99 MB info : eye rays 8362109 1.00
0: STDOUT: RC 0.2 99 MB info : reflection rays 3354462 0.40
0: STDOUT: RC 0.2 99 MB info : shadow rays 27555992 3.30
0: STDOUT: RC 0.2 99 MB info : environment rays 1032602 0.12
0: STDOUT: RC 0.2 99 MB progr: writing frame buffer diffuse to image file X:\RichardTest\mya13_beta_testing\RENDERS\NY_deadline_standalone_test.exr (frame 1)
0: STDOUT: RC 0.2 122 MB progr: writing frame buffer indirect to image file X:\RichardTest\mya13_beta_testing\RENDERS\NY_deadline_standalone_test.exr (frame 1)
0: STDOUT: RC 0.2 139 MB progr: writing frame buffer mayaColor to image file X:\RichardTest\mya13_beta_testing\RENDERS\NY_deadline_standalone_test.exr (frame 1)
0: STDOUT: RC 0.2 162 MB progr: writing frame buffer reflection to image file X:\RichardTest\mya13_beta_testing\RENDERS\NY_deadline_standalone_test.exr (frame 1)
0: STDOUT: RC 0.2 102 MB progr: rendering finished
0: STDOUT: RC 0.2 102 MB info : wallclock 0:00:40.37 for rendering
0: STDOUT: RC 0.2 102 MB info : current mem usage 102 MB, max mem usage 424 MB
0: STDOUT: GAPM 0.2 102 MB info : triangle count (including retessellation) : 8160
0: STDOUT: IMG 0.2 99 MB info : total for cached textures and framebuffers:
0: STDOUT: IMG 0.2 99 MB info : 39796500 pixel block accesses
0: STDOUT: IMG 0.2 99 MB info : 38015 pages loaded/saved, 0.0955235% image cache failures
0: STDOUT: IMG 0.2 99 MB info : maximal texture cache size: 313 pages, 4.840 MBytes
0: STDOUT: IMG 0.2 99 MB info : uncompressed cached texture I/O: 293.953 MB
0: STDOUT: PHEN 0.2 47 MB info : Reflection rays skipped by threshold: 90621
0: STDOUT: MSG 0.0 15 MB info : wallclock 0:00:41.33 total
0: STDOUT: MSG 0.0 15 MB info : current mem usage 15 MB, max mem usage 424 MB
0: INFO: Process exit code: 1

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

RenderPluginException

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

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

When I render via the command line there is no 0: INFO: Process exit code: 1 line at the end of the render unlike what appears in the deadline log.

Any ideas?

Thanks,

Richard

When the rendering process exits, Deadline checks the exit code, and then prints it out. Normally, applications return 0 when successful, and non-zero when there is a problem. That’s why Deadline is reporting the error. That’s odd that Mental Ray is returning 1 instead of 0, because I’m certain it always returned 0 on success before.

You could edit the Mental Ray plugin to ignore non-zero exit codes by adding this function to MentalRay.py:

	def CheckExitCode( self, exitCode ):
		pass

I’m not sure if that’s ideal though, because if there is a legitimate non-zero exit code in the future, it will be ignored. Give it a try though to see if that at least gets you through a render.

Cheers,

  • Ryan

It appears it does not like that line of code.

[code]=======================================================
Error Message

Python Syntax Error: unindent does not match any outer indentation level (Microsoft.Scripting.SyntaxErrorException)
File: C:\Users\rendernode1\AppData\Local\Thinkbox\Deadline\slave\Rsxxxxtmp\plugins\MentalRay.py
Line: 234
Column: 4[/code]

I just put the line at the end of the bottom of the file. See attachment screenshot.

Rich

It’s an indenting problem (Python is pretty fussy about that). If you can just post the MentalRay.py file, I’ll fix it for you.

Thanks!

  • Ryan

Thanks.
MentalRay.py.zip (2.83 KB)

Here you go!
MentalRay.zip (2.81 KB)

ok that works.

As you say, not sure how good an idea it is to use this workaround but at least it renders.

Will have a look at getting our custom mental ray submission script working now. Think the render error that throws up is a bit different.

Thanks,

Richard

so any render with mental ray 3.10 will yield a Process exit code: 1

Ryan the script you gave me to ignore it work fine so it renders but it really is not a perfect solution as it is now hard to see if there are errors with renders as even if there is an actual error it will still just complete.

Maybe you need to speak with Autodesk/Nvidia about it as the same thing happens when rendering with mentalray for maya in deadline.

Attached are the log files. Showing a mr 3.9 (2012) render log against a mr 3.10 (2013) render log. They both render but with 2013 it just loops just re rendering as it throws up the exit code.

Thanks,

Richard
deadline_mr2013_errorReports.zip (8.18 KB)

I wonder if that was by design or not…

Regardless, we need to deal with it. Attached is an updated Mental Ray plugin script file. I’ve tweaked the CheckExitCode function to ignore exit codes 0 and 1, and fail on anything else. I’ve also re-enabled the main error stdout parser because based on the previous error reports you’ve posted, this one wasn’t detecting the “option: samples error cutoff 0 0 0” line. When you start using this new file, if you find that line of stdout to be causing you grief again, please post the error report. I’m sure we can tweak the HandleStdoutParseError function to ignore this specific line of stdout.

Let us know how this new file works for you. With the main error stdout parser enabled again, and with CheckExitCode limited to just ignoring 0 and 1, the plugin should reliably detect errors again.

Thanks!

Thanks Ryan!

I will test it and let you know.

I believe the reason why the last error report was not detecting the “option: samples error cutoff 0 0 0” line was because that line only appears when I am using Unified Sampling. For that render I was just using normal adaptive sampling and that samples error cutoff option is not a setting for that sampler. So you might want to add a line that will ignore that specific line.

Many thanks,

Richard

Can you test with this option on, using the new plugin file I posted, and let me know if it still fails? I only want to add code to ignore it if it’s needed. :slight_smile:

Just post the error report if it does fail. This should give me all the info I need to properly ignore it.

Thanks again!

  • Ryan

That seems to render totally fine now even with unified sampling enabled.

I will let you know if any problems arise with it but seems to be fine with that test.

Thanks a lot!

Best,

Richard