.NET runtime exception with SMTD

As shown in the image, this is with 3ds Max 2020 and deadline Max is fully patched (updated 2020.3), and I’m still having this issue. It happens so intermittently that I’m not sure even where to start.

Hi @delineator

From the error “A required privilege not held by the client”, it is likely a User Account Control issue in windows. Are you trying to access a folder that is not owned by the logged in/Deadline user?

You can try running both 3ds Max and Deadline with Admin privileges to verify this.

Hmm, well, all UAC has always been disabled via the registry. I tried opening Deadline launcher and 3ds Max via right click > open as admin and got the same issue. There is only 1 user account on this machine, and it has admin privileges, no sign in or passwords. I was able to submit successfully before, but in the past week this issue has been cropping up across alot of my files.

-- Error occurred in anonymous codeblock; filename: C:\Users\SuperWorkstation\AppData\Local\Autodesk\3dsMax\2020 - 64bit\ENU\scripts\SubmitMaxToDeadline.ms; position: 377226; line: 7876
-- MAXScript MacroScript Error Exception:
-- Runtime error: .NET runtime exception: A required privilege is not held by the client
-- MAXScript callstack:
--	thread data: threadID:9844
--	------------------------------------------------------
--	[stack level: 0]
--	In CompileComparer(); filename: C:\Users\SuperWorkstation\AppData\Local\Autodesk\3dsMax\2020 - 64bit\ENU\scripts\SubmitMaxToDeadline.ms; position: 377227; line: 7876
--	member of: Rollout:SMTD_MultiRegionRendering
--		Locals:
--			compilerParams: dotNetObject:System.CodeDom.Compiler.CompilerParameters
--			compilerResults: undefined
--			csharpProvider: dotNetObject:Microsoft.CSharp.CSharpCodeProvider
--			source: "using System;
using System.Windows.Forms;
using System.Collections;
public class ListViewItemComparer : IComparer
  private int col;
  private int sort;
  public ListViewItemComparer()
      col = 0;
      sort = 1;
  public ListViewItemComparer(int column, int sorting)
    sort = sorting;
    col = column;
  public int Compare(object x, object y)
      if ((((ListViewItem)x).SubItems[col].Tag.GetType() == typeof(float))){
      float compResult = (((float)((ListViewItem)x).SubItems[col].Tag) - ((float)((ListViewItem)y).SubItems[col].Tag));
      if (compResult>0) return sort * 1; if (compResult < 0) return sort * -1; return 0;   } else 
   return ((String.Compare(((ListViewItem)x).SubItems[col].Text, ((ListViewItem)y).SubItems[col].Text))*sort);
