Description

A raytracing project with hardware raytracing enabled and r.RayTracing.Geometry.GeometryCollection set to 1 triggers a crash when trying to create a geometry collection.

Steps to Reproduce
  1. Create a new project with Ray Tracing enabled
  2. In the Project Settings enable 'Use Hardware Ray Tracing when available'
  3. In the console execute 'r.RayTracing.Geometry.GeometryCollection 1'
  4. With a mesh selected in the scene change modes to Fracture Mode
  5. Select New under the Generate section then select Create Geometry Collection

Expected Results:
A Geometry Collection is created and placed in the scene

 

Actual Results:
Editor crashes with an Assertion.

UniformExpressionCache should be up to date, RenderProxy=undefined Material=VertexColorMaterial FeatureLevel=3
Callstack
 === Critical error: ===
 
 Fatal error: [File:D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp] [Line: 934] 
 Rendering thread exception:
 Assertion failed: UniformExpressionCache.CachedUniformExpressionShaderMap == Material.GetRenderingThreadShaderMap() [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Renderer\Private\ShaderBaseClasses.cpp] [Line: 353] 
 UniformExpressionCache should be up to date, RenderProxy=undefined Material=VertexColorMaterial FeatureLevel=3
 
 
 [Callstack] 0x00007ffe4cea5754 UnrealEditor-Renderer.dll!FMaterialShader::GetShaderBindings() [D:\build\++UE5\Sync\Engine\Source\Runtime\Renderer\Private\ShaderBaseClasses.cpp:353]
 [Callstack] 0x00007ffe4cea5f42 UnrealEditor-Renderer.dll!FMeshMaterialShader::GetShaderBindings() [D:\build\++UE5\Sync\Engine\Source\Runtime\Renderer\Private\ShaderBaseClasses.cpp:493]
 [Callstack] 0x00007ffe4cbecfb9 UnrealEditor-Renderer.dll!FRayTracingDynamicGeometryCollection::AddDynamicMeshBatchForGeometryUpdate() [D:\build\++UE5\Sync\Engine\Source\Runtime\Renderer\Private\RayTracing\RayTracingDynamicGeometry.cpp:257]
 [Callstack] 0x00007ffe4c2e471b UnrealEditor-Renderer.dll!FDeferredShadingSceneRenderer::GatherRayTracingWorldInstancesForView() [D:\build\++UE5\Sync\Engine\Source\Runtime\Renderer\Private\DeferredShadingRenderer.cpp:960]
 [Callstack] 0x00007ffe4c2f4a32 UnrealEditor-Renderer.dll!FDeferredShadingSceneRenderer::Render() [D:\build\++UE5\Sync\Engine\Source\Runtime\Renderer\Private\DeferredShadingRenderer.cpp:2130]
 [Callstack] 0x00007ffe4cdbff79 UnrealEditor-Renderer.dll!RenderViewFamily_RenderThread() [D:\build\++UE5\Sync\Engine\Source\Runtime\Renderer\Private\SceneRendering.cpp:4087]
 [Callstack] 0x00007ffe4cd91232 UnrealEditor-Renderer.dll!<lambda_5bef0671e2645c9d84f47c7c235eeb26>::operator()() [D:\build\++UE5\Sync\Engine\Source\Runtime\Renderer\Private\SceneRendering.cpp:4338]
 [Callstack] 0x00007ffe4cda791a UnrealEditor-Renderer.dll!TEnqueueUniqueRenderCommandType<`FRendererModule::BeginRenderingViewFamily'::`46'::FDrawSceneCommandName,<lambda_5bef0671e2645c9d84f47c7c235eeb26> >::DoTask() [D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Public\RenderingThread.h:193]
 [Callstack] 0x00007ffe4cdaf45a UnrealEditor-Renderer.dll!TGraphTask<TEnqueueUniqueRenderCommandType<`FRendererModule::BeginRenderingViewFamily'::`46'::FDrawSceneCommandName,<lambda_5bef0671e2645c9d84f47c7c235eeb26> > >::ExecuteTask() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:975]
 [Callstack] 0x00007ffe63d93a9d UnrealEditor-Core.dll!FNamedTaskThread::ProcessTasksNamedThread() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:753]
 [Callstack] 0x00007ffe63d93f3e UnrealEditor-Core.dll!FNamedTaskThread::ProcessTasksUntilQuit() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:642]
 [Callstack] 0x00007ffe63d942e1 UnrealEditor-Core.dll!FTaskGraphCompatibilityImplementation::ProcessThreadUntilRequestReturn() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:2115]
 [Callstack] 0x00007ffedb5867fb UnrealEditor-RenderCore.dll!RenderingThreadMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:380]
 [Callstack] 0x00007ffedb58a1e8 UnrealEditor-RenderCore.dll!FRenderingThread::Run() [D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:527]
 [Callstack] 0x00007ffe644683ab UnrealEditor-Core.dll!FRunnableThreadWin::Run() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:146]
 [Callstack] 0x00007ffe644613b0 UnrealEditor-Core.dll!FRunnableThreadWin::GuardedRun() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:76]
 [Callstack] 0x00007ffee4287c24 KERNEL32.DLL!UnknownFunction []
 [Callstack] 0x00007ffee58ed721 ntdll.dll!UnknownFunction []

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-150253 in the post.

0
Login to Vote

Fixed
ComponentUE - Rendering
Affects Versions5.0
Target Fix5.0.2
Fix Commit19902988
CreatedApr 26, 2022
ResolvedApr 26, 2022
UpdatedMay 6, 2022