Description

Volumetric materials on a Niagara mesh renderer will not appear in the scene and cause a handled ensure. 

Steps to Reproduce
  1. Download the project from [Link Removed] (reattaching here for convenience)
  2. Open the project and open "TestMap"
  3. You'll need to fix some compilation errors in the NewNiagaraSystem (click the fix issue buttons in the stack, and disable the emitter life cycle module)
  4. Add a mesh renderer to the emitter, and disable the sprite renderer
  5. Assign a mesh to the mesh renderer and give it the volumetric material M_VolumetricFog
  6. Simulate in editor
  7. Click on the Niagara system in the world outliner

RESULT
The mesh particles will be outlined when the Niagara system is selected, but will be invisible otherwise. There will also be a handled ensure. Using the same material on a cascade mesh emitter will trigger the same ensure, even with no Niagara system present.

Callstack

[2020.07.29-15.41.02:575][314]LogOutputDevice: Error: === Handled ensure: ===
[2020.07.29-15.41.02:575][314]LogOutputDevice: Error:
[2020.07.29-15.41.02:576][314]LogOutputDevice: Error: Ensure condition failed: !BatchElement.PrimitiveUniformBuffer [Link Removed] [Line: 617]
[2020.07.29-15.41.02:576][314]LogOutputDevice: Error: FMeshBatchElement was assigned a PrimitiveUniformBuffer even though Vertex Factory TVoxelizeVolumeVS<VMode_Object_Box> fetches primitive shader data through a Scene buffer. The assigned PrimitiveUniformBuffer cannot be respected. Use PrimitiveUniformBufferResource instead for dynamic primitive data.
[2020.07.29-15.41.02:577][314]LogOutputDevice: Error: Stack:
[2020.07.29-15.41.02:577][314]LogOutputDevice: Error: [Callstack] 0x00007ffdc03fbbed UE4Editor-Renderer.dll!DispatchCheckVerify<bool,<lambda_4cd7ea74563013c9ee93a06fb37e7360> >() [E:\_Release4.25Plus\Engine\Source\Runtime\Core\Public\Misc\AssertionMacros.h:161]
[2020.07.29-15.41.02:578][314]LogOutputDevice: Error: [Callstack] 0x00007ffdc015dff1 UE4Editor-Renderer.dll!FMeshMaterialShader::GetElementShaderBindings() [E:\_Release4.25Plus\Engine\Source\Runtime\Renderer\Private\ShaderBaseClasses.cpp:617]
[2020.07.29-15.41.02:579][314]LogOutputDevice: Error: [Callstack] 0x00007ffdc0273e1c UE4Editor-Renderer.dll!FMeshPassProcessor::BuildMeshDrawCommands<TMeshProcessorShaders<FVoxelizeVolumeVS,FMeshMaterialShader,FMeshMaterialShader,FVoxelizeVolumePS,FVoxelizeVolumeGS,FMeshMaterialShader,FMeshMaterialShader>,FVoxelizeVolumeShaderElementData>() [E:\_Release4.25Plus\Engine\Source\Runtime\Renderer\Public\MeshPassProcessor.inl:119]
[2020.07.29-15.41.02:579][314]LogOutputDevice: Error: [Callstack] 0x00007ffdc02aab2f UE4Editor-Renderer.dll!FVoxelizeVolumeMeshProcessor::Process() [E:\_Release4.25Plus\Engine\Source\Runtime\Renderer\Private\VolumetricFogVoxelization.cpp:498]
[2020.07.29-15.41.02:580][314]LogOutputDevice: Error: [Callstack] 0x00007ffdc02c7a7e UE4Editor-Renderer.dll!VoxelizeVolumePrimitive() [E:\_Release4.25Plus\Engine\Source\Runtime\Renderer\Private\VolumetricFogVoxelization.cpp:571]
[2020.07.29-15.41.02:581][314]LogOutputDevice: Error: [Callstack] 0x00007ffdc028a626 UE4Editor-Renderer.dll!<lambda_647dfadca09c035b939854e4da39eef8>::operator()() [E:\_Release4.25Plus\Engine\Source\Runtime\Renderer\Private\VolumetricFogVoxelization.cpp:633]
[2020.07.29-15.41.02:581][314]LogOutputDevice: Error: [Callstack] 0x00007ffdc0274c1d UE4Editor-Renderer.dll!DrawDynamicMeshPass<<lambda_647dfadca09c035b939854e4da39eef8> >() [E:\_Release4.25Plus\Engine\Source\Runtime\Renderer\Public\MeshPassProcessor.inl:170]
[2020.07.29-15.41.02:582][314]LogOutputDevice: Error: [Callstack] 0x00007ffdc028b123 UE4Editor-Renderer.dll!<lambda_ff49754829547e0c3b76eb76a00e611d>::operator()() [E:\_Release4.25Plus\Engine\Source\Runtime\Renderer\Private\VolumetricFogVoxelization.cpp:637]
[2020.07.29-15.41.02:582][314]LogOutputDevice: Error: [Callstack] 0x00007ffdf60ab58c UE4Editor-RenderCore.dll!FRDGPass::Execute() [E:\_Release4.25Plus\Engine\Source\Runtime\RenderCore\Private\RenderGraphPass.cpp:74]
[2020.07.29-15.41.02:585][314]LogOutputDevice: Error: [Callstack] 0x00007ffdf60ae043 UE4Editor-RenderCore.dll!FRDGBuilder::ExecutePass() [E:\_Release4.25Plus\Engine\Source\Runtime\RenderCore\Private\RenderGraphBuilder.cpp:730]
[2020.07.29-15.41.02:586][314]LogOutputDevice: Error: [Callstack] 0x00007ffdf60ab38d UE4Editor-RenderCore.dll!FRDGBuilder::Execute() [E:\_Release4.25Plus\Engine\Source\Runtime\RenderCore\Private\RenderGraphBuilder.cpp:183]
[2020.07.29-15.41.02:586][314]LogOutputDevice: Error: [Callstack] 0x00007ffdc0227278 UE4Editor-Renderer.dll!FDeferredShadingSceneRenderer::ComputeVolumetricFog() [E:\_Release4.25Plus\Engine\Source\Runtime\Renderer\Private\VolumetricFog.cpp:1159]
[2020.07.29-15.41.02:587][314]LogOutputDevice: Error: [Callstack] 0x00007ffdbfb7ace7 UE4Editor-Renderer.dll!FDeferredShadingSceneRenderer::Render() [E:\_Release4.25Plus\Engine\Source\Runtime\Renderer\Private\DeferredShadingRenderer.cpp:1834]
[2020.07.29-15.41.02:588][314]LogOutputDevice: Error: [Callstack] 0x00007ffdc01060c1 UE4Editor-Renderer.dll!RenderViewFamily_RenderThread() [E:\_Release4.25Plus\Engine\Source\Runtime\Renderer\Private\SceneRendering.cpp:3581]
[2020.07.29-15.41.02:588][314]LogOutputDevice: Error: [Callstack] 0x00007ffdc00efcd8 UE4Editor-Renderer.dll!TEnqueueUniqueRenderCommandType<`FRendererModule::BeginRenderingViewFamily'::`35'::FDrawSceneCommandName,<lambda_b9a0a1a370b6fd6eeb07aaf4141a534b> >::DoTask() [E:\_Release4.25Plus\Engine\Source\Runtime\RenderCore\Public\RenderingThread.h:195]
[2020.07.29-15.41.02:589][314]LogOutputDevice: Error: [Callstack] 0x00007ffdc00f293d UE4Editor-Renderer.dll!TGraphTask<TEnqueueUniqueRenderCommandType<`FRendererModule::BeginRenderingViewFamily'::`35'::FDrawSceneCommandName,<lambda_b9a0a1a370b6fd6eeb07aaf4141a534b> > >::ExecuteTask() [E:\_Release4.25Plus\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:849]
[2020.07.29-15.41.02:590][314]LogOutputDevice: Error: [Callstack] 0x00007ffdd0698b78 UE4Editor-Core.dll!FNamedTaskThread::ProcessTasksNamedThread() [E:\_Release4.25Plus\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:692]
[2020.07.29-15.41.02:590][314]LogOutputDevice: Error: [Callstack] 0x00007ffdd0698e43 UE4Editor-Core.dll!FNamedTaskThread::ProcessTasksUntilQuit() [E:\_Release4.25Plus\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:587]
[2020.07.29-15.41.02:591][314]LogOutputDevice: Error: [Callstack] 0x00007ffdf60cf902 UE4Editor-RenderCore.dll!RenderingThreadMain() [E:\_Release4.25Plus\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:341]
[2020.07.29-15.41.02:591][314]LogOutputDevice: Error: [Callstack] 0x00007ffdf60d5444 UE4Editor-RenderCore.dll!FRenderingThread::Run() [E:\_Release4.25Plus\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:473]
[2020.07.29-15.41.02:592][314]LogOutputDevice: Error: [Callstack] 0x00007ffdd0b8e08b UE4Editor-Core.dll!FRunnableThreadWin::Run() [E:\_Release4.25Plus\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:86]
[2020.07.29-15.41.02:592][314]LogOutputDevice: Error: [Callstack] 0x00007ffdd0b85a60 UE4Editor-Core.dll!FRunnableThreadWin::GuardedRun() [E:\_Release4.25Plus\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:35]
[2020.07.29-15.41.02:593][314]LogOutputDevice: Error: [Callstack] 0x00007ffe26d37974 KERNEL32.DLL!UnknownFunction []
[2020.07.29-15.41.02:597][314]LogOutputDevice: Error: [Callstack] 0x00007ffe298fa271 ntdll.dll!UnknownFunction []
[2020.07.29-15.41.02:597][314]LogOutputDevice: Error:

Have Comments or More Details?

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

1
Login to Vote

Won't Fix
ComponentUE - Niagara
Affects Versions4.25plus
Target Fix4.27
CreatedJul 29, 2020
ResolvedJul 20, 2021
UpdatedJul 20, 2021
View Jira Issue