# HISM crashes in packaged build after upgrading to 4.16

**URL:** <https://forums.unrealengine.com/t/hism-crashes-in-packaged-build-after-upgrading-to-4-16/403390>\
**Category:** Platform & Builds\
**Tags:** Hierarchical-Instanced-Static-Mesh, unreal-engine, crash, packaged-game, bug-report, instancing, question\
**Created:** [August 31, 2017, 4:19pm UTC](https://forums.unrealengine.com/t/hism-crashes-in-packaged-build-after-upgrading-to-4-16/403390 "2017-08-31T16:19:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user37337](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user37337](https://forums.unrealengine.com/u/user37337)\
**Post date:** [August 31, 2017, 4:19pm UTC](https://forums.unrealengine.com/t/hism-crashes-in-packaged-build-after-upgrading-to-4-16/403390/1 "2017-08-31T16:19:34Z")

</div>

After upgrading from 4.15.3 to 4.16.3 I’ve got a crash when loading the map.

At first in `FAsyncBuildInstanceBuffer::DoWork()` Line 2587 `ensure(InitializedIndexCount == NumRenderInstances)` fires a debug break where `InitializedIndexCount == 1` and `NumRenderInstances == 2`. `PerInstanceSMData` contains 1 Element and `InstanceReorderTable` contains 2 Elements.

When I ignore the ensure() a little bit later in `UHierarchicalInstancedStaticMeshComponent::CreateSceneProxy()` Line 2527 the check() fails with `WriteOncePrebuiltInstanceBuffer.NumInstances() == 2` and `GetNumRenderInstances() == 1`

This crash happens in Debug, DebugGame and Development Builds and only in Packaged Builds. In Shipping it seems to work fine.

I’ve found some reports that doesn’t get an answer [here](https://answers.unrealengine.com/questions/670676/crash-after-updating-project-to-416-ensure-conditi.html) and [here](https://answers.unrealengine.com/questions/667348/416-crash-after-updating-project-ensure-condition.html).

---

<div class="post-metadata">

**Author:** ![rit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rit](https://forums.unrealengine.com/u/rit)\
**Post date:** [August 28, 2019, 3:10am UTC](https://forums.unrealengine.com/t/hism-crashes-in-packaged-build-after-upgrading-to-4-16/403390/2 "2019-08-28T03:10:38Z")

</div>

I have the same problem, also at UE4.16
