Swarm Agent crash when building lighting after upgrade to 4.1

Having trouble figuring out the problem. Right after upgrading to 4.1 I tried to build lighting and I’m getting the error below. I’ve tried clearing the SwarmCache\AgentStagingArea directory and none of the files seem to be locked by another process. This is only happening to my map. All the example projects work fine.

12:47:09 AM: [Connection] Detected new local connection from same process ID as an existing one, closing the old one

12:47:09 AM: [CloseConnection] Closing connection 50EBA5C0 using handle 50EBA5C0

12:47:09 AM: [CloseConnection] Connection confirmed for disconnection 50EBA5C0

12:47:09 AM: [CloseConnection] Closing orphaned Job (2F26BDB3-4EB95BEE-6FA41A97-5E02443D)

12:47:09 AM: [CloseConnection] Connection disconnected 50EBA5C0

12:47:09 AM: [Interface:TryOpenConnection] Local connection established

12:47:09 AM: [GetMessage] Safely returning to 50EBA5C0 with no message

12:47:09 AM: [Job] Accepted Job E9BC96D8-4938475C-78EBB6A5-D26049D3

12:47:10 AM: [MaintainConnections] Local connection has closed (50EBA5C0)

12:47:10 AM: [MaintainConnections] Removed connection 50EBA5C0

12:47:11 AM: [Interface:OpenChannel] Error: System.IO.IOException: The process cannot access the file ‘C:\Program Files\Unreal Engine\4.1\Engine\Binaries\DotNET\SwarmCache\AgentStagingArea\A6630D7233BF47B3BBCF76BB4350A2B5.C964F9D946F9ED5D1EE203B61A4A375B.mtrlgz’ because it is being used by another process.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)

at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share)

at NSwarm.FSwarmInterface.OpenChannel(String ChannelName, EChannelFlags ChannelFlags)

Hello,

Thank you for your report. We were not able to investigate this on the engine version you reported, but there have been many version changes to UE4 since this question was first posted. With a new version of the Engine comes new fixes and it is possible that this issue has changed or may no longer occur. Due to timetable of when this issue was first posted, we are marking this post as resolved for tracking purposes.

If you are still experiencing the issue you reported in the current engine version, then please respond to this message with additional information and we will investigate as soon as possible. If you are experiencing a similar, but different issue at this time, please submit a new report for it.

Thank you.