Hi, it’s Marcin from the Corona team here. I successfully reproduced what KenC is reporting:
When opening the scene locally and running the script, it is working as expected, but I had to start 3ds Max as administrator (!) in order for it to successfully save the output file. Otherwise I was getting the below error message in 3ds Max:
I did not manage to get it working when submitting the job to Deadline. I tried with various settings, but it always fails. The rendering does start, but the output file is never saved to disk. The error I am getting when the rendering shows up on screen but does not get saved is:
2024-02-08 14:53:19: 0: INFO: >Done Scanning Renderer Paths.
2024-02-08 14:53:19: 0: Done executing plugin command of type 'Start Job'
2024-02-08 14:53:19: 0: Plugin rendering frame(s): 0
2024-02-08 14:53:19: 0: Executing plugin command of type 'Render Task'
2024-02-08 14:53:19: 0: INFO: Render Tasks called
2024-02-08 14:53:19: 0: INFO: Executing script: C:\ProgramData\Thinkbox\Deadline10\workers\xxx\jobsData\65c4dc994c0b6a91f1d82930\new.ms
2024-02-08 14:53:24: 0: WARNING: Monitored managed process 3dsmaxProcess is no longer running
2024-02-08 14:53:24: 0: Done executing plugin command of type 'Render Task'
2024-02-08 14:53:24: 0: Executing plugin command of type 'End Job'
2024-02-08 14:53:24: 0: INFO: End Job called - shutting down 3dsmax plugin
2024-02-08 14:53:24: 0: WARNING: 3ds Max was shut down before the proper shut down sequence
2024-02-08 14:53:24: 0: INFO: Disconnecting socket connection to 3dsmax
2024-02-08 14:53:24: 0: WARNING: The 3ds Max process has already quit
2024-02-08 14:53:24: 0: Done executing plugin command of type 'End Job'
2024-02-08 14:53:28: Scheduler Thread - Render Thread 0 threw a major error:
2024-02-08 14:53:28: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024-02-08 14:53:28: Exception Details
2024-02-08 14:53:28: RenderPluginException -- Error: RenderTask: Unexpected exception (Monitored managed process "3dsmaxProcess" has exited or been terminated.
2024-02-08 14:53:28: )
2024-02-08 14:53:28: at Deadline.Plugins.PluginWrapper.RenderTasks(Task task, String& outMessage, AbortLevel& abortLevel)
2024-02-08 14:53:28: RenderPluginException.Cause: JobError (2)
2024-02-08 14:53:28: RenderPluginException.Level: Major (1)
2024-02-08 14:53:28: RenderPluginException.HasSlaveLog: True
2024-02-08 14:53:28: RenderPluginException.SlaveLogFileName: C:\ProgramData\Thinkbox\Deadline10\logs\deadlineslave_renderthread_0-xxx-0000.log
2024-02-08 14:53:28: Exception.TargetSite: Deadline.Slaves.Messaging.PluginResponseMemento d(Deadline.Net.DeadlineMessage, System.Threading.CancellationToken)
2024-02-08 14:53:28: Exception.Data: ( )
2024-02-08 14:53:28: Exception.Source: deadline
2024-02-08 14:53:28: Exception.HResult: -2146233088
2024-02-08 14:53:28: Exception.StackTrace:
2024-02-08 14:53:28: at Deadline.Plugins.SandboxedPlugin.d(DeadlineMessage bgq, CancellationToken bgr)
2024-02-08 14:53:28: at Deadline.Plugins.SandboxedPlugin.RenderTask(Task task, CancellationToken cancellationToken)
2024-02-08 14:53:28: at Deadline.Slaves.SlaveRenderThread.c(TaskLogWriter ajv, CancellationToken ajw)
2024-02-08 14:53:28: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Considering the above, is it possible that everything is generally working as it should, but the output cannot be saved because of some access rights issue? In other words, could the error that appears in Deadline be the same “Image I/O Error” which appears in 3ds Max when it is not running as administrator?
Is there a way to force 3ds Max + Deadline to run as administrator when submitting jobs? I tried enabling “Run as Administrator” in Windows for Deadline Monitor and Worker and for 3ds Max, but that didn’t help.
My max 2019 and 2024 have the same rights. MAX 2019 has been running with DEADLINE 10.3 without any issues. I do believe deadline is handling popups and closing the popup may the culprit in the crash.
There isn’t as far as I know. On Linux you’d run the Worker as root, but Windows doesn’t have an equivalent ‘full power all the time’ user to make use of.
What’s happening in that script that needs admin power now? Maybe there’s a clue in the 3dsMax 2024 release notes?
Whatever is requiring Max to be run as an admin needs to be sorted out before this will work with Deadline. At least it’s not just your setup that has the problem, but this is outside our skill set.
However your mention that Deadline must be seeing and closing a popup that shows the problem reminded me that we could get proof of that with debug logging from the application plugin (the code that’s running and monitoring Max). To enable that in the Monitor under Tools → Configure Plugins → 3dsmax and enable ‘Debug Logging’. Then re-create the issue and we’ll see if any popups get dealt with.
Turn that option off afterwards, it’ll make your task reports even chattier than they already are.
@Justin_B hi, I ran some additional tests today and I can confirm what KenC is reporting:
Exactly the same scene, same script, same steps to submit to Deadline - works fine in 3ds Max 2021 (executes the script, renders, saves the output file), but fails in 3ds Max 2022 or newer. Since the issue is present in 3ds Max 2022 and newer, my thinking is that most likely it is not related to Corona or Deadline, but some change in 3ds Max itself.
Do you have any further ideas for troubleshooting? I will see if we can contact Autodesk and ask for their feedback.