Swarm Agent Connection Stuck on Build

Hello, I’ll start by saying I have already searched around several times trying to resolve this bug myself without having to ask for help, but so far no luck finding any fixes on this. Basically every time I attempt to build the lighting on the level, it gets stuck at 100% and freezes. Maybe I just missed a step somewhere on how to set this up? This is on 4.7.2

Hi Catakard,

This is common for lightmass and swarm agent when it is wrapping up. The light build will finish at 100%, but it may take a while longer for the lightmap textures to process and be applied.

If you’ve given it a little bit of time, more than likely depends on your system specs. Try waiting 10 minutes or so.

If it’s still stuck and not doing anything you can try some/all of the following:

  • Open Swarm Agent > Menu > Cache > Click Clean and then Validate
  • Navigate to this folder and delete it’s contents while the editor is closed: C:\Users[Your Computer Name]\AppData\Local\UnrealEngine
  • Make sure you don’t have multiple Swarm Agents open in your taskbar tray

These would be the areas to check first. If the error is still occurring can you try building lighting for one of the template projects, like the first or third person template?

Let me know.

I let it go for an hour and still nothing. Tried everything you listed and no results there either.

I have 8GB of ram. Using Nvidia GTX 465 on Windows 7 Ult

Let me know what info I can get to you to help solve this problem.

Is it only in this project that lighting will not build? Have you tried a template project to see if things build in there? If so, then we can probably narrow it down to something project specific and go from there.

Its all projects, including template projects and blank projects with nothing in it. The build process just does not work, even when i set everything to minimal settings for fastest time

If you open up Swarm Agent and take a look at the Log tab, what’s being printed there when you try to build lighting?

Also, Try turning off your firewall and anti-virus to see if this will allow swarm agent to build. If that works you can just add an exception for swarm agent to allow it to work properly.

Ive already tried doing that before, but just to be safe I tried it again and still nothing. Firewall disabled and Antivirus off. The Swarm log is the same as whats in the picture above.

12:35:16 PM: Starting up SwarmAgent …
12:35:16 PM: … registering SwarmAgent with remoting service
12:35:16 PM: … registering SwarmAgent network channels
12:35:16 PM: … initializing SwarmAgent
12:35:16 PM: [ERROR] Local agent failed to initialize with an IPC channel! Falling back to TCP…
12:35:16 PM: [ERROR] Local agent failed to initialize with a TCP channel! Fatal error.

Hi Catakard,

We’ve just released the preview releases of 4.8 Preview 1. Would you be able to grab that and see if you’re still seeing problems building lighting? Can you try using a blank project with the default scene (scene with just the floor mesh, or you can add the starter content and use the scene that has the two chairs and table).

Let me know if lighting will build in this.

Thanks!

I ended up upgrading to Windows 8.1, which is certainly not the best solution, but it solved the problem. Everything works great now. I appreciate your help . Its unfortunate we were not able to solve it.

Agreed. I’m glad everything is working well for you now. There are a lot of variables that can cause Swarm to not work, and unfortunately we weren’t able to figure it out for you in this instance.

Happy developing! :slight_smile:

Don’t use lightmass it’s custard. It will ‘break’ like this on a per project basis once this happens you are square out of luck

  • the path to the folder with contents that should be deleted (step two in your answer) looks like a PC/Mac filesystem mashup. As I’m not entirely sure which folder you are after on the PC - I don’t have a suggested replacement.

That said - I had the same Swarm Agent Connection stuck on 100%. The cause, in my case, was moving my local UE4 GitHub to a different hard drive. The fix was to terminate all SwarmAgents and update the CacheFolder in SwarmAgent.Options.xml

I have this same problem but in 4.10.4. I have 16GB of Ram, a GTX 970, and a 6 core I7 so it isn’t my computer. I am running windows 10 if that is helpful information, and I have totally reinstalling the engine but that didn’t help.

@masterwigglestin

Can you please make a new post in the Rendering section of AnswerHub. Include your Swarm Log with it set to Super Verbose in the Swarm Agent Settings tab.

Make sure to include a DxDiag for your system.

Also you may want to check out the Swarm Agent Troubleshooting Guide I wrote a while back to run through some of the more common troubleshooting issues with Swarm Agent.

It’s also helpful to reproduce any issues in a blank project with a new scene.

Thank you!

Hi all,

Just to follow this thread, it happened to me exactly the same thing with both UE 4.10 and 4.12, I really didn’t know what was causing this issue. I read the logs in the SwarnCache folder located for my case here :
C:\Program Files (x86)\Epic Games\4.12\Engine\Binaries\DotNET\SwarmCache\Logs.

Reading this log (which made no sense at all the first time I read it), after a lot of search, tries, fails, I found one very important line :
System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.

By googling it, I found this web page http://www.sitefinity.com/developer-network/knowledge-base/details/this-implementation-is-not-part-of-the-windows-platform-fips-validated-cryptographic-algorithms-exception , that explained to
Go to Start > Control Panel > Administrative tools > Local Security Policy. The Group Policy dialog appears. Under the “Local Policies” heading, select “Security Options” and look for the entry, “System cryptography: Use FIPS compliant algorithms for encryption, hashing, and signing.” If this entry is enabled, disable it.
Open the registry editor and browse the following path. Make sure this registry subkey is set to 1:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\fipsalgorithmpolicy

Which I’ve done and straight after this it worked again! Hope it can help people who have been stuck with this thing!

Thanks

I have the same error : channel registration failed. reason: no such host is known.
I have UE source 4.26.0, build successfully and UEEditor being launched successfully. but when I try to build a sample Game it would stuck at (Starting up Swarm Connection (100%)) and SwarmAgent keep throwing this exception :channel registration failed. reason: no such host is known.

  • Working on UE source 4.26.0
  • I have checked the TCPView → could not see any process holding 8008 or 8009.
  • I have two versions of .NET frameworks 4.6.1 & 4.6.2.

Anybody have working resolution ?