AWS Thinkbox Discussion Forums

Could not find part of a Path in Appdata\Workspaces

Hi guys,

  1. 6.2.1.40
  2. Windows
  3. 3ds Max 2015 SP2 + EXT1
  4. Kick a 3ds Max 2015 on to Deadline

We’re trying to start rendering using Max 2015, but we’ve noticed that we consistently get this error:

Error in StartJob: Could not find a part of the path ‘C:\Users\render\AppData\Local\Autodesk\3dsmax\2015 - 64bit\ENU\en-US\UI\Workspaces’. (System.IO.DirectoryNotFoundException)
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator1.CommonInit() at System.IO.FileSystemEnumerableIterator1…ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption, Boolean checkHost)
at System.IO.Directory.InternalGetFiles(String path, String searchPattern, SearchOption searchOption)
at Python.Runtime.Dispatcher.TrueDispatch(ArrayList args)
at Python.Runtime.Dispatcher.Dispatch(ArrayList args)
at Deadline.Plugins.DeadlinePlugin.StartJob()
at Deadline.Plugins.ScriptPlugin.StartJob(Job job, String& outMessage, AbortLevel& abortLevel)
at Deadline.Plugins.ScriptPlugin.StartJob(Job job, String& outMessage, AbortLevel& abortLevel)

=======================================================

If we remote into the render node and then open max manually, this error goes away and everything renders fine the next time we submit a job.

Could this potentially be related to:

viewtopic.php?f=86&t=11927&p=52458&hilit=UI\Workspaces#p52458

Thanks for the great support!
-Shem

Oops. I missed the edge case of the very first time 3dsMax is started on a fresh machine.
Easy to fix. If you open your “…/deadline_repo/plugins/3dsmax/3dsmax.py” file and search for these lines and insert the new code as per below, that should fix this issue.
I’ll get this fixed in the next Deadline release as well.

Search for:

[code] self.Plugin.LogInfo( “Workspace Directory: %s” % self.WorkspaceFolder )

        iniFiles = Directory.GetFiles( self.WorkspaceFolder, "*.ini", SearchOption.TopDirectoryOnly )[/code]

Replace with:

[code] self.Plugin.LogInfo( “Workspace Directory: %s” % self.WorkspaceFolder )

        # Create the workspace directory path if it doesn't exist.
        if( not Directory.Exists( self.WorkspaceFolder ) ):
            self.Plugin.LogInfo( "Creating workspace directory path: %s" % self.WorkspaceFolder )
            Directory.CreateDirectory( self.WorkspaceFolder )

        iniFiles = Directory.GetFiles( self.WorkspaceFolder, "*.ini", SearchOption.TopDirectoryOnly )[/code]

Rockin. Thanks dude!

Privacy | Site terms | Cookie preferences