Building lighting freezes PC for an hour

Hey guys, I’m having a nightmare of a time attempting to play around with the free 4.4.3 mountain landscape project, in particular while building the lighting. Every time, it freezes my PC completely and immediately after the swarm loads, for up to an hour, and then returns an error.

The changes I have made are removing ALL actors from the scene aside from the atmospheric fog, directional light, landscape, music, windtrees, gizmoactiveactor and skysphere (which I set the material of to the default).

What I’ve added is a single spawn, the character+game mode from the FPS example project, a few basic platforms in the air, and a small lightmass volume around said platforms. Below is the error message I was returned in my most recent attempt at building the lighting:

   Error <None> === Lightmass crashed: ===Unhandled Exception: 0x00000001
    Ran out of memory allocating 13827041856 bytes with alignment 0
    
    Address = 0xfda8940d (filename not found) [in C:\Windows\system32\KERNELBASE.dll]
    Address = 0xd50e95bc (filename not found) [in C:\Users\\AppData\Local\UnrealEngine\4.4\Saved\Swarm\SwarmCache\Jobs\Job-3C25EB92-4C8AADDA-2C4592B7-5A82271B\UnrealLightmass-Core.dll]
    Address = 0xd4fde62f (filename not found) [in C:\Users\\AppData\Local\UnrealEngine\4.4\Saved\Swarm\SwarmCache\Jobs\Job-3C25EB92-4C8AADDA-2C4592B7-5A82271B\UnrealLightmass-Core.dll]
    Address = 0xd4f05dad (filename not found) [in C:\Users\\AppData\Local\UnrealEngine\4.4\Saved\Swarm\SwarmCache\Jobs\Job-3C25EB92-4C8AADDA-2C4592B7-5A82271B\UnrealLightmass-Core.dll]
    Address = 0x3f79c213 (filename not found) [in C:\Users\\AppData\Local\UnrealEngine\4.4\Saved\Swarm\SwarmCache\Jobs\Job-3C25EB92-4C8AADDA-2C4592B7-5A82271B\UnrealLightmass.exe]
    Address = 0x3f7d3e8a (filename not found) [in C:\Users\\AppData\Local\UnrealEngine\4.4\Saved\Swarm\SwarmCache\Jobs\Job-3C25EB92-4C8AADDA-2C4592B7-5A82271B\UnrealLightmass.exe]
    Address = 0x3f77fa11 (filename not found) [in C:\Users\\AppData\Local\UnrealEngine\4.4\Saved\Swarm\SwarmCache\Jobs\Job-3C25EB92-4C8AADDA-2C4592B7-5A82271B\UnrealLightmass.exe]
    Address = 0x3f79c9fc (filename not found) [in C:\Users\\AppData\Local\UnrealEngine\4.4\Saved\Swarm\SwarmCache\Jobs\Job-3C25EB92-4C8AADDA-2C4592B7-5A82271B\UnrealLightmass.exe]
    Address = 0x3f7cf656 (filename not found) [in C:\Users\\AppData\Local\UnrealEngine\4.4\Saved\Swarm\SwarmCache\Jobs\Job-3C25EB92-4C8AADDA-2C4592B7-5A82271B\UnrealLightmass.exe]
    Address = 0x3f7ea744 (filename not found) [in C:\Users\\AppData\Local\UnrealEngine\4.4\Saved\Swarm\SwarmCache\Jobs\Job-3C25EB92-4C8AADDA-2C4592B7-5A82271B\UnrealLightmass.exe]
    Address = 0x3f839e77 (filename not found) [in C:\Users\\AppData\Local\UnrealEngine\4.4\Saved\Swarm\SwarmCache\Jobs\Job-3C25EB92-4C8AADDA-2C4592B7-5A82271B\UnrealLightmass.exe]
    Address = 0x77a3652d (filename not found) [in C:\Windows\system32\kernel32.dll]
    Address = 0x77b6c541 (filename not found) [in C:\Windows\SYSTEM32\ntdll.dll]
    Address = 0x77b6c541 (filename not found) [in C:\Windows\SYSTEM32\ntdll.dll]

The cause is obviously the landscape’s massive size and detail, so what I’m requesting is suggestions as to how to lower the memory required for the lighting build. I’ve tried lowering the Max LOD Level to -1 and the static lighting resolution to 0.25, but this seemed to have little effect. I’m not concerned with preserving detail, so all suggestions are appreciated.

UE4 Version: 4.4.3

PC Specs: Windows 7 Home Premium Service Pack 1, i5-2400 CPU, 8GB RAM, overclocked GTX 770.

Thank you in advance for your time and answers.

Hi there,

In version 4.4.3 and lower there was a memory issue when building the lighting on large maps. The LandscapeDemo in particular was using up to 30gb of RAM to build the lights, Epic’s PC’s all had 32gb of RAM therefore they had not encountered this issue. This has been reduced to roughly 10gb required to build lighting in version 4.5, however that will still be too high for your system with 8gb ram.

The best way to get around this issue is to change the lighting to Dynamic, to do this select the Directional Light in the level and change it from Stationary to Movable, you will also want to make this change on any other lights inside the level.

After that open up the World Settings panel from the main toolbar and in the advanced options for Lightmass, enable “Force No Precomputed Lighting”. To apply the changes build the lighting one more time, and you will now be using Dynamic lighting which does not require you to build the lighting at all.

For some more info on Dynamic Lighting please see this page in the documentation.

Hope that helps, let me know if you need some more info!

Works great, thanks! I can finally get some sleep!