# Lightmass crashing-Array index out of bounds

**URL:** <https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [January 31, 2018, 4:22pm UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824 "2018-01-31T16:22:58Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![BldgbloxVisuals](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BldgbloxVisuals](https://forums.unrealengine.com/u/BldgbloxVisuals)\
**Post date:** [January 31, 2018, 4:22pm UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824/1 "2018-01-31T16:22:58Z")

</div>

The title says it all, a scene that used to build now crashes out with this error. Anyone know a like;y culprit or where I should start looking? Thanks

\<None\> === Lightmass crashed: ===  
Assertion failed: (Index \>= 0) & (Index \< ArrayNum) [File:d:\build++ue4+release-4.18+compile\sync\engine\source\runtime\core\public\Containers/Array.h] [Line: 610]  
Array index out of bounds: 7616 from an array of size 7616

0x000000006AB73FB8 KERNELBASE.dll!UnknownFunction ]  
0x0000000039E65E54 UnrealLightmass-ApplicationCore.dll!UnknownFunction ]  
0x000000002D101A8B UnrealLightmass-Core.dll!UnknownFunction ]  
0x000000002D092E98 UnrealLightmass-Core.dll!UnknownFunction ]  
0x00000000B06AEF14 UnrealLightmass.exe!UnknownFunction ]  
0x00000000B06BE054 UnrealLightmass.exe!UnknownFunction ]  
0x00000000B06B3B8B UnrealLightmass.exe!UnknownFunction ]  
0x00000000B06C58A4 UnrealLightmass.exe!UnknownFunction ]  
0x00000000B06FD863 UnrealLightmass.exe!UnknownFunction ]  
0x00000000B07204DA UnrealLightmass.exe!UnknownFunction ]  
0x00000000B077EC25 UnrealLightmass.exe!UnknownFunction ]  
0x000000006C1B1FE4 KERNEL32.DLL!UnknownFunction ]  
0x000000006E7CEFB1 ntdll.dll!UnknownFunction ]  
0x000000006E7CEFB1 ntdll.dll!UnknownFunction ]

---

<div class="post-metadata">

