Mayabatch error

Hi I got these 2 errors in Deadline 3 using the mayaBatch plugin.
The error doesn’t append all the time, but more often that I would like it too :slight_smile:

There is one that fails in the RenderTasks() function and the other in the EndJob() function

[code]Error Message
Exception during render: An error occurred in RenderTasks(): Source array was not long enough. Check srcIndex and length, and the array’s lower bounds. (System.ArgumentException) (Deadline.Plugins.RenderPluginException)
at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage)

Slave Log
sofa_pSphere880
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere881
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere882
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere883
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere884
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere885
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere886
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere887
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere888
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere889
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere890
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere891
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere892
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere893
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere894
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere895
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere896
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere897
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere898
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere899
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere900
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere901
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: George_V_sofa_pSphere902
Scheduler Thread - Render Thread 0 threw an error:
Scheduler Thread - Exception during render: An error occurred in RenderTasks(): Source array was not long enough. Check srcIndex and length, and the array’s lower bounds. (System.ArgumentException) (Deadline.Plugins.RenderPluginException)

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]

And this one too

[code]Error Message
Exception during render: An error occurred in RenderTasks(): Source array was not long enough. Check srcIndex and length, and the array’s lower bounds. (System.ArgumentException) (Deadline.Plugins.RenderPluginException)
at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage)

Slave Log
ty_interieur_v01a:polySurface13212
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: COM_CAS_POV_07_GOLF_bty_interieur_v01a:polySurface13213
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: COM_CAS_POV_07_GOLF_bty_interieur_v01a:polySurface13214
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: COM_CAS_POV_07_GOLF_bty_interieur_v01a:polySurface13215
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: COM_CAS_POV_07_GOLF_bty_interieur_v01a:polySurface13230
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: COM_CAS_POV_07_GOLF_bty_interieur_v01a:polySurface13231
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: COM_CAS_POV_07_GOLF_bty_interieur_v01a:polySurface13232
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: COM_CAS_POV_07_GOLF_bty_interieur_v01a:polySurface13233
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: COM_CAS_POV_07_GOLF_bty_interieur_v01a:polySurface13234
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: COM_CAS_POV_07_GOLF_bty_interieur_v01a:polySurface13267
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: COM_CAS_POV_07_GOLF_bty_interieur_v01a:pCube176
0: STDOUT: Prog: (Mayatomr.Scene) : DAG node: COM_CAS_POV_07_GOLF_bty_interieur_v01a:pCube178

Exception Details

RenderPluginException – An error occurred in EndJob(): Source array was not long enough. Check srcIndex and length, and the array’s lower bounds. (System.ArgumentException)

RenderPluginException.Cause: JobError (2)

Exception.Data: ( )

Exception.TargetSite: Void EndJob()

Exception.Source: deadline

Exception.StackTrace:

at Deadline.Plugins.ScriptPlugin.EndJob()

at Deadline.Plugins.Plugin.Dispose()

Scheduler Thread - Render Thread 0 threw an error:
Scheduler Thread - Exception during render: An error occurred in RenderTasks(): Source array was not long enough. Check srcIndex and length, and the array’s lower bounds. (System.ArgumentException) (Deadline.Plugins.RenderPluginException)

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]

We believe we have this problem fixed in Deadline 3.1. It’s not a MayaBatch specific problem:
viewtopic.php?f=11&t=1992&p=8318&hilit=srcIndex#p8318

Cheers,

  • Ryan