Hi guys,
Deadline 4sp1 and nuke 5.2v3 x64 on win7prox64.
When trying to render concurrent tasks (I have four slaves, each trying to run 3 instances to maximize cpu and ram usage),
I get this Error Message:
Exception during render: An error occurred in RenderTasks(): Error in PreRenderTasks(): The process cannot access the file ‘C:\Windows\TEMP\138_07b.nk’ because it is being used by
another process.
at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage)
This happens with both the default Nuke.py plugin and the ‘non-batch one that Ryan posted’ a while ago.
Any thoughts?
Cheers!
This is a bug in the Nuke plugin. The problem is that all threads are trying to create the same temp Nuke file. This will be fixed in Deadline 4.1, but to fix the problem now, you can open \your\repository\plugins\Nuke\Nuke.py in a text editor and find this line:
self.TempSceneFilename = Path.Combine( Path.GetTempPath(), Path.GetFileName( sceneFilename ) )
Change it to this and then save the file:
self.TempSceneFilename = Path.Combine( Path.GetTempPath(), Path.GetFileNameWithoutExtension( sceneFilename ) + "_" + str(GetThreadNumber()) + Path.GetExtension( sceneFilename ) )
That should solve the problem. Let us know if this helps!
Cheers,
Hi Ryan,
As usual, your solution works like a charm
Cheers!
Dennis