Crash when building light, Windows memory error

Hello,
when I try to build the light maps, a Windows error pops up and tell me that my memory is running low and to kill UnrealLightmass. I have 32GB of ram and I suppose should be enough for the project I’m doing since is quite small.
When the pop up come out even if I click “cancel” the swarm agent shut itself down and sometimes it crashes Windows or UE4.

I already tried unistalling everything a couple of times but the error is still there. What can I do?

I’ll attach the logs of the swarm agent when the error occurs.

Thank you,
Federico.

Hi Ikos,

Depending on your scene’s setup and how much lighting needs to be built it can easily use more than 32gb of RAM to build a scene, especially with high lightmap resolutions and lots of objects such as foliage.

If you’re getting a crash with the editor can you post your logs and call stack from the project that crashes. These can be found in the project folder > Saved > Logs.

Also, can you try building lighting on one of the template scenes such as first person or third person template. This can easily point to a scene specific issue or if there is something wrong otherwise. This can provide a control for our testing since we know this should build without issue.

Let me know.

Tim

Hello Tim,
I can build in other projects, I guess is something project related at this point.

I should try maybe to decrease the lighmap resolutions. The foliage that I use isn’t using any static light so I suppose it doesn’t matter.

I do have several static lights too, maybe those don’t help.

I’ll attach the last 2 logs that I have in the folder cause I’m not sure which one is the right one.

Thank you for your help,
Federico.

I don’t immediately see anything in the logs that stands out.

These logs also don’t point to a editor crash.

  • Did the edtior shut down and you get a call stack where you can submit you crash report as well?
  • OR was it a window that popped up that said “lightmass crashed”?

The editor just shut down without saying anything. Where I can find this call stack? Maybe it’s somewhere and I don’t know.

If the editor shut down without a pop-up window this is more likely something that caused Windows to shut down the program and not something that caused Unreal to shut itself down.

For logs for the crashes you can grab these from the Project > Saved > Logs folder. This may or may not have anything relevant if the editor is being shut down by windows. Regardless you can upload those here in a zip file.

Also, if the crash is reproducible on your machine you can use Windows Event Viewer to see why the error is caused that causes Windows to shut the program down.

You can do this by going to Search > Event Viewer. When this opens, reproduce the crash in Unreal. If you select Event Viewer (Local) at the top left you’ll see in the middle view all the errors. There should be one for Epic Games or Unreal Engine under the Error tab. When you get this, select the specific error and then double-click on it to open the event. Then in the right side panel, select Save All Events in Custom View as. Save this file (.evtx) and zip it up and attach here.

I can have a look, but I cannot guarantee there will be a resolution since this seems to be a Windows crash error and not specifically a Unreal Engine. But I’ll at least have a look for you.

One other thing before continuing on. It may be worth while to update any GPU drivers that are needed along with any windows updates that may be needed. This could save the trouble of going through theses steps to verify that it still happens after you’ve updated accordingly.