# Changing Foliage Quality In Runtime Crashes 4.18 Editor/Game

**URL:** <https://forums.unrealengine.com/t/changing-foliage-quality-in-runtime-crashes-4-18-editor-game/407850>\
**Category:** World Creation\
**Tags:** Scalability, scalability-settings, unreal-engine, Foliage, question\
**Created:** [October 24, 2017, 7:01pm UTC](https://forums.unrealengine.com/t/changing-foliage-quality-in-runtime-crashes-4-18-editor-game/407850 "2017-10-24T19:01:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_67d533e8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67d533e8](https://forums.unrealengine.com/u/anonymous_user_67d533e8)\
**Post date:** [October 24, 2017, 7:01pm UTC](https://forums.unrealengine.com/t/changing-foliage-quality-in-runtime-crashes-4-18-editor-game/407850/1 "2017-10-24T19:01:42Z")

</div>

If foliage has active “Enable Density Scaling” and player changes foliage scalability setting during runtime, the editor and packaged game will crash.

Steps to reproduce:

1: Create a blank project in 4.18.0

3: Create a foliage in scene using any static mesh

4: Select foliage type static mesh and set “Enable Density Scaling”

5: Run game

6: Press Shift+F1 to get control of mouse cursor during play mode

7: Open Settings → Engine Scalability Settings → Change Foliage quality to High or lower

Changing foliage quality with blueprints also crashes a packaged project

[Example Project Download][1]

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/1/9a140fe4724198af88699b507c5063d53d9f6284.png)

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/7/7/27703cbe951fb5d40efe6593eb4acbe96421a8f0.png)

**Edit:** This is the error message from packaged project by changing foliage settings through blueprints.

Assertion failed: DestInstanceIndex != INDEX\_NONE [File:D:\Build++UE4+Release-4.18+Compile\Sync\Engine\Source\Runtime\Engine\Private\InstancedStaticMesh.cpp] [Line: 127]

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/d/36dd9d5c06f0faaf03406b2c03cdfb6a55d4bab0.png)

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/5/295f9db88019bb39a035cd655ff752e3a243f635.png)

[Download Crash Dump Attachment][6]

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3622090e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3622090e](https://forums.unrealengine.com/u/anonymous_user_3622090e)\
**Post date:** [October 25, 2017, 3:59pm UTC](https://forums.unrealengine.com/t/changing-foliage-quality-in-runtime-crashes-4-18-editor-game/407850/2 "2017-10-25T15:59:37Z")

</div>

Hello,

Thank you for reporting this issue. I was able to reproduce it and have submitted a JIRA that you can track here: [UE-51604](https://issues.unrealengine.com/issue/UE-51604).

Best,

---

<div class="post-metadata">

**Author:** ![Pinworm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pinworm](https://forums.unrealengine.com/u/Pinworm)\
**Post date:** [November 9, 2017, 1:42am UTC](https://forums.unrealengine.com/t/changing-foliage-quality-in-runtime-crashes-4-18-editor-game/407850/3 "2017-11-09T01:42:35Z")

</div>

I get this error as well. I assume it’ll be fixed sometime in 4.18 since it wasn’t in 4.17.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_67d533e8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67d533e8](https://forums.unrealengine.com/u/anonymous_user_67d533e8)\
**Post date:** [November 9, 2017, 10:31am UTC](https://forums.unrealengine.com/t/changing-foliage-quality-in-runtime-crashes-4-18-editor-game/407850/4 "2017-11-09T10:31:45Z")

</div>

The [issue is said to be fixed](https://issues.unrealengine.com/issue/UE-51604) and will be included 4.18.1 when that is released.
