Lighting build failed, Swarm agent on linux gets unhandled exception

Hello everyone, I am facing an issue regarding building lighting for maps. UE4 says LIGHTING NEEDS TO BE REBUILT, but if I try to build lighting for the map, it starts, then immediately errors out at 0%, saying “Lighting build failed.”

I am on MANJARO 5.2.2-1 (which is basically a distro based on arch linux). I’m pretty sure I have all mono dependencies… Though I’m not 100% on that… I have mono 5.20.1.19-1, mono-tools 4.2-2 and mono-addins 1.3.3-2 from the official manjaro repository.

I built UE 4.23 from source (but it did this on 4.22 also). I followed the guide in the docs, and the engine built successfully, and for the most part I don’t see anything else that’s buggy or not working apart from building the lighting.

I also tried it on my laptop (same distro as my PC), it does the same, output is the same.

Output Log inside UE4:

LogConfig: Setting CVar [[r.TranslucencyLightingVolumeDim:64]]
LogConfig: Setting CVar [[r.TranslucencyLightingVolumeDim:64]]
LightingResults: New page: Lighting Build
LightingResults: New page: Lighting Build
LightingResults: New page: Lighting Build - 2019. júl. 31. 6:27:56
LogStaticLightingSystem: Running Lightmass w/ ImmediateImport mode ENABLED
LogStaticLightingSystem: Running Lightmass w/ ImmediateProcess mode ENABLED
LogStaticLightingSystem: Running Lightmass w/ Sorting mode ENABLED
LogStaticLightingSystem: Running Lightmass w/ Mapping paddings ENABLED
LogStaticLightingSystem: Running Lightmass w/ Mapping debug paddings DISABLED
LogStaticLightingSystem: Warning: Failed to build lighting!!! Lighting build failed.
MapCheck: Error: WorldSettings_1 Maps need lighting rebuilt

Console output when trying to start SwarmAgent by itself (from [UE4ROOT]/Engine/Binaries/DotNET/SwarmAgent.exe):

Unhandled Exception:
System.TypeLoadException: Could not resolve type with token 01000047 from typeref (expected class 'System.Deployment.Application.ApplicationDeployment' in assembly 'System.Deployment, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not resolve type with token 01000047 from typeref (expected class 'System.Deployment.Application.ApplicationDeployment' in assembly 'System.Deployment, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')

unreallight logs
logs from unreallightmass

okay… so I got UnrealAgent built with mono’s msbuild command (tried both the normal and the “_Mono” .sln solutions), but it does not have an gui, nor it is giving any signs of working… Unreal Engine still says Lighting build failed.

When I looked at the log generated (when running the agent standalone) it does appear to actually ingest jobs, though this does not seem to be sent back to Unreal Engine…

It also seems that clicking “Build lighting” inside Unreal Engine does not call/run/start the agent.

Here is the log:

Starting up SwarmAgent ...
 ... registering SwarmAgent with remoting service
 ... registering SwarmAgent network channels
 ... initializing SwarmAgent
 ...... checking certificate
 ......... certificate check has failed
 ...... initializing cache
 ......... using cache folder '/mnt/Data/Development/GameDesign/UnrealEngine/Engine/Engine/Binaries/DotNET/SwarmCache'
 ......... recreating SwarmAgent cache staging area
 ...... initializing connection to SwarmCoordinator
 ......... using SwarmCoordinator on RENDER-01
 ......... SwarmCoordinator failed to be initialized
 ...... initializing local performance monitoring subsystem
 ... initialization successful, SwarmAgent now running
[MaintainCache] Performing cache clean up
[CleanupJobDirectory] Cleaning up jobs directory
[CleanupJobDirectory] Done cleaning up jobs directory
[CleanupJobDirectory] Cleaning up logs directory
[CleanupJobDirectory] Done cleaning up logs directory
[MaintainCache] Cleaning up main cache directory
[MaintainCache] Cache clean up complete