Build Lighting Error

Hey,

I am trying to build the Lighting but the Lightmass crashes. Any ideas?

Thank you,
Nick

Crash Output:

Error <None> === Lightmass crashed: ===
Fatal error: [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.7\Engine\Source\Programs\UnrealLightmass\Private\Lighting\LightingSystem.cpp] [Line: 1324] 
Static lighting thread exception:
Fatal error: [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.7\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformMemory.cpp] [Line: 54] 
Ran out of memory allocating 16384 bytes with alignment 0


KERNELBASE.dll!UnknownFunction (0x00007ffa431c8b9c) + 0 bytes [UnknownFile:0]
UnrealLightmass-Core.dll!UnknownFunction (0x00007ff9fcfd44f4) + 0 bytes [UnknownFile:0]
UnrealLightmass-Core.dll!UnknownFunction (0x00007ff9fceb2754) + 0 bytes [UnknownFile:0]
UnrealLightmass-Core.dll!UnknownFunction (0x00007ff9fcdc7867) + 0 bytes [UnknownFile:0]
UnrealLightmass-Core.dll!UnknownFunction (0x00007ff9fcdc3ebd) + 0 bytes [UnknownFile:0]
UnrealLightmass.exe!UnknownFunction (0x00007ff79015793a) + 0 bytes [UnknownFile:0]
UnrealLightmass.exe!UnknownFunction (0x00007ff79017085d) + 0 bytes [UnknownFile:0]
UnrealLightmass.exe!UnknownFunction (0x00007ff7902269a5) + 0 bytes [UnknownFile:0]
UnrealLightmass.exe!UnknownFunction (0x00007ff7901de9d7) + 0 bytes [UnknownFile:0]
UnrealLightmass.exe!UnknownFunction (0x00007ff7901d5639) + 0 bytes [UnknownFile:0]
UnrealLightmass-Core.dll!UnknownFunction (0x00007ff9fcfd3b16) + 0 bytes [UnknownFile:0]
UnrealLightmass-Core.dll!UnknownFunction (0x00007ff9fcfc800d) + 0 bytes [UnknownFile:0]
KERNEL32.DLL!UnknownFunction (0x00007ffa450213d2) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x00007ffa45dd5444) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x00007ffa45dd5444) + 0 bytes [UnknownFile:0]

Hi Nick,

As line 5 states, it looks like you ran out of memory while building lighting.

Ran out of memory allocating 16384 bytes with alignment 0

When you build lighting is it in a custom scene you’ve setup or one of the template project scenes (FPS or Third Person starting map)?

Here are some things you’ll need to try:

  • Try lowering your lightmap resolutions of your meshes.
  • Make sure that you’re using a lightmass importance volume in your scene
  • Use fewer meshes that are casting static shadows.

Lightmass and static lighting building is a very intensive process that requires a lot of CPU power and RAM to complete.

Thanks!

Tim

Really thank you :slight_smile:

hey again even with all my programs closed and only unreal on i get the same error :frowning:

Same problem here, searched for bad settings and errors for a week now, even reinstalled unreal engine.
only lightsource I have is a movable sun and a skylight, but i disabled all shadowing from the skylight
I also have a small lightmapimportance

Tried make all levels but one invisible to just build lightning on one at the time, but not even that worked.
I lowered all my meshes lightmap resolution to 16, and grass to only 4 with shadows disabled

@NickTehPro If you create a default scene (the one with the floor, sky sphere, and sun already setup) and build lighting does everything work there?

Can you also post your DxDiag (star menu > Run > dxdiag.exe) and save the file as text and upload here. This will let me see your system specs.

@sailorjerry If you’re light source is set to movable this won’t use Lightmass since lights do not need to be built. You would need to set your light source to Stationary or Static to see any lightmass results.