# Lightmass crashed

**URL:** <https://forums.unrealengine.com/t/lightmass-crashed/281214>\
**Category:** Rendering\
**Tags:** Lightmass, ram, unreal-engine, crash, bug-report, question\
**Created:** [April 21, 2014, 2:52pm UTC](https://forums.unrealengine.com/t/lightmass-crashed/281214 "2014-04-21T14:52:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wowthever](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wowthever](https://forums.unrealengine.com/u/Wowthever)\
**Post date:** [April 21, 2014, 2:52pm UTC](https://forums.unrealengine.com/t/lightmass-crashed/281214/1 "2014-04-21T14:52:10Z")

</div>

## Bug

-Lightmass crashes when building lighting even with preview lighting quality.  
-Sometimes, the editor crashes as well when doing it and I receive a message of Windos telling me that the editor was closed due to a lack of RAM

## Cause

- **Lightmap resolution:** some of my assets are set to a resolution of 32, some of them to 128 and the ones that need more quality to 1024. Lowering the resolution avoids the crashes, but decreases shadow quality.

## My specs:

-GTX 660ti  
-i5 3570  
-8Gb RAM

## Log

-Swarm Agent’s log when building the lightmass. Lightmasscrash  
-Line of the error: "16:05:50: **[UpdateTaskState]: Task Killed locally by DANIEL-PC, counted as failure"**

## Additional notes

I don’t have any anti-virus software and any other memory-consuming app running in the background. Is there any way I can fix it without buying more RAM? My scene isn’t really complex and 8gb RAM seem enough for it, I don’t know what I’m doing wrong.

Advanced thanks.

PS: Sorry if there’s any grammar mistake, english isn’t my mother tongue.

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [April 21, 2014, 2:58pm UTC](https://forums.unrealengine.com/t/lightmass-crashed/281214/2 "2014-04-21T14:58:31Z")

</div>

First, make sure you have a lightmass importance volume in your scene.(this will probably solve your issue if you dont have one already)

Second, you can increase the virtual memory to make up for lack of RAM.

---

<div class="post-metadata">

**Author:** ![Wowthever](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wowthever](https://forums.unrealengine.com/u/Wowthever)\
**Post date:** [April 21, 2014, 3:49pm UTC](https://forums.unrealengine.com/t/lightmass-crashed/281214/3 "2014-04-21T15:49:18Z")

</div>

I already had the lightmass importance volume, but increasing the virtual memory solved the problem. Thanks! 😃

---

<div class="post-metadata">

**Author:** ![tech1187](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tech1187](https://forums.unrealengine.com/u/tech1187)\
**Post date:** [November 4, 2015, 4:49am UTC](https://forums.unrealengine.com/t/lightmass-crashed/281214/4 "2015-11-04T04:49:40Z")

</div>

I know this is an older post, but I thought I may ask here. I am also having the same issue as above. I seem to be having the problem only when I add Foliage to the project such as grass and or trees. I have 16 gig of memory and I have also increased the virtual memory up to 6+ gig more and still seem to be running out of memory. I do have the light-mass importance volume in the project as well. Also have tried reducing the light-map down to 35 and still have this problem. Any ideas why I am having these issues?

Error message from log:

Error === Lightmass crashed: ===  
Fatal error: [File:D:\BuildFarm\buildmachine\_++depot+UE4-Releases+4.9\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformMemory.cpp] [Line: 77]  
Ran out of memory allocating 1920390176 bytes with alignment 0

Note: Some reason it is looking for the DVD drive (D:\ above line) not hard drive where Unreal 4 or project is installed.

---

<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:** [November 4, 2015, 2:43pm UTC](https://forums.unrealengine.com/t/lightmass-crashed/281214/5 "2015-11-04T14:43:14Z")

</div>

Hi Tech1187,

Have a look at the Swarm Agent/Lightmass Troubleshooting guide. Try the suggestions to resolve the issue. Also, only use Power of 2 (2, 4, 8, 16, 32, etc) lightmap resolutions.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_eb8821c4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_eb8821c4](https://forums.unrealengine.com/u/anonymous_user_eb8821c4)\
**Post date:** [February 13, 2019, 2:55pm UTC](https://forums.unrealengine.com/t/lightmass-crashed/281214/6 "2019-02-13T14:55:37Z")

</div>

Here is the following error i am receiving.

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

0x00007ff988e4a388 KERNELBASE.dll!UnknownFunction []  
0x00007ff9275cceaa UnrealLightmass-Core.dll!UnknownFunction []  
0x00007ff9274329b7 UnrealLightmass-Core.dll!UnknownFunction []  
0x00007ff9273762b9 UnrealLightmass-Core.dll!UnknownFunction []  
0x00007ff72cd10d80 UnrealLightmass.exe!Lightmass::FEmbreeGeometry::FEmbreeGeometry() []  
0x00007ff72cd19822 UnrealLightmass.exe!Lightmass::FEmbreeAggregateMesh::AddMesh() []  
0x00007ff72cd772ed UnrealLightmass.exe!Lightmass::FStaticLightingSystem::FStaticLightingSystem() []  
0x00007ff72cd1f44c UnrealLightmass.exe!Lightmass::BuildStaticLighting() []  
0x00007ff72cd4a5dc UnrealLightmass.exe!Lightmass::LightmassMain() []  
0x00007ff72cd6d83a UnrealLightmass.exe!main() []  
0x00007ff72cdf0fcc UnrealLightmass.exe!\_\_scrt\_common\_main\_seh() []  
0x00007ff98a653034 KERNEL32.DLL!UnknownFunction []  
0x00007ff98bc93691 ntdll.dll!UnknownFunction []

What will be the issue? The crash started after adding spotlight, even removing all the spotlights and saving all, still problem doesn’t resolved.

Please help.

My PC Config is  
i5 4460  
16GB Ram  
4GB R9 380 AMD Gpu  
256GB SSD  
1TB HDD

Regards
