Hi,
I have asked this question before but cannot find that post in the forums. When I go to my User CP and look at all my posts it only lists 1 of my previous 19 posts.
My problem is basically when using mental ray portal lights and render the scene with mr standalone on deadline, an error will occur when rendering. The scene will render fine via command line but not through deadline. It does not produce an error code that I can just add to the ignore list.
To fix this I believe I had to edit one of the python scripts but cannot remember what one and what I needed to change.
Hope you can help.
Many thanks,
Richard
Hi Richard,
I’m not sure why you can’t see your previous posts. The forums were migrated to a new server when Thinkbox was formed, but AFAIK everything made it in the transition.
Anyways, I’m sure we can figure this out again. Can you post the error report?
Cheers,
Hey Ryan,
This is the error
Exception during render: An error occurred in RenderTasks(): Shader 'mia_portal_light' must be applied to a VISIBLE rectangular area light to work correctly!
Cheers,
Rich
Hi Rich,
Could you post the full error report (as opposed to just the error itself)? That will help put it into better context. Right-click on the job and select Job Reports -> View Error Reports. Then just copy and paste the contents of the selected report into your reply.
Thanks!
Here it is.
[code]Error Message
Exception during render: An error occurred in RenderTasks(): Shader ‘mia_portal_light’ must be applied to a VISIBLE rectangular area light to work correctly!
at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage)
Slave Log
isss_fast_lmap_maya1 on instance 1:0
0: STDOUT: RCLM 0.17 progr: lightmap vertex run, shader 0x616: misss_fast_lmap_maya1 on instance 5:0
0: STDOUT: PHEN 0.5 progr: misss_lightmap_write_init: Got instance init 49504456
0: STDOUT: RCLM 0.7 progr: lightmap vertex run, shader 0x616: misss_fast_lmap_maya1 on instance 3:0
0: STDOUT: PHEN 0.5 progr: misss_lightmap_create: starts w. tags 1391 and 0
0: STDOUT: RCLM 0.3 progr: lightmap vertex run, shader 0x616: misss_fast_lmap_maya1 on instance 2:0
0: STDOUT: RCLM 0.14 progr: lightmap vertex run, shader 0x616: misss_fast_lmap_maya1 on instance 4:0
0: STDOUT: RCLM 0.2 progr: lightmap mesh run, shader 0x5a5: misss_fast_lmap_maya2 on instance 6:0
0: STDOUT: RCLM 0.2 progr: lightmap mesh run 6:0 done, 25134 triangles
0: STDOUT: RCLM 0.8 progr: lightmap vertex run, shader 0x616: misss_fast_lmap_maya1 on instance 0:0
0: STDOUT: RCLM 0.14 progr: lightmap mesh run, shader 0x616: misss_fast_lmap_maya1 on instance 4:0
0: STDOUT: RCLM 0.3 progr: lightmap mesh run, shader 0x616: misss_fast_lmap_maya1 on instance 2:0
0: STDOUT: RCLM 0.5 progr: lightmap mesh run, shader 0x616: misss_fast_lmap_maya1 on instance 1:0
0: STDOUT: RCLM 0.17 progr: lightmap mesh run, shader 0x616: misss_fast_lmap_maya1 on instance 5:0
0: STDOUT: RCLM 0.7 progr: lightmap mesh run, shader 0x616: misss_fast_lmap_maya1 on instance 3:0
0: STDOUT: RCLM 0.8 progr: lightmap mesh run, shader 0x616: misss_fast_lmap_maya1 on instance 0:0
0: STDOUT: PHEN 0.7 error: Shader ‘mia_portal_light’ must be applied to a VISIBLE rectangular area light to work correctly!
0: STDOUT: RC 0.3 progr: computing camera volumes
Scheduler Thread - Render Thread 0 threw an error:
Scheduler Thread - Exception during render: An error occurred in RenderTasks(): Shader ‘mia_portal_light’ must be applied to a VISIBLE rectangular area light to work correctly!
at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage)
Error Type
RenderPluginException
Error Stack Trace
at Deadline.Plugins.Plugin.RenderTask(Int32 startFrame, Int32 endFrame)
at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask()[/code]
Cheers,
Rich
Thanks! I think I found the original thread:
viewtopic.php?f=60&t=4099&p=16479#p16424
If it worked for you last time, hopefully it works for you this time too!
Cheers,
Ah and there is the problem.
I can’t access that post. Says I do not have authorisation. Think it was from the Deadline 4.1 beta board?
Guess that is why they do not show up in my User CP.
Possible to get access to that board again?
Many thanks,
Rich
I totally missed that it was from the beta board. You should now have access again. For reference, here’s what the proposed solution was:
======================================================
The easiest way to have deadline ignore errors without error codes is to modify the MentalRay.py file in \your\repository\plugins\MentalRay. Open the file in a text editor, and find this line near the top:
self.AddStdoutHandler("\s*[e,E]+rror[:]*(.*)",self.HandleStdoutError2)
Comment out the line by placing a ‘#’ in front of it:
#self.AddStdoutHandler("\s*[e,E]+rror[:]*(.*)",self.HandleStdoutError2)
Save the file, and try rendering again to see if that helps.
Cheers,