Description

Light baking of a ton of static meshes causes Swarm to crash due to "Index was our of range".
I confirmed that it can be reproduced with the sample project they sent us/

The error log I got is...

[Interface:EndJobSpecification] Error: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Server stack trace: 
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at Agent.AgentJob.EndJobSpecification() in d:\Projects\RenderingStream2\Engine\Source\Programs\UnrealSwarm\Agent\Jobs.cs:line 1076
   at Agent.Agent.EndJobSpecification_1_0(Int32 ConnectionHandle, Hashtable InParameters, Hashtable& OutParameters) in d:\Projects\RenderingStream2\Engine\Source\Programs\UnrealSwarm\Agent\Jobs.cs:line 2066
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at NSwarm.IAgentInterfaceWrapper.EndJobSpecificationDelegate.EndInvoke(Hashtable& OutParameters, IAsyncResult result)
   at NSwarm.IAgentInterfaceWrapper.EndJobSpecification(Int32 ConnectionHandle) in i:\Perforce2\UE4-ProjectCodeNameRedacted\Engine\Source\Editor\SwarmInterface\DotNET\SwarmInterface.cs:line 544
   at NSwarm.FSwarmInterface.EndJobSpecification() in i:\Perforce2\UE4-ProjectCodeNameRedacted\Engine\Source\Editor\SwarmInterface\DotNET\SwarmInterface.cs:line 2242
Steps to Reproduce
  1. Open the attached project
  2. Open NewMap
  3. Build Lighting
  4. You can see an error log in a Swarm monitor and Lightmass fails.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-71958 in the post.

0
Login to Vote

Won't Fix
ComponentUE - Foundation - Cpp Tools
Affects Versions4.21
CreatedMar 25, 2019
ResolvedAug 27, 2021
UpdatedAug 27, 2021