Problems related to Work Graph Crash?

I have been trying to use work graph in ue5 recently, But I encountered some problems

This is my test code. You can reproduce it conveniently

UnrealLab/Source/UnrealLab/Graphic/WorkGraph/WorkGraphExample1Test.cpp at master · straywriter/UnrealLab

[Image Removed]

log:

[2025.04.18-01.46.43:497][618]AutomationTestingLog: -----Test Run 3----

[2025.04.18-01.46.43:503][618]LogAutomationController: Sending RunTest Example1 to AD2BE53146B7AF75062AFDBAACC6CC15

[2025.04.18-01.46.43:503][618]LogAutomationController: Display: Test Started. Name={Example1} Path={UnrealLab.WorkGraph.Example1}

[2025.04.18-01.46.43:510][619]LogAutomationWorker: Received StopTests from C8FF506547D1F7A265A9FFAEEF5DCEF2

[2025.04.18-01.46.43:510][619]LogAutomationWorker: Received StartTestSession from C8FF506547D1F7A265A9FFAEEF5DCEF2

[2025.04.18-01.46.43:510][619]LogAutomationWorker: Received RunTests Example1 from C8FF506547D1F7A265A9FFAEEF5DCEF2

nvcuda64.dll=NONE

RDOC 014736: [09:46:44] nvapi_hooks.cpp( 526) - Log - Initialised nvapi, version NVidia Complete Version 1.10

RDOC 014736: [09:46:44] nvapi_hooks.cpp( 628) - Warning - NvAPI disabled: Returning NULL for nvapi_QueryInterface(NvAPI_GetPhysicalGPUFromGPUID)

nvdxgdmal64.dll=NONE

nvrtum64.dll=NONE

RDOC 014736: [09:46:45] d3d12_serialise.cpp(2243) - Error - Unsupported state sub-object type

RDOC 014736: [09:46:45] dxil_metadata.cpp( 955) - Error - Assertion failed: ‘info2.extraInfoRef.offset == ~0U’

RDOC 014736: [09:46:45] dxil_metadata.cpp(1047) - Warning - Unhandled RDAT part 7, will not round-trip

RDOC 014736: [09:46:45] dxil_metadata.cpp(1047) - Warning - Unhandled RDAT part 9, will not round-trip

RDOC 014736: [09:46:45] dxil_metadata.cpp(1047) - Warning - Unhandled RDAT part 8, will not round-trip

RDOC 014736: [09:46:45] dxil_metadata.cpp(1047) - Warning - Unhandled RDAT part 10, will not round-trip

RDOC 014736: [09:46:45] dxil_metadata.cpp(1047) - Warning - Unhandled RDAT part 11, will not round-trip

RDOC 014736: [09:46:45] dxbc_container.cpp( 385) - Error - Unexpected DXBC shader type 15

RDOC 014736: [09:46:45] dxil_metadata.cpp( 955) - Error - Assertion failed: ‘info2.extraInfoRef.offset == ~0U’

my device:

windows 10

Using Visual Studio 2022 14.38.33145 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.38.33130) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).

cpu : AMD Ryzen Threadripper PRO 3945WX 12-Cores

gpu : nvdia 3080

and I can run D3D12HelloWorkGraphs normally

重现步骤
A link to the GitHub reproduction plugin is provided

Hi,

Thanks for reaching out. I installed the UnrealLab plugin in a blank project, but did not see a crash. Can you provide more detailed steps for how to reproduce the crash?

Thanks,

Sam

Thanks, I enabled the plugin in a blank project in UE 5.5.4 and ran the test in the Development Editor environment.

The test ran successfully without crashing on a system with a Nvidia RTX 3080 GPU. This is the console output:

[Image Removed]

Can you tell me what GPU and driver version you are running this test on? Given the crash logs, it’s possible that your GPU or driver may not have the required support to run Work Graph related tasks. D3D12 Work Graphs are supported on the NVIDIA Ampere (RTX 3000) architecture or newer, and AMD Radeon RX 7000 Series graphics cards or newer. NVIDIA requires a driver version 551.76 or later, and AMD requires an Adrenalin Edition driver with support for Mesh Nodes in Work Graphs.

Thanks,

Sam

Hi,

I ran the test again with a version of Unreal Engine built from source code. The test completed successfully. I did have to make a small code change to make the plugin compile (I renamed CVarWorkGraphTestCapture on lines 13 and 29 of NormalDispatchLibrary.cpp to CVarWorkGraphTestCapture1 because the compiler was complaining about a redefinition of the same CVar in WorkGraphExample1Test.cpp)

This is my output

[Image Removed]

The errors in the crash log you provided are coming from RenderDoc (RDOC). It’s possible that this plugin is interfering with the WorkGraph test run in some way. There also seems to be a problem with finding nvcuda64.dll, nvdxgdmal64.dll and nvrtum64.dll. Can you disable the RenderDoc plugin and try running the test again?

Sam

You’re welcome.

develop editor Start unreal editor

console start : Automation RunTest UnrealLab.WorkGraph.Example1

In what development environment did you conduct the test

You’re right. I started successfully in ue5.5 provided by epic launcher, but I failed when using the source code version of the engine. What could be the reason for this?

Is there any sdk version support required for local compilation of work graph

yes!!, You’re right.

It did succeed after closing renderdoc, but how did you debug the work graph? “pix?” Is there a debug guide for the work graph

That’s good news. For debugging, you can use either PIX (see https://devblogs.microsoft.com/pix/pix-2306-21-preview/ for some information) or Nvidia NSight, which has support for work graphs (see Feature Enhancements): https://developer.nvidia.com/nsight-graphics-2023_4

This link has a bit more info on profiling and debugging of work graphs with NSight (under “Profiling and debugging tools”): https://developer.nvidia.com/blog/work-graphs-in-direct3d-12-a-case-study-of-deferred-shading/

Best,

Sam

ok, thank you very match!