# Lightmass crashed with array index out of bounds

**URL:** <https://forums.unrealengine.com/t/lightmass-crashed-with-array-index-out-of-bounds/318268>\
**Category:** Rendering\
**Tags:** Lightmass, unreal-engine, crash, bug-report, question\
**Created:** [May 12, 2015, 2:56am UTC](https://forums.unrealengine.com/t/lightmass-crashed-with-array-index-out-of-bounds/318268 "2015-05-12T02:56:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_b51c47b5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b51c47b5](https://forums.unrealengine.com/u/anonymous_user_b51c47b5)\
**Post date:** [May 12, 2015, 2:56am UTC](https://forums.unrealengine.com/t/lightmass-crashed-with-array-index-out-of-bounds/318268/1 "2015-05-12T02:56:40Z")

</div>

Editor version 4.7.6 on windows 7.  
I have a 10 by 7 grid of 2k by 2k landscapes loaded by the tiled landscape “auto” loader. World Composition is ON and Origin rebasing is OFF. I worked around the error by moving them closer to 0,0 than they were placed by the autoloader but thought this issue should be recorded so you can fix the problem and others can possibly find a quick solution,

full dump follows:

Error === Lightmass crashed: ===  
Assertion failed: (Index \>= 0) & (Index \< ArrayNum) [File:D:\BuildFarm\buildmachine\_++depot+UE4-Releases+4.7\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 679]  
Array index out of bounds: 17707360 from an array of size 17707360

KERNELBASE.dll!UnknownFunction (0x000007fefd55aaad) + 0 bytes [UnknownFile:0]  
UnrealLightmass-Core.dll!UnknownFunction (0x000007fecacc4544) + 0 bytes [UnknownFile:0]  
UnrealLightmass-Core.dll!UnknownFunction (0x000007fecaba28c8) + 0 bytes [UnknownFile:0]  
UnrealLightmass-Core.dll!UnknownFunction (0x000007fecab81075) + 0 bytes [UnknownFile:0]  
UnrealLightmass.exe!Lightmass::TkDOPTree::SplitTriangleList() (0x000000013fe2a9f9) + 0 bytes [UnknownFile:0]  
UnrealLightmass.exe!Lightmass::TkDOPTree::Build() (0x000000013fdde0c9) + 0 bytes [UnknownFile:0]  
UnrealLightmass.exe!Lightmass::FStaticLightingAggregateMesh::PrepareForRaytracing() (0x000000013fe19aba) + 0 bytes [UnknownFile:0]  
UnrealLightmass.exe!Lightmass::FStaticLightingSystem::FStaticLightingSystem() (0x000000013fdc0333) + 0 bytes [UnknownFile:0]  
UnrealLightmass.exe!Lightmass::BuildStaticLighting() (0x000000013fdde951) + 0 bytes [UnknownFile:0]  
UnrealLightmass.exe!Lightmass::LightmassMain() (0x000000013fe14f72) + 0 bytes [UnknownFile:0]  
UnrealLightmass.exe!main() (0x000000013fe31950) + 0 bytes [UnknownFile:0]  
UnrealLightmass.exe!\_\_tmainCRTStartup() (0x000000013fe86467) + 0 bytes [UnknownFile:0]  
kernel32.dll!UnknownFunction (0x00000000776359cd) + 0 bytes [UnknownFile:0]  
ntdll.dll!UnknownFunction (0x000000007776b891) + 0 bytes [UnknownFile:0]  
ntdll.dll!UnknownFunction (0x000000007776b891) + 0 bytes [UnknownFile:0]

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [May 12, 2015, 2:28pm UTC](https://forums.unrealengine.com/t/lightmass-crashed-with-array-index-out-of-bounds/318268/2 "2015-05-12T14:28:00Z")

</div>

Hello Eredin,

Would you mind providing me also with your crash logs and .dmp files generated from the crash report along with your dxdiag? To get this information to us we ask that you zip the logs and files into a folder and attach them to your response.

Thank you,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b51c47b5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b51c47b5](https://forums.unrealengine.com/u/anonymous_user_b51c47b5)\
**Post date:** [May 12, 2015, 5:37pm UTC](https://forums.unrealengine.com/t/lightmass-crashed-with-array-index-out-of-bounds/318268/3 "2015-05-12T17:37:41Z")

</div>

Here is the logfile but oddly it’s not giving me a .dmp file. Can you direct me to a resource to show me how to get the rest of the information for you?  
link text

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [May 12, 2015, 6:46pm UTC](https://forums.unrealengine.com/t/lightmass-crashed-with-array-index-out-of-bounds/318268/4 "2015-05-12T18:46:33Z")

</div>

No worries, I should be able to find your crash in our internal system with the information you have provided thus far. To find your crash logs and .dmp files go to your hard drive if on Windows.

Did you build your engine from source or is it the binary release version?

C:\Users\YourName\AppData\Local\Microsoft\Windows\WER\ReportQueue

Thank you,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b51c47b5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b51c47b5](https://forums.unrealengine.com/u/anonymous_user_b51c47b5)\
**Post date:** [May 20, 2015, 7:14pm UTC](https://forums.unrealengine.com/t/lightmass-crashed-with-array-index-out-of-bounds/318268/5 "2015-05-20T19:14:15Z")

</div>

I am still getting this error under v4.8 p2.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [May 28, 2015, 4:00pm UTC](https://forums.unrealengine.com/t/lightmass-crashed-with-array-index-out-of-bounds/318268/6 "2015-05-28T16:00:41Z")

</div>

Have you attempted to turn on origin rebasing and testing to see if it still occurs?

You mentioned you can avoid the crash by moving it closer to the origin so this could be what is causing the crash?
