I am unable to build the lightmap for a map. I have tried multiple times with the exact same result.
Just after the scene is exported to Swarm, Swarm throws an IOException claiming it can’t access a cache file because it is being used by another process. Except it isn’t, or if it is then it is Swarm’s own processes.
I have tried:
Restarting - straight into Unreal, build lightmap. Same error
Clean & Verify Swarm cache - Swarm says all is good, then it just fails to build with the exact same error
Changing the Swarm cache path - new path, same error. Exact same filename as best I can tell (It is a long hash name)
Error message is below. Please note that I am unable to copy/paste from my production machine to the internet (due to MPAA restrictions) so I had to type the whole thing out. As a result it possibly has a typo or two but should still be accurate.
18:28:49: [Interface:OpenChannel] Error: System.IO.IOException: The process cannot access the file 'D:\UnrealEngine_dev\Engine\Saved\Swarm\SwarmCache\AgentStagingArea\8487AD2E5DBA413C81373D29B2915895.00000000000000000000000000000000.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.FileStrea,ctor(String path, FileMode mode, FileAccess access, FileShare share)
at NSwarm.FSwarmInterface.OpenChannel(String ChannelName, EChannelFlags ChannelFlags)