Swarm Agent Freeze on Build Start

Hello, New to everything Unreal. I have a simple level built; A small roofless room in the default skybox. Whenever I hit Build I get a window like the one in this image.

No matter how long I leave this running, doing nothing else on the PC, nothing changes. Same error message all day. When I finally figured out how to open the Swarm Agent, I was presented with this image.

It opens with those Green lines of text, then constantly repeats the same series of Orange text. I have checked my System tray for more Swarm Agents, checked my Task Manager for instances of Unreal Lightmass or Swarm Agent or Swarm Connection, deleted everything in the Cashe folder for Swarm Agent, and tried to “Clean and Validate” SA. I even went so far as to reinstall Windows 8.1 and UE7 and rebuild with my project, the starter templates, AND the downloadable projects, Still nothing.

Anything else you need from me just let me know.

Hi Mii753,

unfortunately I just looked into the Swarm code and this error message is terribly misleading, as it raises this error if anything wrong happens during registration of a channel. The “channel already registered” is only one of the reasons it may fail.

I’ll fix that for future versions, but to diagnose and fix your problem we could fix your copy and find out what’s wrong (cause something is wrong for sure).

Do you have, or could get a source version of the engine? At least the UE4/Engine/Source/Programs/UnrealSwarm would be required. If you do, then please change lines:

catch (Exception)
{
	AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] Channel already registered, suggesting another SwarmAgent or client is running.");
	AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] If you feel this is in error, check your running process list for additional copies of");
	AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] SwarmAgent or UnrealLightmass (or other client) and consider killing them.");
	AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] Sleeping for a few seconds and trying again...");
	Thread.Sleep(3000);
}

in AgentApplication.cs file, to:

catch (RemotingException)
{
	AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] Channel already registered, suggesting another SwarmAgent or client is running.");
	AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] If you feel this is in error, check your running process list for additional copies of");
	AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] SwarmAgent or UnrealLightmass (or other client) and consider killing them.");
	AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] Sleeping for a few seconds and trying again...");
	Thread.Sleep(3000);
}
catch (Exception Ex)
{
	AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, string.Format("[ERROR] Channel registration failed. Reason: {0}\n, Callstack: {1}.", Ex.Message, Ex.StackTrace));
	Thread.Sleep(3000);
}

Then please, rebuild and use the new Swarm and get back to me with the log it produces.

Thanks,

Jarek