Description

When disabling Render in Main Pass on a Static mesh with nanite enabled a crash occurs

This issue is occurring in //UE5/Release-5.0-EarlyAccess Binary CL 16433597

Steps to Reproduce
  1. Open the Unreal Editor
  2. From the Create menu add a cube into the scene
  3. Right click the cube > Edit Cube
  4.  In the details panel enable nanite
  5. Select save in the toolbar and close the Static Mesh Editor
  6. In the main viewport select the nanite mesh
  7. Navigate to details panel > Rendering
  8. Disable Render in Main Pass

Result

Crash

Callstack
0x00007ffa9cca382b UnrealEditor-Core.dll!UnknownFunction []
[Callstack] 0x00007ffa90100d17 UnrealEditor-Renderer.dll!<lambda_595e3a1f9e83181a3b9bb6e77c7510bf>::operator()() [D:\build\++UE5\Sync\Engine\Source\Runtime\Renderer\Private\Nanite\NaniteRender.cpp:5067]
[Callstack] 0x00007ffae404eb8d UnrealEditor-RenderCore.dll!FRDGPass::Execute() [D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderGraphPass.cpp:342]
[Callstack] 0x00007ffae4052cc0 UnrealEditor-RenderCore.dll!FRDGBuilder::ExecutePass() [D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderGraphBuilder.cpp:1882]
[Callstack] 0x00007ffae404dfda UnrealEditor-RenderCore.dll!FRDGBuilder::Execute() [D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderGraphBuilder.cpp:1506]
[Callstack] 0x00007ffa90466c71 UnrealEditor-Renderer.dll!RenderViewFamily_RenderThread() [D:\build\++UE5\Sync\Engine\Source\Runtime\Renderer\Private\SceneRendering.cpp:3665]
[Callstack] 0x00007ffa90429e5f UnrealEditor-Renderer.dll!<lambda_577471886457caa4aa8da4ad323c4a22>::operator()() [D:\build\++UE5\Sync\Engine\Source\Runtime\Renderer\Private\SceneRendering.cpp:3934]
[Callstack] 0x00007ffa90445e7f UnrealEditor-Renderer.dll!TEnqueueUniqueRenderCommandType<`FRendererModule::BeginRenderingViewFamily'::`35'::FDrawSceneCommandName,<lambda_577471886457caa4aa8da4ad323c4a22> >::DoTask() [D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Public\RenderingThread.h:184]
[Callstack] 0x00007ffa904488b8 UnrealEditor-Renderer.dll!TGraphTask<TEnqueueUniqueRenderCommandType<`FRendererModule::BeginRenderingViewFamily'::`35'::FDrawSceneCommandName,<lambda_577471886457caa4aa8da4ad323c4a22> > >::ExecuteTask() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:960]
[Callstack] 0x00007ffa9c6715ea UnrealEditor-Core.dll!FNamedTaskThread::ProcessTasksNamedThread() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:730]
[Callstack] 0x00007ffa9c671a6e UnrealEditor-Core.dll!FNamedTaskThread::ProcessTasksUntilQuit() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:622]
[Callstack] 0x00007ffa9c671e01 UnrealEditor-Core.dll!FTaskGraphCompatibilityImplementation::ProcessThreadUntilRequestReturn() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:1993][Callstack] 0x00007ffae411abc3 UnrealEditor-RenderCore.dll!RenderingThreadMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:375]
[Callstack] 0x00007ffae411f694 UnrealEditor-RenderCore.dll!FRenderingThread::Run() [D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:514]
[Callstack] 0x00007ffa9cca382b UnrealEditor-Core.dll!FRunnableThreadWin::Run() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:146]
[Callstack] 0x00007ffa9cc9c610 UnrealEditor-Core.dll!FRunnableThreadWin::GuardedRun() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:76]
[Callstack] 0x00007ffb27337034 KERNEL32.DLL!UnknownFunction []
[Callstack] 0x00007ffb27702651 ntdll.dll!UnknownFunction []Crash in runnable thread RenderThread 5

Have Comments or More Details?

There's no existing public thread on this issue, so head over to AnswerHub just mention UE-117632 in the post.

2
Login to Vote

Unresolved
ComponentRendering - Features Teams
Affects Versions5.0-early access
Target Fix5.0-m7
CreatedJun 8, 2021
UpdatedJun 14, 2021