# 4.7p5 Lightmass crashed - Assertion failed

**URL:** <https://forums.unrealengine.com/t/4-7p5-lightmass-crashed-assertion-failed/306207>\
**Category:** Rendering\
**Tags:** lighting-build, build, unreal-engine, Lighting, question\
**Created:** [February 6, 2015, 6:55pm UTC](https://forums.unrealengine.com/t/4-7p5-lightmass-crashed-assertion-failed/306207 "2015-02-06T18:55:47Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmlvl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pmlvl](https://forums.unrealengine.com/u/pmlvl)\
**Post date:** [February 6, 2015, 6:55pm UTC](https://forums.unrealengine.com/t/4-7p5-lightmass-crashed-assertion-failed/306207/1 "2015-02-06T18:55:47Z")

</div>

Assertion failed: (Index \>=0)&(Index \< ArrayNum) [File:d:\BuildFarm…\Source\Runtime\Core\Public\Containers\Array.h][Line: 679]  
Array index out of bounds: 4753 from an array of size 4753

KERNELBASE.dll!UnknownFunction…

I have put foliage to scene and delete this and now have a problem with building. How to fix this?

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [February 9, 2015, 6:59pm UTC](https://forums.unrealengine.com/t/4-7p5-lightmass-crashed-assertion-failed/306207/2 "2015-02-09T18:59:08Z")

</div>

There are a couple of things I’ll suggest to start with that may help.

Open SwarmAgent.exe (Unreal Engine \> [Engine Version] \> Engine \> Binaries \> DotNET )

When you double click this it will place an icon in your task manager. Open that. Go to the CACHE drop down in the menu bar. Click CLEAN and then VALIDATE.

Also, Go to this folder location (may be a hidden folder on your computer so you’ll need rectify that before you can see it) C: \> Users \> [Computer Name] \> AppData \> Local \> UnrealEngine \>

Delete everything in this folder. Make sure to have the editor closed otherwise some errors will be thrown that you cannot delete files.

Let me know if these work for you.

Tim

---

<div class="post-metadata">

**Author:** ![DennyR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DennyR](https://forums.unrealengine.com/u/DennyR)\
**Post date:** [February 11, 2015, 9:13pm UTC](https://forums.unrealengine.com/t/4-7p5-lightmass-crashed-assertion-failed/306207/3 "2015-02-11T21:13:35Z")

</div>

Thanks! CLEAN + VALIDATE in the SwarmAgent did the trick for me.

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [February 11, 2015, 9:20pm UTC](https://forums.unrealengine.com/t/4-7p5-lightmass-crashed-assertion-failed/306207/4 "2015-02-11T21:20:03Z")

</div>

Great! I’m glad that worked for you. 🙂

---

<div class="post-metadata">

**Author:** ![pmlvl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pmlvl](https://forums.unrealengine.com/u/pmlvl)\
**Post date:** [February 11, 2015, 10:59pm UTC](https://forums.unrealengine.com/t/4-7p5-lightmass-crashed-assertion-failed/306207/5 "2015-02-11T22:59:12Z")

</div>

Thanks works for 4.6 projects for 4.7 not work well i provide a link to project so You will have a good base to solve the problem.

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [February 13, 2015, 7:40pm UTC](https://forums.unrealengine.com/t/4-7p5-lightmass-crashed-assertion-failed/306207/6 "2015-02-13T19:40:53Z")

</div>

Would you mind posting the link again. I don’t see one.

That’s great that it fixed for 4.6. Can you try building lighting with 4.7 again and post the logs here for the build. When you open Swarm Agent go to the settings and turn on Verbose logs so it will give more information.

The logs are located in the folder I linked above to delete. Attach that once it’s run the logging.

Thanks!

Tim

---

<div class="post-metadata">

**Author:** ![wattyFathom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wattyFathom](https://forums.unrealengine.com/u/wattyFathom)\
**Post date:** [February 25, 2015, 4:50pm UTC](https://forums.unrealengine.com/t/4-7p5-lightmass-crashed-assertion-failed/306207/7 "2015-02-25T16:50:12Z")

</div>

This worked for me as well. I’ve been working in 4.6, created a 4.7 copy and the build lighting feature would not work. Closed down Swarm agent, opened it from 4.7, cleaned/validated and it works.

thanks

---

<div class="post-metadata">

**Author:** ![samdax](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@samdax](https://forums.unrealengine.com/u/samdax)\
**Post date:** [July 19, 2018, 6:10am UTC](https://forums.unrealengine.com/t/4-7p5-lightmass-crashed-assertion-failed/306207/8 "2018-07-19T06:10:52Z")

</div>

Clean and validate worked perfect for me on 4.19.2 ^^ thanks!

---

<div class="post-metadata">

**Author:** ![Katuta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Katuta](https://forums.unrealengine.com/u/Katuta)\
**Post date:** [July 31, 2018, 6:15pm UTC](https://forums.unrealengine.com/t/4-7p5-lightmass-crashed-assertion-failed/306207/9 "2018-07-31T18:15:45Z")

</div>

Opening SwarmAgent Never works, i see it running in the task manager but the application never opened, this happened with 4.17, 418, and 4.19

---

<div class="post-metadata">

**Author:** ![Rosium](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rosium](https://forums.unrealengine.com/u/Rosium)\
**Post date:** [July 31, 2018, 6:16pm UTC](https://forums.unrealengine.com/t/4-7p5-lightmass-crashed-assertion-failed/306207/10 "2018-07-31T18:16:52Z")

</div>

Opening SwarmAgent Never works, i see it running in the task manager but the application never opened, this happened with 4.17, 418, and 4.19

---

<div class="post-metadata">

**Author:** ![ZyViRu5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZyViRu5](https://forums.unrealengine.com/u/ZyViRu5)\
**Post date:** [October 8, 2018, 8:23pm UTC](https://forums.unrealengine.com/t/4-7p5-lightmass-crashed-assertion-failed/306207/11 "2018-10-08T20:23:55Z")

</div>

thanks it worked out

---

<div class="post-metadata">

**Author:** ![RobH2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/robh2/32/496965_2.png) [@RobH2](https://forums.unrealengine.com/u/RobH2)\
**Post date:** [June 13, 2019, 5:58pm UTC](https://forums.unrealengine.com/t/4-7p5-lightmass-crashed-assertion-failed/306207/12 "2019-06-13T17:58:59Z")

</div>

This solved the problem for me as well. Thank you.
