Error: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (System.AccessViolationException)
at System.Runtime.InteropServices.Marshal.ReadInt64(IntPtr ptr, Int32 ofs)
at Python.Runtime.Runtime.PyObject_GetTypeName(IntPtr op)
at Python.Runtime.Converter.ToPrimitive(IntPtr value, Type obType, Object& result, Boolean setError)
at Python.Runtime.Converter.ToManagedValue(IntPtr value, Type obType, Object& result, Boolean setError)
at Python.Runtime.Converter.ToArray(IntPtr value, Type obType, Object& result, Boolean setError)
at Python.Runtime.Converter.ToManagedValue(IntPtr value, Type obType, Object& result, Boolean setError)
at Python.Runtime.MethodBinder.Bind(IntPtr inst, IntPtr args, IntPtr kw, MethodBase info, MethodInfo[] methodinfo)
at Python.Runtime.MethodBinder.Invoke(IntPtr inst, IntPtr args, IntPtr kw, MethodBase info, MethodInfo[] methodinfo)
at Python.Runtime.MethodObject.Invoke(IntPtr target, IntPtr args, IntPtr kw, MethodBase info)
at Python.Runtime.MethodBinding.tp_call(IntPtr ob, IntPtr args, IntPtr kw)
at Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
at Python.Runtime.Dispatcher.TrueDispatch(ArrayList args)
at Python.Runtime.Dispatcher.Dispatch(ArrayList args)
at FranticX.Processes.ManagedProcess.PostRenderTasks()
at FranticX.Processes.ManagedProcess.Execute(Boolean waitForExit)
at Deadline.Plugins.PluginWrapper.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage, AbortLevel& abortLevel)
Also, I get the following error when I try your code:
Error: TypeError : No method matches given arguments (Python.Runtime.PythonException)
File “C:\Users\cloudops\AppData\Local\Thinkbox\Deadline8\slave\cloudops1\plugins\571fa08fa72e26193080bd4d\Immerge.py”, line 442, in PostRenderTasks
RepositoryUtils.FailTasks( job, [task,] )
Sorry, I forgot we are talking 8.0 instead of Deadline 7.2 here! (self.GetCurrentTask() was sneakily added into 8.0). Yeah, so this syntax should be fine here: