AWS Thinkbox Discussion Forums

Draft Job Script Error

When I launch a Draft Job Script I get the following error:

=======================================================
Error
=======================================================
Error in CheckExitCode: Renderer returned non-zero error code, 1. Check the log for more information.
  at Deadline.Plugins.ScriptPlugin.RenderTasks (System.String taskId, Int32 startFrame, Int32 endFrame, System.String& outMessage, FranticX.Processes.AbortLevel& abortLevel) [0x00000] in <filename unknown>:0 

=======================================================
Log
=======================================================
0: Task timeout is disabled.
0: Loaded job: test.nk [DRAFT] (5122832b19543340664627a9)
0: INFO: Executing plugin script /Users/chris/Library/Application Support/Thinkbox/Deadline6/slave/Chris-Don-Schulzo/plugins/Draft.py
0: INFO: Found Draft python module at: '/Users/chris/Library/Application Support/Thinkbox/Deadline6/slave/Chris-Don-Schulzo/Draft/Draft.so'
0: INFO: About: Draft Plugin for Deadline
0: INFO: The current environment will be used for rendering
0: Plugin rendering frame(s): 0
0: INFO: Draft job starting...
0: INFO: Stdout Handling Enabled: True
0: INFO: Popup Handling Enabled: False
0: INFO: Using Process Tree: True
0: INFO: Hiding DOS Window: True
0: INFO: Creating New Console: False
0: INFO: Looking for bundled python at: '/Applications/Thinkbox/Deadline6/Resources/dpython'
0: INFO: Render Executable: "/Applications/Thinkbox/Deadline6/Resources/dpython"
0: INFO: Render Argument: -u "/Users/chris/Documents/Job/omstudios/mainline/deadline/DeadlineRepository6/draft/Samples/Resize/resize_image_640x480_fit_width.py" username="chris" entity="test.nk" version="" inFile="/Users/chris/Documents/Job/omstudios/testsequence/test_nuke_####.jpg" outFolder="/Users/chris/Documents/Job/omstudios/testsequence/Draft" outFile="/Users/chris/Documents/Job/omstudios/testsequence/Draft/test_nuke.mov" startFrame=1 endFrame=100 frameList="1-100" deadlineJobID=511e7a011f9bf2d50cd58d33  deadlineRepository="/Users/chris/Documents/Job/omstudios/mainline/deadline/DeadlineRepository6" 
0: INFO: Startup Directory: "/Users/chris/Library/Application Support/Thinkbox/Deadline6/slave/Chris-Don-Schulzo/Draft"
0: INFO: Process Priority: BelowNormal
0: INFO: Process Affinity: default
0: INFO: Process is now running
0: STDOUT: Draft 1.0.0.49258
0: STDOUT: Command line args:
0: STDOUT: username=chris
0: STDOUT: entity=test.nk
0: STDOUT: version=
0: STDOUT: inFile=/Users/chris/Documents/Job/omstudios/testsequence/test_nuke_####.jpg
0: STDOUT: outFolder=/Users/chris/Documents/Job/omstudios/testsequence/Draft
0: STDOUT: outFile=/Users/chris/Documents/Job/omstudios/testsequence/Draft/test_nuke.mov
0: STDOUT: startFrame=1
0: STDOUT: endFrame=100
0: STDOUT: frameList=1-100
0: STDOUT: deadlineJobID=511e7a011f9bf2d50cd58d33
0: STDOUT: deadlineRepository=/Users/chris/Documents/Job/omstudios/mainline/deadline/DeadlineRepository6
0: STDOUT: Traceback (most recent call last):
0: STDOUT:   File "/Users/chris/Documents/Job/omstudios/mainline/deadline/DeadlineRepository6/draft/Samples/Resize/resize_image_640x480_fit_width.py", line 59, in <module>
0: STDOUT:     frame.WriteToFile( currOutFile )
0: STDOUT: RuntimeError: src/file_io/magick_file_io.cpp@335.write_file - Magick: DelegateFailed `"ffmpeg" -v -1 -mbd rd -trellis 2 -cmp 2 -subcmp 2 -g 300 -i "%M%%d.jpg" "%u.%m" 2> "%Z"' @ error/delegate.c/InvokeDelegate/1065
0: INFO: Process exit code: 1


=======================================================
Type
=======================================================
RenderPluginException

=======================================================
Stack Trace
=======================================================
  at Deadline.Plugins.Plugin.RenderTask (System.String taskId, Int32 startFrame, Int32 endFrame) [0x00000] in <filename unknown>:0 
  at Deadline.Slaves.SlaveRenderThread.a (Deadline.IO.TaskLogWriter A_0) [0x00000] in <filename unknown>:0 

=======================================================
Details
=======================================================
Date: 2013/02/18 20:38:59
Frames: 0
Elapsed Time: 00:00:00:00
Slave Name: Chris-Don-Schulzo

Does someone know, what the problem might be?

Thanks,
Chris

The problem is with line 59 of your script:

frame.WriteToFile( currOutFile )

What is currOutFile set to? Given the error message, and the fact that outFile=/Users/chris/Documents/Job/omstudios/testsequence/Draft/test_nuke.mov, I suspect you’re trying to write an image to a movie format. WriteToFile is used to write images, not movies. On line 59, are you wanting to save an image or a movie, and what is the value of currOutFile?

Cheers,
Andrea

Edit: I assumed you were working with a custom version of this script. If you are using the sample script as-is, Paul’s response is correct.

Hi Chris,

The problem is that the resize_image_640x480_fit_width.py script is meant to work with an image sequence for the outFile, but in this case, it’s being used with a .mov outFile instead.

Could you please try to either:

  • Change the outFile to an image sequence, such as test_nuke_####.jpg, or
  • Use a different script, such as Draft/Samples/Encode/encode_to_MOV_MJPEG_480p.py

Okay, I see. I just wanted to check if Draft works with the licensing server and all so I just grabbed a sample script to do the magic. But I wasn’t aware of the output restriction. Also the UI automatically set the output to .mov so I thought this should work either way. But it works now. :slight_smile:

Thank you guys,
Chris

Yeah, the Deadline UI assumes you probably want to create a movie, it doesn’t analyze the Draft script at all. I’m glad things are working for you now. :slight_smile:

Cheers,
Andrea

Privacy | Site terms | Cookie preferences