# 4.17 severe 'Mesh Killer' bug

**URL:** <https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403>\
**Category:** Asset Creation\
**Tags:** bug, removal, unreal-engine, question\
**Created:** [August 9, 2017, 4:08pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403 "2017-08-09T16:08:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [August 9, 2017, 4:08pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/1 "2017-08-09T16:08:04Z")

</div>

This bug erases all the mesh data if mesh is used as instance in Hierarchical Instanced Static Mesh Component. Mesh data is completely removed after editor restart.  
Repro steps:

1. Create a blueprint, place it in scene and in Construction Script add ‘Add Hierarchical Instanced Static Mesh Component’, then add at least one instance to it via ‘Add Instance World Space’.
2. In the ‘Add Hierarchical Instanced Static Mesh Component’ node, select any Static Mesh. Then compile the blueprint.
3. Restart the editor. The previously selected static mesh will be erased, with empty thumbnail and data like ‘Vertices: 0’, Size: 0 Kb’, etc.

This bug deletes all the static mesh data, along with all LOD setup, etc. There is no way to somehow restore the ‘erased’ mesh other than re-importing it again.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [August 9, 2017, 5:43pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/2 "2017-08-09T17:43:32Z")

</div>

Hi Slavq,

I followed your repro steps but I couldn’t get the same results. On project restart, the static mesh is still selected and displays properly for me.

Is this also happening in a new project as well?

---

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [August 9, 2017, 5:50pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/3 "2017-08-09T17:50:41Z")

</div>

Hello,

Yes, it happens in a new, empty project, I can reproduce it every time - is a simple demo project: [DEMO PROJECT][1]

In the MeshDestroyer blueprint, change the Static Mesh of the _Add Hierarchical Instanced Static Mesh Component_ node to e.g. StaticMesh2 mesh, compile the blueprint and save all (ctrl+shift+s). Close the project, then open it again - the StaticMesh2 mesh will have empty thumbnail, all mesh data erased:

![203983-meshkiller.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/c/e4c52080913b3c49f820ad0595de70e201ec2384.jpeg)

---

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [August 9, 2017, 7:14pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/4 "2017-08-09T19:14:27Z")

</div>

I had this bug when I migrated a Blueprint with HISM from a 4.16 project into a 4.17 one. It migrated, but on the 4.17 side it had meshes with 0 verts. And it only seemed to happen with the meshes that used LODs. The ones without were intact.

---

<div class="post-metadata">

**Author:** ![Naifu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Naifu](https://forums.unrealengine.com/u/Naifu)\
**Post date:** [August 10, 2017, 1:22pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/5 "2017-08-10T13:22:29Z")

</div>

I have also reproduced this bug several times on a new project.  
Also, you do not have to connect to Hierarchical Instanced Static Mesh Component, for mesh, to be gone (.uasset is not changed though). It just has to be set, as long as one (HISMC) is connected.  
Also if I delete all Hierarchical Instanced Static Mesh Components I get meshes back (after restart of editor).

Also to add, normal Instanced Static Mesh Components can’t use “PerInstanceRandom” (in material) if they are added by “New Instance” command NOT in Construction Script.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b563ab12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b563ab12](https://forums.unrealengine.com/u/anonymous_user_b563ab12)\
**Post date:** [August 10, 2017, 4:16pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/6 "2017-08-10T16:16:52Z")

</div>

I have the same issue. Happened quite randomly.

 ![204077-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/6/fe6c8791c4a7fa47f42a97b776cbf2d6d1e04fa4.jpeg)

---

<div class="post-metadata">

**Author:** ![IBREC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IBREC](https://forums.unrealengine.com/u/IBREC)\
**Post date:** [August 10, 2017, 4:19pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/7 "2017-08-10T16:19:45Z")

</div>

Exactly same issue , on Mac version.  
I’ve lost all the static meshes used as Hierarchical Instanced Static Mesh on blueprints.

I go back to 4.16 for me.

---

<div class="post-metadata">

**Author:** ![Speedy37](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Speedy37](https://forums.unrealengine.com/u/Speedy37)\
**Post date:** [August 10, 2017, 4:25pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/8 "2017-08-10T16:25:02Z")

</div>

Same , I was able to trace StaticMesh-\>RenderData-\>LODResources is an empty array, and I got a ton of “Failed to generate distance field data due to missing LODResource for LOD 0.” log message

---

<div class="post-metadata">

**Author:** ![Speedy37](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Speedy37](https://forums.unrealengine.com/u/Speedy37)\
**Post date:** [August 10, 2017, 5:13pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/9 "2017-08-10T17:13:52Z")

</div>

I’m tracing the root cause of the issue.

Currently I think GetStaticMesh()-\>ConditionalPostLoad(); is called too soon by UHierarchicalInstancedStaticMeshComponent because the UStaticMeshObject has flags: RF\_Public | RF\_Standalone | RF\_Transactional | RF\_NeedLoad | RF\_NeedPostLoad | RF\_NeedPostLoadSubobjects | RF\_WasLoaded (537611)

So ConditionalPostLoad consume RF\_NeedPostLoad before RF\_NeedLoad was consumed, leading in out of order loading (mesh data aren’t loaded yet)

And the check: check(!GEventDrivenLoaderEnabled || !HasAnyFlags(RF\_NeedLoad)); seam to be silent about this

---

<div class="post-metadata">

**Author:** ![Speedy37](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Speedy37](https://forums.unrealengine.com/u/Speedy37)\
**Post date:** [August 10, 2017, 5:24pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/10 "2017-08-10T17:24:10Z")

</div>

It was introduced by commit : [https://github.com/EpicGames/UnrealEngine/commit/70d3bd4b726884ccd6fe348fa45f11252aa99e04](https://github.com/EpicGames/UnrealEngine/commit/70d3bd4b726884ccd6fe348fa45f11252aa99e04)

Change 3491717 by Michael.Dupuis

```
#jira UE-35083:
The component is now the owner of the PerInstanceRenderData instead of the proxy
Add an Update path to only update specified instances range
Always call BuildTreeIfOutdated so we have a standard code path to make sure static mesh are fully loaded before trying to build the tree
Moved the Instance Buffer aysnc to the base class, as it's not related to UHierarchicalInstancedStaticMeshComponent
Expose a new property to decide if we require dynamic instance buffer
```

---

<div class="post-metadata">

**Author:** ![lotodore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lotodore](https://forums.unrealengine.com/u/lotodore)\
**Post date:** [August 10, 2017, 7:27pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/11 "2017-08-10T19:27:59Z")

</div>

I also have this issue. I’ve had this bug in the preview release [Regression: Starting level in PIE corrupts static mesh properties - Asset Creation - Unreal Engine Forums](https://answers.unrealengine.com/questions/664043/regression-starting-level-in-pie-corrupts-static-m.html) but I thought it was fixed by saving the mesh before starting. As it turns out this fix is only working temporarily.

---

<div class="post-metadata">

**Author:** ![lotodore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lotodore](https://forums.unrealengine.com/u/lotodore)\
**Post date:** [August 10, 2017, 8:01pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/12 "2017-08-10T20:01:27Z")

</div>

It seems that an issue has been created: [Unreal Engine Issues and Bug Tracker (UE-48228)](https://issues.unrealengine.com/issue/UE-48228) “Instanced Static Mesh components that are part of a Blueprint aren’t visible in Standalone Game” (these are the symptoms of this bug).

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [August 10, 2017, 8:34pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/13 "2017-08-10T20:34:28Z")

</div>

Slavq, thanks for the project and steps. I was able to reproduce this using them and created [JIRA UE-48309](https://issues.unrealengine.com/issue/UE-48309). Our developers will be investigating further.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_565e242f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_565e242f](https://forums.unrealengine.com/u/anonymous_user_565e242f)\
**Post date:** [August 17, 2017, 4:24pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/14 "2017-08-17T16:24:18Z")

</div>

Hi

Sorry for the issue, it will be fixed in 4.18 version, unfortunately as the fix imply changing public header files.

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [August 17, 2017, 7:54pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/15 "2017-08-17T19:54:31Z")

</div>

The release notes of 4.17.1 say the bug was fixed in the hotfix: [4.17.1 Hotfix Released - Announcements - Unreal Engine Forums](https://forums.unrealengine.com/showthread.php?152504-4-17-1-Hotfix-Released)  
Are the release notes incorrect?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_565e242f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_565e242f](https://forums.unrealengine.com/u/anonymous_user_565e242f)\
**Post date:** [August 17, 2017, 8:04pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/16 "2017-08-17T20:04:46Z")

</div>

No they are correct, a fix was made that fix this particular bug, but the others willl still be there. So in 4.18 an actual proper fix was made. So you can either get 4.17.1 to have this fix or wait for 4.17.2 to have the full fix regarding static mesh instancing issues.

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [August 25, 2017, 1:34pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/17 "2017-08-25T13:34:12Z")

</div>

The issue is still in 4.17.1

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_101bca4f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_101bca4f](https://forums.unrealengine.com/u/anonymous_user_101bca4f)\
**Post date:** [August 27, 2017, 12:58pm UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/18 "2017-08-27T12:58:09Z")

</div>

There are many problems with instances.  
My editor crashes very often when I add/move instance meshes.  
In 4.16 There are no such problems…

Is there any chance that there will be a hotfix in the coming days / weeks?  
It’s impossible to work, but i already upgrade to 4.17 and have many changes in it ((

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_565e242f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_565e242f](https://forums.unrealengine.com/u/anonymous_user_565e242f)\
**Post date:** [August 28, 2017, 11:12am UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/19 "2017-08-28T11:12:59Z")

</div>

Can you provide some callstack of the crash you’re getting?

Thanks

---

<div class="post-metadata">

**Author:** ![jpavlek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jpavlek](https://forums.unrealengine.com/u/jpavlek)\
**Post date:** [August 28, 2017, 11:34am UTC](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403/20 "2017-08-28T11:34:30Z")

</div>

is an example of minimal project which reproduces crash on Hierarchical Instanced Static Meshes in 4.17.1:  
[https://udn.unrealengine.com/questions/388323/417-4171-packaged-game-crash-within-uhierarchicali.html](https://udn.unrealengine.com/questions/388323/417-4171-packaged-game-crash-within-uhierarchicali.html)  
There is a callstack and everything in the description.

[Next page](https://forums.unrealengine.com/t/4-17-severe-mesh-killer-bug/401403.md?page=2)
