LoadLibrary "n" failed - Error Code -17 | IntelD3D11Context.cpp

Hi,

We are receiving an odd error on a job, which seems to render the first 4/5 frames of a chunk perfectly, then gives the error:
"LoadLibrary “n” failed!
“Return on error: error code -17, …....\MSDKDecoderWithMCDemux\Src\IntelD3D11Context.cpp 274”
“Process exit code: 0”

It then performs a check for all files in the chunk to see if they exist, notices the last frame does not exist, then does nothing, with the chunks status still sitting at “rendering”, as if it hasn’t been told to drop the chunk, restart it, or fail it.

Output:

Error

Error: There were 1 or more errors with the output
at Deadline.Plugins.PluginWrapper.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage, AbortLevel& abortLevel)

=======================================================
Type

RenderPluginException

Stack Trace

at Deadline.Plugins.SandboxedPlugin.d(DeadlineMessage akb)
at Deadline.Plugins.SandboxedPlugin.RenderTask(String taskId, Int32 startFrame, Int32 endFrame)
at Deadline.Slaves.SlaveRenderThread.c(TaskLogWriter aai)

=======================================================
Log

2019-02-11 16:25:27: 0: Loading Job’s Plugin timeout is Disabled
2019-02-11 16:25:32: 0: Executing plugin command of type ‘Sync Files for Job’
2019-02-11 16:25:35: 0: Synchronization time for job files: 2.545 s
2019-02-11 16:25:35: 0: Synchronizing Plugin AfterEffects from \deadline\deadlinerepository10\plugins\AfterEffects took: 0 seconds
2019-02-11 16:25:35: 0: Done executing plugin command of type ‘Sync Files for Job’
2019-02-11 16:25:35: 0: Executing plugin command of type ‘Initialize Plugin’
2019-02-11 16:25:36: 0: INFO: Executing plugin script ‘C:\Users\USER\AppData\Local\Thinkbox\Deadline10\slave\SLAVE_USED\plugins\5c619bae5844d6b838ba9adc\AfterEffects.py’
2019-02-11 16:25:36: 0: INFO: Fail Without Finished Message set to: False
2019-02-11 16:25:36: 0: INFO: Fail on Existing After Effects process: False (from plugin info override)
2019-02-11 16:25:36: 0: INFO: About: After Effects Plugin for Deadline
2019-02-11 16:25:36: 0: INFO: Render Job As User disabled, running as current user ‘Render’
2019-02-11 16:25:36: 0: INFO: The job’s environment will be merged with the current environment before rendering
2019-02-11 16:25:36: 0: Done executing plugin command of type ‘Initialize Plugin’
2019-02-11 16:25:36: 0: Start Job timeout is disabled.
2019-02-11 16:25:36: 0: Task timeout is disabled.
2019-02-11 16:25:36: 0: Loaded job: NeomTourismFilm_Scenes_02_TMcD.aep - frame (5c619bae5844d6b838ba9adc)
2019-02-11 16:25:36: 0: Executing plugin command of type ‘Start Job’
2019-02-11 16:25:36: 0: INFO: Executing global asset transfer preload script ‘C\Users\USER\AppData\Local\Thinkbox\Deadline10\slave\SLAVE_USED\plugins\5c619bae5844d6b838ba9adc\GlobalAssetTransferPreLoad.py’
2019-02-11 16:25:36: 0: INFO: Looking for AWS Portal File Transfer…
2019-02-11 16:25:36: 0: INFO: Looking for File Transfer controller in C:/Program Files/Thinkbox/S3BackedCache/bin/task.py…
2019-02-11 16:25:36: 0: INFO: Could not find AWS Portal File Transfer.
2019-02-11 16:25:36: 0: INFO: AWS Portal File Transfer is not installed on the system.
2019-02-11 16:25:36: 0: Done executing plugin command of type ‘Start Job’
2019-02-11 16:25:36: 0: Plugin rendering frame(s): 1036-1040
2019-02-11 16:25:37: 0: Executing plugin command of type ‘Render Task’
2019-02-11 16:25:37: 0: INFO: Attempting to create “C:\Users\USER\Documents\ae_force_english.txt” to force After Effects to run in English
2019-02-11 16:25:37: 0: INFO: Attempting to create “C:\Users\USER\Documents\ae_render_only_node.txt” to force After Effects to run in Render Engine mode
2019-02-11 16:25:37: 0: INFO: Stdout Redirection Enabled: True
2019-02-11 16:25:37: 0: INFO: Stdout Handling Enabled: True
2019-02-11 16:25:37: 0: INFO: Popup Handling Enabled: True
2019-02-11 16:25:37: 0: INFO: QT Popup Handling Enabled: False
2019-02-11 16:25:37: 0: INFO: WindowsForms10.Window.8.app.* Popup Handling Enabled: False
2019-02-11 16:25:37: 0: INFO: Using Process Tree: True
2019-02-11 16:25:37: 0: INFO: Hiding DOS Window: True
2019-02-11 16:25:37: 0: INFO: Creating New Console: False
2019-02-11 16:25:37: 0: INFO: Running as user: Render
2019-02-11 16:25:37: 0: INFO: Executable: “C:\Program Files\Adobe\Adobe After Effects CC 2018\Support Filis\aerender.exe”
2019-02-11 16:25:37: 0: INFO: Rendering to network drive
2019-02-11 16:25:37: 0: INFO: Validating the path: ‘\Link\to\job’
2019-02-11 16:25:37: 0: INFO: Ignoring missing effect reference errors
2019-02-11 16:25:37: 0: INFO: Ignoring missing layer dependency errors
2019-02-11 16:25:37: 0: INFO: Argument: -project “C:\Users\USER\AppData\Local\Thinkbox\Deadline10\slave\SLAVE_USED\jobsData\5c619bae5844d6b838ba9adc\NeomTourismFilm_Scenes_02_TMcD.aep” -comp “frame” -s 1036 -e 1040 -output “\Link\to\job\frame_[#####].png” -mp -v ERRORS_AND_PROGRESS -close DO_NOT_SAVE_CHANGES -sound OFF
2019-02-11 16:25:37: 0: INFO: Full Command: “C:\Program Files\Adobe\Adobe After Effects CC 2018\Support Files\aerender.exe” -project “C:\Users\USER\AppData\Local\Thinkbox\Deadline10\slave\SLAVE_USED\jobsData\5c619bae5844d6b838ba9adc\NeomTourismFilm_Scenes_02_TMcD.aep” -comp “frame” -s 1036 -e 1040 -output “\Link\to\job\frame_[#####].png” -mp -v ERRORS_AND_PROGRESS -close DO_NOT_SAVE_CHANGES -sound OFF
2019-02-11 16:25:37: 0: INFO: Startup Directory: “C:\Program Files\Adobe\Adobe After Effects CC 2018\Support Files”
2019-02-11 16:25:37: 0: INFO: Process Priority: BelowNormal
2019-02-11 16:25:37: 0: INFO: Process Affinity: default
2019-02-11 16:25:37: 0: INFO: Process is now running
2019-02-11 16:25:38: 0: INFO: Submitted from After Effects version: 15.1.2x69
2019-02-11 16:25:38: 0: STDOUT: aerender version 15.1.2x69
2019-02-11 16:26:07: 0: STDOUT: Using DXGI: Device: “Microsoft Basic Render Driver” has dedicated video RAM (MB): 0
2019-02-11 16:26:07: 0: STDOUT: has video RAM(MB): 0
2019-02-11 16:26:23: 0: STDOUT: Unable to read VR Path Registry from C:\Users\USER\AppData\Local\openvr\openvrpaths.vrpath
2019-02-11 16:29:37: 0: STDOUT: WARNING:After Effects warning: Grouped_Message_{This project contains references to missing effects. Please install the following effects to restore these references.|||This project contains a reference to a missing effect. Please install the following effect to restore this reference.###@0 missing effects.}BCC Damaged TV
2019-02-11 16:29:37: 0: STDOUT: WARNING:After Effects warning: Grouped_Message_{This project contains references to missing effects. Please install the following effects to restore these references.|||This project contains a reference to a missing effect. Please install the following effect to restore this reference.###@0 missing effects.}BCC Film Glow
2019-02-11 16:29:37: 0: STDOUT: WARNING:After Effects warning: Grouped_Message_{This project contains references to missing effects. Please install the following effects to restore these references.|||This project contains a reference to a missing effect. Please install the following effect to restore this reference.###@0 missing effects.}BCC Glow
2019-02-11 16:29:37: 0: STDOUT: WARNING:After Effects warning: Grouped_Message_{This project contains references to missing effects. Please install the following effects to restore these references.|||This project contains a reference to a missing effect. Please install the following effect to restore this reference.###@0 missing effects.}BCC Lens Blur
2019-02-11 16:29:37: 0: STDOUT: WARNING:After Effects warning: Grouped_Message_{This project contains references to missing effects. Please install the following effects to restore these references.|||This project contains a reference to a missing effect. Please install the following effect to restore this reference.###@0 missing effects.}BCC Lens Correction
2019-02-11 16:29:37: 0: STDOUT: WARNING:After Effects warning: Grouped_Message_{This project contains references to missing effects. Please install the following effects to restore these references.|||This project contains a reference to a missing effect. Please install the following effect to restore this reference.###@0 missing effects.}BCC Scanline
2019-02-11 16:29:37: 0: STDOUT: WARNING:After Effects warning: Grouped_Message_{This project contains references to missing effects. Please install the following effects to restore these references.|||This project contains a reference to a missing effect. Please install the following effect to restore this reference.###@0 missing effects.}Deep Glow
2019-02-11 16:29:37: 0: STDOUT: WARNING:After Effects warning: Grouped_Message_{This project contains references to missing effects. Please install the following effects to restore these references.|||This project contains a reference to a missing effect. Please install the following effect to restore this reference.###@0 missing effects.}Optical Flares
2019-02-11 16:29:37: 0: STDOUT: WARNING:After Effects warning: Grouped_Message_{This project contains references to missing effects. Please install the following effects to restore these references.|||This project contains a reference to a missing effect. Please install the following effect to restore this reference.###@0 missing effects.}Particular
2019-02-11 16:29:37: 0: STDOUT: WARNING:After Effects warning: Grouped_Message_{This project contains references to missing effects. Please install the following effects to restore these references.|||This project contains a reference to a missing effect. Please install the following effect to restore this reference.###@0 missing effects.}S_Rays
2019-02-11 16:29:37: 0: STDOUT: WARNING:After Effects warning: Grouped_Message_{This project contains references to missing effects. Please install the following effects to restore these references.|||This project contains a reference to a missing effect. Please install the following effect to restore this reference.###@0 missing effects.}S_TVDamage
2019-02-11 16:29:37: 0: STDOUT: WARNING:After Effects warning: Grouped_Message_{This project contains references to missing effects. Please install the following effects to restore these references.|||This project contains a reference to a missing effect. Please install the following effect to restore this reference.###@0 missing effects.}S_Tint
2019-02-11 16:29:37: 0: STDOUT: WARNING:After Effects warning: Grouped_Message_{This project contains references to missing effects. Please install the following effects to restore these references.|||This project contains a reference to a missing effect. Please install the following effect to restore this reference.###@0 missing effects.}Twixtor
2019-02-11 16:30:31: 0: STDOUT: WARNING:After Effects warning: Project has missing fonts.
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: 11/02/2019 16:33:22: Starting composition frame.
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Render Settings: Best Settings
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Quality: Best
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Resolution: Full
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Size: 1920 x 1080
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Proxy Use: Current Settings
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Effects: Current Settings
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Disk Cache: Read Only
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Color Depth: Current Settings
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Frame Blending: On for Checked Layers
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Field Render: Off
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Pulldown: Off
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Motion Blur: On for Checked Layers
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Solos: Current Settings
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Time Span: Custom
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Start: 0:00:34:15
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: End: 0:00:34:20
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Duration: 0:00:00:05
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Frame Rate: 30.00 (comp)
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Guide Layers: All Off
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Skip Existing Files: Off
2019-02-11 16:33:22: 0: STDOUT: PROGRESS:
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Output Module: PNG Sequence with Alpha
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Output To: \Link\to\job\frame_[#####].png
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Format: PNG
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Output Info: -
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Start Frame: 1035
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Output Audio: -
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Channels: RGB + Alpha
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Depth: Trillions of Colors+
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Color: Straight
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Resize: -
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Crop: -
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Final Size: 1920 x 1080
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Profile: -
2019-02-11 16:33:22: 0: STDOUT: PROGRESS: Post-Render Action: None
2019-02-11 16:33:22: 0: STDOUT: PROGRESS:
2019-02-11 16:33:38: 0: STDOUT: PROGRESS: 0:00:34:15 (1): 15 Seconds
2019-02-11 16:33:43: 0: STDOUT: PROGRESS: 0:00:34:16 (2): 6 Seconds
2019-02-11 16:33:48: 0: STDOUT: PROGRESS: 0:00:34:17 (3): 4 Seconds
2019-02-11 16:33:51: 0: STDOUT: PROGRESS: 0:00:34:18 (4): 3 Seconds
2019-02-11 16:33:52: 0: STDOUT: PROGRESS: 0:00:34:19 (5): 2 Seconds
> 2019-02-11 16:34:21: 0: STDOUT: LoadLibrary “n” failed!
> 2019-02-11 16:34:21: 0: STDOUT: LoadLibrary “n” failed!
> 2019-02-11 16:34:21: 0: STDOUT: Return on error: error code -17, …....\MSDKDecoderWithMCDemux\Src\IntelD3D11Context.cpp 274
> 2019-02-11 16:34:21: 0: INFO: Process exit code: 0
2019-02-11 16:34:21: 0: INFO: Checking for file “C:\Users\USER\Documents\ae_render_only_node.txt”
2019-02-11 16:34:21: 0: INFO: Attempting to delete “C:\Users\USER\Documents\ae_render_only_node.txt” to allow After Effects to run in the workstation environment
2019-02-11 16:34:21: 0: INFO: Checking file size of “\Link\to\job\frame_01036.png”
2019-02-11 16:34:21: 0: INFO: Checking file size of “\Link\to\job\frame_01037.png”
2019-02-11 16:34:21: 0: INFO: Checking file size of “\Link\to\job\frame_01038.png”
2019-02-11 16:34:21: 0: INFO: Checking file size of “\Link\to\job\frame_01039.png”
2019-02-11 16:34:21: 0: INFO: Checking file size of “\Link\to\job\frame_01040.png”
2019-02-11 16:34:21: 0: INFO: frame_01040.png does not exist
2019-02-11 16:34:21: 0: Done executing plugin command of type ‘Render Task’

=======================================================
Details

Date: 02/11/2019 16:33:35
Frames: 1036-1040
Elapsed Time: 00:00:09:00
Job Submit Date: 02/11/2019 16:01:36
Job User: tmcdermott
Average RAM Usage: 21998997504 (33%)
Peak RAM Usage: 32348057600 (48%)
Average CPU Usage: 100%
Peak CPU Usage: 100%
Used CPU Clocks (x10^6 cycles): 33660748
Total CPU Clocks (x10^6 cycles): 33660747

=======================================================
Slave Information

Slave Name: SLAVE_USED
Version: v10.0.23.4 Release (e0d42871d)
Operating System: Windows 10 Pro
Running As Service: No
Machine User: Render
IP Address: 192.168.1.28
MAC Address: 00:15:17:D7:32:14
CPU Architecture: x64
CPUs: 32
CPU Usage: 100%
Memory Usage: 28.2 GB / 64.0 GB (44%)
Free Disk Space: 152.698 GB
Video Card: Microsoft Basic Display Adapter

This is usually a sign that AfterEffects wants GPU acceleration and the machine (or VM instance) does not have the right drivers or underlying hardware to support that.

Either AE itself, or a 3rd party plugin is looking for GPU acceleration. In my personal experience, I had this type of problem with Trapcode depending on a GPU. Even after disabling all possible GPU options, any comp that required Trapcode components refused to render without a GPU, so we had to spin up hundreds of g3.4xlarge instances on AWS to get it working, but the same problem could show up on the local network.

In your case, the following line appears to be complaining about graphics acceleration, too

\MSDKDecoderWithMCDemux\Src\IntelD3D11Context.cpp

so it might be related.

It appears that you are running on the local network. Does the machine in question have proper GPU acceleration capabilities, drivers etc.? If not, have you disabled all GPU acceleration options in AE? Are you using any Red Giant plugins, or other 3rd party plugins that might have a dependency on the GPU?

Hi Bobo,

Thanks for this. Our local render machines here are CPU only, and don’t have a dedicated GPU inside them. We do use the Red Giant suite, so will look to render these scenes on workstations in the future.

The part that tripped us up was that fact that 4 out of the 5 frames would render correctly, with the last one hanging. Not sure if there is some sort of asynchronous check happening while rendering, and the LoadLibrary “N” failed error is then triggered once we are part of the way through that chunk… Looking at another job we received this error on, it happened after 3 out of 5 frames had been rendered in the chunk.

Thanks again for your reply, great to get this sort of feedback.

Andrew