# 4.25 Crashes when trying to delete foliage

**URL:** <https://forums.unrealengine.com/t/4-25-crashes-when-trying-to-delete-foliage/143309>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [May 11, 2020, 3:02pm UTC](https://forums.unrealengine.com/t/4-25-crashes-when-trying-to-delete-foliage/143309 "2020-05-11T15:02:53Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChromaBlue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChromaBlue](https://forums.unrealengine.com/u/ChromaBlue)\
**Post date:** [May 11, 2020, 3:02pm UTC](https://forums.unrealengine.com/t/4-25-crashes-when-trying-to-delete-foliage/143309/1 "2020-05-11T15:02:53Z")

</div>

Assertion failed: (Index \>= 0) & (Index \< ArrayNum) [File:D:\Build++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 674] Array index out of bounds: 61419 from an array of size 61338

This is the error message that I get. Unreal crashes when I put foliage into the level and then try to delete them with the brush tool. Is this a bug? I’ve never encountered this in the previous versions.

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [May 11, 2020, 7:17pm UTC](https://forums.unrealengine.com/t/4-25-crashes-when-trying-to-delete-foliage/143309/2 "2020-05-11T19:17:30Z")

</div>

If you converted the project it may not be a bug but just an issue.  
I would suggest trying to make a copy of the level, delete all foliage and start placing it again.

---

<div class="post-metadata">

**Author:** ![ChromaBlue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChromaBlue](https://forums.unrealengine.com/u/ChromaBlue)\
**Post date:** [May 12, 2020, 4:46am UTC](https://forums.unrealengine.com/t/4-25-crashes-when-trying-to-delete-foliage/143309/3 "2020-05-12T04:46:36Z")

</div>

I tried that but it still crashes. I even created a completely new project and still got the same result. Deleting a few thousand foliage with the brush works fine. The crash only happens when I’m trying to delete more than a hundred thousand foliage. For some reason, if I hover the brush over a group of foliage and then delete it without moving the mouse, it won’t crash. But if I swipe the mouse while trying to delete more than one group of foliage, that’s when it crashes.

---

<div class="post-metadata">

**Author:** ![ChromaBlue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChromaBlue](https://forums.unrealengine.com/u/ChromaBlue)\
**Post date:** [May 13, 2020, 8:33am UTC](https://forums.unrealengine.com/t/4-25-crashes-when-trying-to-delete-foliage/143309/4 "2020-05-13T08:33:41Z")

</div>

I did some further testing and I found out that it only crashes when ray tracing is enabled. I tested this on two workstations, both of which have just one landscape, a directional light, and a foliage mesh which I got from the starter content pack.

---

<div class="post-metadata">

**Author:** ![Vesik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vesik](https://forums.unrealengine.com/u/Vesik)\
**Post date:** [May 18, 2020, 9:37am UTC](https://forums.unrealengine.com/t/4-25-crashes-when-trying-to-delete-foliage/143309/5 "2020-05-18T09:37:39Z")

</div>

Have same problem, with raytrace enabled. Every time i try to erase foliage with brush ue4 crashes

---

<div class="post-metadata">

**Author:** ![ChromaBlue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChromaBlue](https://forums.unrealengine.com/u/ChromaBlue)\
**Post date:** [May 18, 2020, 12:27pm UTC](https://forums.unrealengine.com/t/4-25-crashes-when-trying-to-delete-foliage/143309/6 "2020-05-18T12:27:26Z")

</div>

I posted this problem on the [Unreal Engine Answerhub](https://answers.unrealengine.com/questions/960334/425-crashes-when-trying-to-delete-foliage.html) but I haven’t gotten a response yet.

---

<div class="post-metadata">

**Author:** ![Jimjams17](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jimjams17](https://forums.unrealengine.com/u/Jimjams17)\
**Post date:** [May 21, 2020, 9:01am UTC](https://forums.unrealengine.com/t/4-25-crashes-when-trying-to-delete-foliage/143309/7 "2020-05-21T09:01:33Z")

</div>

Have you encountered any problems with the foliage brush size in 4.25?

---

<div class="post-metadata">

**Author:** ![ChromaBlue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChromaBlue](https://forums.unrealengine.com/u/ChromaBlue)\
**Post date:** [May 21, 2020, 5:28pm UTC](https://forums.unrealengine.com/t/4-25-crashes-when-trying-to-delete-foliage/143309/8 "2020-05-21T17:28:23Z")

</div>

If you mean increasing and decreasing the brush size, I haven’t encountered any problems with that.

---

<div class="post-metadata">

**Author:** ![SDonchev95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SDonchev95](https://forums.unrealengine.com/u/SDonchev95)\
**Post date:** [May 26, 2020, 7:46am UTC](https://forums.unrealengine.com/t/4-25-crashes-when-trying-to-delete-foliage/143309/9 "2020-05-26T07:46:46Z")

</div>

Any update on this? I’m also getting the same issue when trying to remove foliage with the brush, while ray trace is enabled…

---

<div class="post-metadata">

**Author:** ![ChromaBlue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChromaBlue](https://forums.unrealengine.com/u/ChromaBlue)\
**Post date:** [May 28, 2020, 4:42pm UTC](https://forums.unrealengine.com/t/4-25-crashes-when-trying-to-delete-foliage/143309/10 "2020-05-28T16:42:39Z")

</div>

Still getting the same problem. Is their a way to contact Epic about this?

---

<div class="post-metadata">

**Author:** ![svkarts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@svkarts](https://forums.unrealengine.com/u/svkarts)\
**Post date:** [May 31, 2020, 9:52pm UTC](https://forums.unrealengine.com/t/4-25-crashes-when-trying-to-delete-foliage/143309/11 "2020-05-31T21:52:22Z")

</div>

There is a quick way aound is to switch view mode to unlit while deleting. It doens’t crashes.
