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

**URL:** <https://forums.unrealengine.com/t/packaged-standalone-crash-when-creating-instanced-static-mesh-with-500-instances-ue-4-26-1/478791>\
**Category:** Getting Started & Setup\
**Tags:** error, Hierarchical-Instanced-Static-Mesh, d3d11, unreal-engine, crash, UE4-26, question\
**Created:** [February 14, 2021, 4:51pm UTC](https://forums.unrealengine.com/t/packaged-standalone-crash-when-creating-instanced-static-mesh-with-500-instances-ue-4-26-1/478791 "2021-02-14T16:51:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PavelSkellig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PavelSkellig](https://forums.unrealengine.com/u/PavelSkellig)\
**Post date:** [February 14, 2021, 4:51pm UTC](https://forums.unrealengine.com/t/packaged-standalone-crash-when-creating-instanced-static-mesh-with-500-instances-ue-4-26-1/478791/1 "2021-02-14T16:51:58Z")

</div>

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

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.

---

<div class="post-metadata">

**Author:** ![YAMI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YAMI](https://forums.unrealengine.com/u/YAMI)\
**Post date:** [May 3, 2021, 3:44pm UTC](https://forums.unrealengine.com/t/packaged-standalone-crash-when-creating-instanced-static-mesh-with-500-instances-ue-4-26-1/478791/2 "2021-05-03T15:44:30Z")

</div>

having the same problem, any fix for this?

---

<div class="post-metadata">

**Author:** ![Dejan33](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dejan33/32/1194514_2.png) [@Dejan33](https://forums.unrealengine.com/u/Dejan33)\
**Post date:** [May 3, 2021, 7:11pm UTC](https://forums.unrealengine.com/t/packaged-standalone-crash-when-creating-instanced-static-mesh-with-500-instances-ue-4-26-1/478791/3 "2021-05-03T19:11:10Z")

</div>

Send a crash report and upvote this thread. Hopefully they will fix this for 4.26.3.

---

<div class="post-metadata">

**Author:** ![Dejan33](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dejan33/32/1194514_2.png) [@Dejan33](https://forums.unrealengine.com/u/Dejan33)\
**Post date:** [May 3, 2021, 7:25pm UTC](https://forums.unrealengine.com/t/packaged-standalone-crash-when-creating-instanced-static-mesh-with-500-instances-ue-4-26-1/478791/4 "2021-05-03T19:25:07Z")

</div>

Btw, this happened on a newly installed windows, UE 4.26.2 and the latest (recommended )ATI drivers.

---

<div class="post-metadata">

**Author:** ![PavelSkellig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PavelSkellig](https://forums.unrealengine.com/u/PavelSkellig)\
**Post date:** [May 4, 2021, 9:53am UTC](https://forums.unrealengine.com/t/packaged-standalone-crash-when-creating-instanced-static-mesh-with-500-instances-ue-4-26-1/478791/5 "2021-05-04T09:53:47Z")

</div>

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-109511)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

---

<div class="post-metadata">

**Author:** ![OneNot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/onenot/32/746410_2.png) [@OneNot](https://forums.unrealengine.com/u/OneNot)\
**Post date:** [June 17, 2021, 9:41am UTC](https://forums.unrealengine.com/t/packaged-standalone-crash-when-creating-instanced-static-mesh-with-500-instances-ue-4-26-1/478791/6 "2021-06-17T09:41:13Z")

</div>

While waiting for a fix, a temporary solution is to stagger the instance creation.  
I simply added a delay of 0s (1 frame) between every 100 instances. That seems to fix the problem. Might be a good idea anyways, especially if you’re spawning some ungodly amount of instances.

---

<div class="post-metadata">

**Author:** ![sddxccj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sddxccj](https://forums.unrealengine.com/u/sddxccj)\
**Post date:** [June 28, 2021, 4:28am UTC](https://forums.unrealengine.com/t/packaged-standalone-crash-when-creating-instanced-static-mesh-with-500-instances-ue-4-26-1/478791/7 "2021-06-28T04:28:26Z")

</div>

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-109511)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

I have tried this solution, however it does not work, temp solution is Forced to use DX12. Create a shortcut of UE4Editor.exe and at Target add -dx12 at the end of line (after the “…” -dx12).
