UE Editor freezes when trying to build lighting

System Specs: Ryzen 1700 3.0Ghz, GTX 1080, 16Gb RAM. If you need to know more just ask.

I am pretty new to Unreal Engine, but haven’t ever encountered this problem prior to today. Every time I try to “Build Lighting” or “Build”, it initializes and immediately freezes. Watching my task manager, my CPU nor my memory increase at all after I try to build. It seems to freeze instantaneously. I was also having this problem in 4.15.2 and 4.15.3 today. I since updated to 4.16 and still receive the same problem. I have also tried clearing out Swarm’s cache, but the problem persists.

Any suggestions? Thank you in advance!

Yikes. Have you tried building a basic template project to see if it’s a general issue or just something in your project’s content? If not, can you and report back?

Thanks for the reply, I just tested this and still encounter the same problem. The main project isnt too much right now, so I was hoping that was the issue. I just have most of the gameplay mechanics done in the main project. Found this lovely error when i started to build the environment.

OK so it’s something bad then. :slight_smile: Time to look and see if there’s (hopefully) any extra info in the logs. #Editor_Session_Log

Ok, So how can I use this to correct the problem? I dont have any Crash Logs. I have some Build/Cook/Package Logs that were generated earlier today (not at the time of it freezing though).

The Build/Cook?Package logs seem to have been generated when I accidently opened the C++ editor. (I don’t use C++, at least not yet. lol)

We need to figure out what the problem is before we can fix it. Usually a hang is a thread lock situation but since it does hang, we need to get at the log file. AFAIK you can’t build anything in the editor and not produce a log so my only suggestion is look harder. And it’s not a crash log, it’s the log that the editor generates whenever it does anything (for the most part). It’s actually too chatty sometimes. Maybe the log you found is the right one. Just link to anything you can find and we’ll swim through it, but the link I gave does point to the right places for me.

I found the project log. These are the last few lines that reference to when I started to build the light. The log ends here.

[2017.05.27-03.55.33:347][508]LightingResults: New page: Lighting Build - May 26, 2017, 1:55:33 PM
[2017.05.27-03.55.33:430][508]LogSwarmInterface: [OpenConnection] Registering TCP channel …
[2017.05.27-03.55.33:438][508]LogSwarmInterface: [OpenConnection] Connecting to agent …
[2017.05.27-03.55.33:456][508]LogSwarmInterface: [TryOpenConnection] Testing the Agent
[2017.05.27-03.55.33:461][508]LogSwarmInterface: [TryOpenConnection] Opening Connection to Agent
[2017.05.27-03.55.33:461][508]LogSwarmInterface: [TryOpenConnection] Local Process ID is 14160

In the Windows Event Viewer, I did find something under Error > Application Hang.

Process ID: 1a8c
Start Time: 01d2d6a8ab41f77b
Termination Time: 4294967295
Application Path: C:\Program Files\Epic Games\UE_4.16\Engine\Binaries\Win64\UE4Editor.exe
Report Id: 117215d9-429c-11e7-9e18-1c1b0d9a8682

If this is of any use…

link text

Sorry, read over the part where you asked me to link it.

Now we’re talking. So the editor talks to Swarm over a TCP socket. Something is stopping the connection. Not sure why it would hang, but whatever. If it’s safe, try disabling your firewall (and perhaps anti-virus) for long enough to build the lighting. See if that’s getting in the way.

Ill give that a try and report back to you in a few.

So if i try to build only lighting, it gets to 100% starting up swarm. If i click build, it moves onto “Building Texture Streaming” and freezes at either 0% or 40%.
Swarm came up in my hidden icons tab the first (of 3) times. I meant to copy the files over for you but didnt get the chance. The only part that stuck out to me was that it simply failed to initialize.

Not sure what you mean. That’s what happens if you disable the firewall? If so, we need to see the latest logs. There may be more in there now.

To what part? The first two sentences are refering to inside the editor. The remainder is refering to the Swarm application, Ive never seen it load before today.
Anyway, here is the newest log for the project.
link text

Did you try disabling the firewall? I can’t tell from what you said if that was the result of my suggestion or a reason why you didn’t take my suggestion.

Yeah i disabled the firewall. Didnt help. Sorry for being unclear.

Then I’m out of suggestions. It looks like the handshake is failing to me. I’ll link a troubleshooting guide I found. Hope it helps more than I have.

Ok, well thank you anyways. I appreciate the effort!

It looks like the TCP handshake is failing. Usually that means your firewall is preventing the connection. Here’s a troubleshooting gude: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums

Good luck.