Reproduction steps:
-
Create empty project
-
Create empty actor
-
Add HierarchicalInstancedStaticMesh component
-
Add 500+ instances on beginplay
-
Launch standalone/packaged
-
Get Crash and Error
Fatal error:
[File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Commands.cpp]
[Line: 1431] Null SRV (resource 0 bind 0) on UB Layout
FInstancedStaticMeshVertexFactoryUniformShaderParameters
UE4Editor_D3D11RHI
UE4Editor_D3D11RHI
UE4Editor_D3D11RHI
UE4Editor_D3D11RHI
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Core
UE4Editor_Core
UE4Editor_RenderCore
UE4Editor_RenderCore
UE4Editor_Core
UE4Editor_Core
kernel32
ntdll
The error only occurs on D3D11 and UE 4.26, 12 and 4.25 works fine.
The error does not occur if instances are added manually or on a construction script.