# Trying To Set Instanced Static Mesh Data Crashes Engine

**URL:** <https://forums.unrealengine.com/t/trying-to-set-instanced-static-mesh-data-crashes-engine/448922>\
**Category:** Blueprint\
**Tags:** unreal-engine, crash, bug-report, editor, UE4, Blueprint, question\
**Created:** [May 13, 2019, 6:36pm UTC](https://forums.unrealengine.com/t/trying-to-set-instanced-static-mesh-data-crashes-engine/448922 "2019-05-13T18:36:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OpenStringStudio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OpenStringStudio](https://forums.unrealengine.com/u/OpenStringStudio)\
**Post date:** [May 13, 2019, 6:36pm UTC](https://forums.unrealengine.com/t/trying-to-set-instanced-static-mesh-data-crashes-engine/448922/1 "2019-05-13T18:36:09Z")

</div>

Hello, I’m getting a crash and I do not know what the cause might be.

In my Blueprint-System I have created various variables which enable the user to set Static Mesh and Materials of a bunch of Instanced Static Mesh Components. The problem is that when I try to set it a second time around (for example changing the Static Mesh) the engine Crashes with this Error here:

Assertion failed: (void\*)((&ElementData[InstanceIndex]) + 1) \<= (void\*)(InstanceOriginDataPtr + CurrentSize) [File:D:\Build++UE4\Sync\Engine\Source\Runtime\Engine\Public\StaticMeshResources.h] [Line: 1259]

Does anyone know what this error might indicate. I have literally no idea why this error occurs, especially because it works without a crash the first time around, only the second time around I get this crash.

Thanks for the help!