**Author:** ![darthviper107](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/darthviper107/32/710746_2.png) [@darthviper107](https://forums.unrealengine.com/u/darthviper107)\
**Post date:** [January 31, 2018, 4:52pm UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824/2 "2018-01-31T16:52:08Z")

</div>

You might be running out of RAM

---

<div class="post-metadata">

**Author:** ![BldgbloxVisuals](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BldgbloxVisuals](https://forums.unrealengine.com/u/BldgbloxVisuals)\
**Post date:** [January 31, 2018, 6:10pm UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824/3 "2018-01-31T18:10:46Z")

</div>

No, I’ve been watching that in the task manager. It crashes 5 secs into doing the lighting build. I re-imported my scene through Datasmith & left out a few meshes I had added in previously by hand. That seemed to clear the light build part of things. Thanks

---

<div class="post-metadata">

**Author:** ![S-Dot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/s-dot/32/1194599_2.png) [@S-Dot](https://forums.unrealengine.com/u/S-Dot)\
**Post date:** [January 31, 2018, 10:51pm UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824/4 "2018-01-31T22:51:34Z")

</div>

When lightmass crashes always start with clearing your lightmass cache.

---

<div class="post-metadata">

**Author:** ![BldgbloxVisuals](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BldgbloxVisuals](https://forums.unrealengine.com/u/BldgbloxVisuals)\
**Post date:** [January 31, 2018, 11:27pm UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824/5 "2018-01-31T23:27:41Z")

</div>

Thanks, I will remember that for the future.

---

<div class="post-metadata">

**Author:** ![BldgbloxVisuals](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BldgbloxVisuals](https://forums.unrealengine.com/u/BldgbloxVisuals)\
**Post date:** [February 2, 2018, 4:28am UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824/6 "2018-02-02T04:28:01Z")

</div>

It happened again & clearing the swarm cache fixed it. Thanks for the heads up!

---

<div class="post-metadata">

**Author:** ![samgr55](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/samgr55/32/560909_2.png) [@samgr55](https://forums.unrealengine.com/u/samgr55)\
**Post date:** [December 29, 2018, 4:32am UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824/8 "2018-12-29T04:32:31Z")

</div>

> [@](#):
>
> When lightmass crashes always start with clearing your lightmass cache.

could you please tell me how to clear the lightmass cache ?

---

<div class="post-metadata">

**Author:** ![S-Dot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/s-dot/32/1194599_2.png) [@S-Dot](https://forums.unrealengine.com/u/S-Dot)\
**Post date:** [January 3, 2019, 9:18am UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824/10 "2019-01-03T09:18:00Z")

</div>

> [@samgr55](#):
>
> could you please tell me how to clear the lightmass cache ?

Open the swarm agent by double clicking the swarm agent icon in the task bar (…after it was building lighting. The icon might not be there if you just started the the editor). In that window there is a menu “Cache”. In that menu click on “clean” and then “validate”. Then check the “Log” tab if it was successful.

---

<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:** [December 12, 2019, 9:47pm UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824/11 "2019-12-12T21:47:10Z")

</div>

Thanks guys, this solved it for me. Clean and Validate Swarm… Ram not part of the issue. Thanks.

---

<div class="post-metadata">

**Author:** ![rasamaya](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rasamaya](https://forums.unrealengine.com/u/rasamaya)\
**Post date:** [December 28, 2019, 11:04pm UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824/12 "2019-12-28T23:04:49Z")

</div>

> [@](#):
>
> Open the swarm agent by double clicking the swarm agent icon in the task bar (…after it was building lighting. The icon might not be there if you just started the the editor). In that window there is a menu “Cache”. In that menu click on “clean” and then “validate”. Then check the “Log” tab if it was successful.

This helped me too I was using GPULightmass and came across similar error. Glad I googled this one quickly!

---

<div class="post-metadata">

**Author:** ![BercouIi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BercouIi](https://forums.unrealengine.com/u/BercouIi)\
**Post date:** [February 17, 2020, 4:55pm UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824/13 "2020-02-17T16:55:36Z")

</div>

i have the same problem and i tried to clear the cache in the swarm agent and it still didnt work i would like some help i have been working on a game for 5 months and it was time to build it  
Thanks!

---

<div class="post-metadata">

**Author:** ![S-Dot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/s-dot/32/1194599_2.png) [@S-Dot](https://forums.unrealengine.com/u/S-Dot)\
**Post date:** [February 18, 2020, 4:32am UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824/14 "2020-02-18T04:32:56Z")

</div>

> [@itsfate399](#):
>
> i have the same problem and i tried to clear the cache in the swarm agent and it still didnt work i would like some help i have been working on a game for 5 months and it was time to build it  
> Thanks!

You most likely are running out of memory. So you need to reduce your lightmap sizes. Start with foliage if you have it or terrain.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a64eb8bc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a64eb8bc](https://forums.unrealengine.com/u/anonymous_user_a64eb8bc)\
**Post date:** [May 6, 2020, 11:35am UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824/15 "2020-05-06T11:35:18Z")

</div>

Are we talking about system RAM or video RAM? Thx!

---

<div class="post-metadata">

**Author:** ![emypippo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emypippo](https://forums.unrealengine.com/u/emypippo)\
**Post date:** [August 9, 2022, 2:57pm UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824/16 "2022-08-09T14:57:47Z")

</div>

> [@](#):
>
> swarm agent

Perfect. tks

---

<div class="post-metadata">

**Author:** ![DanielOS96](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/danielos96/32/1143556_2.png) [@DanielOS96](https://forums.unrealengine.com/u/DanielOS96)\
**Post date:** [January 24, 2026, 12:31am UTC](https://forums.unrealengine.com/t/lightmass-crashing-array-index-out-of-bounds/105824/17 "2026-01-24T00:31:37Z")

</div>

I’m having the same issue. I tired clearing the swarm cache my ram is all fine. Anyone find anymore solutions to this?
