Description

Editor session crashes applying Built Lighting in a level containing Static Foliage.

Note: this crash does not occur if the Instanced Foliage Mesh has mobility set to "Movable" within the Foliage Details in the Modes Panel.

This issue is first observed in UE4/Main beginning with Dev-Editor's integration at CL 3499771.
It is therefore marked as a Regression

Steps to Reproduce
  1. Add a Static Mesh to the Foliage Panel
    • AmmoCrate_Closed was used in QAGame
  2. Paint Foliage in a default level
  3. Build lighting at any Quality

Result:
Editor crashes with a D3D error callstack:

Unknown RHI vertex element type 0

Frequency:
5/5

Callstack
Fatal error: [File:D:\Engine\UE4-Main\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11VertexDeclaration.cpp] [Line: 49] 
Unknown RHI vertex element type 0


UE4Editor_Core!FDebug::AssertFailed() [d:\engine\ue4-main\engine\source\runtime\core\private\misc\assertionmacros.cpp:349]
UE4Editor_D3D11RHI!FD3D11VertexDeclarationKey::FD3D11VertexDeclarationKey() [d:\engine\ue4-main\engine\source\runtime\windows\d3d11rhi\private\d3d11vertexdeclaration.cpp:53]
UE4Editor_D3D11RHI!FD3D11DynamicRHI::RHICreateVertexDeclaration() [d:\engine\ue4-main\engine\source\runtime\windows\d3d11rhi\private\d3d11vertexdeclaration.cpp:97]
UE4Editor_RHI!FDynamicRHI::CreateVertexDeclaration_RenderThread() [d:\engine\ue4-main\engine\source\runtime\rhi\private\rhicommandlist.cpp:1961]
UE4Editor_RHI!FRHICommandListImmediate::CreateVertexDeclaration() [d:\engine\ue4-main\engine\source\runtime\rhi\public\rhicommandlist.h:2782]
UE4Editor_ShaderCore!RHICreateVertexDeclaration() [d:\engine\ue4-main\engine\source\runtime\rhi\public\rhicommandlist.h:3599]
UE4Editor_ShaderCore!FVertexFactory::InitDeclaration() [d:\engine\ue4-main\engine\source\runtime\shadercore\private\vertexfactory.cpp:294]
UE4Editor_Engine!FInstancedStaticMeshVertexFactory::InitRHI() [d:\engine\ue4-main\engine\source\runtime\engine\private\instancedstaticmesh.cpp:449]
UE4Editor_RenderCore!FRenderResource::InitResource() [d:\engine\ue4-main\engine\source\runtime\rendercore\private\renderresource.cpp:33]
UE4Editor_RenderCore!TGraphTask<`BeginInitResource'::`2'::EURCMacro_InitCommand>::ExecuteTask() [d:\engine\ue4-main\engine\source\runtime\core\public\async\taskgraphinterfaces.h:784]
UE4Editor_Core!FNamedTaskThread::ProcessTasksNamedThread() [d:\engine\ue4-main\engine\source\runtime\core\private\async\taskgraph.cpp:650]
UE4Editor_Core!FNamedTaskThread::ProcessTasksUntilQuit() [d:\engine\ue4-main\engine\source\runtime\core\private\async\taskgraph.cpp:559]
UE4Editor_RenderCore!RenderingThreadMain() [d:\engine\ue4-main\engine\source\runtime\rendercore\private\renderingthread.cpp:328]
UE4Editor_RenderCore!FRenderingThread::Run() [d:\engine\ue4-main\engine\source\runtime\rendercore\private\renderingthread.cpp:462]
UE4Editor_Core!FRunnableThreadWin::Run() [d:\engine\ue4-main\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:76]

Have Comments or More Details?

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

1
Login to Vote

Fixed
Fix Commit3502705
Main Commit3502705
CreatedJun 20, 2017
ResolvedJun 21, 2017
UpdatedApr 27, 2018
View Jira Issue