Packaged/Standalone crash when creating instanced static mesh with 500+ instances. UE 4.26.1

PavelSkellig
Sun, 14 Feb 2021 16:51:58 +0000
Getting Started & Setup

Reproduction steps:

1. Create empty project

2. Create empty actor

3. Add HierarchicalInstancedStaticMesh component

4. Add 500+ instances on beginplay

5. Launch standalone/packaged

6. 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.

7 posts - 1 participant