--		Externals:
--			SMTD_MultiRegionRendering: Rollout:SMTD_MultiRegionRendering
--			owner: Rollout:SMTD_MultiRegionRendering
--	------------------------------------------------------
--	[stack level: 1]
--	called from codeblock macroScript: Deadline_SubmitMaxToDeadline; filename: C:\Users\SuperWorkstation\AppData\Local\Autodesk\3dsMax\2020 - 64bit\ENU\scripts\SubmitMaxToDeadline.ms; position: 377585; line: 7890
--		Locals:
--			result: 0
--			deadlineCommandBG: "C:\Program Files\Thinkbox\Deadline10\bin\deadlinecommandbg.exe"
--			messageTitle: "SMTD"
--			st: 39858211
--			theLocalLauncherFilename: "C:\Users\SuperWorkstation\AppData\Local\Autodesk\3dsMax\2020 - 64bit\ENU\scripts\startup\SMTD_Loader.ms"
--			localLauncherExists: true
--			theLocalLauncher: StringStream:"global SMTD_AutoLoadSuccessful = true
try(fileIn (getDir #userScripts + "/SubmitMaxToDeadline_Functions.ms") quiet:true )catch(::SMTD_AutoLoadSuccessful = false)
try(fileIn (getDir #userScripts + "/SubmitMaxToDeadline_SanityCheck_Private.ms") quiet:true )catch(::SMTD_AutoLoadSuccessful = false)
try(fileIn (getDir #userScripts + "/SubmitMaxToDeadline_SanityCheck_General.ms") quiet:true )catch(::SMTD_AutoLoadSuccessful = false)
try(fileIn (getDir #userScripts + "/SubmitMaxToDeadline_SanityCheck.ms") quiet:true )catch(::SMTD_AutoLoadSuccessful = false)
--			goOn: true
--			errormessage: undefined
--			theSubmissionInfoArray: undefined
--			resultFile: <File:C:\Users\SUPERW~1\AppData\Local\Temp\submitOutput.txt>
--			startTimeStamp: 39858260
--			VersionInfo: dotNetClass:System.Diagnostics.FileVersionInfo
--			deadlinePath: "C:\Program Files\Thinkbox\Deadline10\bin"
--			ready: true
--			MyMax: dotNetObject:System.Diagnostics.FileVersionInfo
--			submitExitCodeFile: "C:\Users\SUPERW~1\AppData\Local\Temp\submitExitCode.txt"
--			commandArguments: "-outputfiles "C:\Users\SUPERW~1\AppData\Local\Temp\submitOutput.txt" "C:\Users\SUPERW~1\AppData\Local\Temp\submitExitCode.txt" -getrepositorypath submission/3dsmax/Main"
--			resultMsg: "\\ddrepo\farm\deadline10\submission/3dsmax/Main"
--			sttotal: 39858186
--			SMTD_MainRollout: undefined
--			theSubmissionDir: "\\ddrepo\farm\deadline10\submission/3dsmax/Main"
--			submitOutputFile: "C:\Users\SUPERW~1\AppData\Local\Temp\submitOutput.txt"
--			getFileInfoDotNet: getFileInfoDotNet()
--			theFilesToLoad: #(#("RegionManipulator.ms", 1040, #userStartupScripts, false, false, true), #("TileManipulator.ms", 1042, #userStartupScripts, false, false, true), #("SubmitMaxToDeadline_Functions.ms", 1004, #userScripts, true, false, true, false), #("SubmitMaxToDeadline_SanityCheck_Private.ms", 1024, #userScripts, false, true, true), #("SubmitMaxToDeadline_SanityCheck_General.ms", 1020, #userScripts, false, true, true), #("SubmitMaxToDeadline_SanityCheck.ms", 1022, #userScripts, false, false, true), #("SubmitMaxToDeadline.ms", 1030, #userScripts, true, false, false), #("SubmitMaxToDeadline_Defaults.ini", 1101, #userScripts, false, false, false), #("SubmitMaxToDeadline_StickySettings.ini", 1102, #userScripts, false, false, false), #("SubmitMaxToDeadline_ExcludeFromSceneStorage.ini", 1103, #userScripts, false, false, false))
--			theFile: <File:C:\Users\SUPERW~1\AppData\Local\Temp\submitExitCode.txt>
--		Externals:
--			SMTD_StartupDialog_Rollout: Global:SMTD_StartupDialog_Rollout : Rollout:SMTD_StartupDialog_Rollout
--	------------------------------------------------------
--	[stack level: 2]
--	called from top-level

Quick update - I reset the preferences via this page (https://knowledge.autodesk.com/support/3ds-max/learn-explore/caas/sfdcarticles/sfdcarticles/Resetting-3ds-Max-3ds-Max-Design.html). I then opened a blank Max file and tried SMTD, same result. There is definitely something odd going on here. I’m going to try reinstalling the deadline client next

Nah, reinstalling deadline client didn’t work either. I’m on win 10 update 1909 if that makes a difference.

Can you try the troubleshooting steps provided inthe AutoDesk docs here:

You will find a section specifically for this error called:
Fix the Error: “Required privilege is not held by the client”:

bing! i think that did it. I’ll test it out a couple more times and report back, but my first job seemed to go OK

1 Like