Lightmass Error Reporting

Hello!

Today I encountered a bug wherein a specific mesh in several of our levels had begun to interfere with lightmass and prevent lighting from being built. Lightmass would not long anything regarding this issue, and I would only get a simple generic ‘Swarmagent failed to kick off’ error. It took nearly nine hours to find the issue, and this could have been considerably longer had I not been lucky.

Looking at past threads, this has been a persistent problem for over two years and has tripped up quite a number of people. Whilst this bug is annoying, the real issue is that lightmass is not reporting or logging critical errors, and the error that is reported is somewhat erroneous - this needs to change.

My particular encounter is briefly detailed here - the nine hours lost to debugging the problem could have been reduced to minutes, had lightmass logged the error and reported the offending asset in question. Someone unable to make use of a debugger and sift through lightmass / the swarm agent may not have been able to solve the issue at all.

There are also a selection of other tickets for the same, or similar issues, which could have been greatly aided by better reporting practices in lightmass and the swarmagent. Many of these people never found a solution to their problems. (this is not a complete list, there are more - this is just the first two pages of results in google):

https://answers.unrealengine.com/questions/398888/swarm-agent-fails-to-kick-off-since-411.html
https://answers.unrealengine.com/questions/52431/swarm-failed-to-kick-off.html
https://answers.unrealengine.com/questions/201235/unreal-engine-173-lighting-build-failed-swarm-fail.html
https://answers.unrealengine.com/questions/52380/swarm-failed-to-kick-off-file-in-use-by-process.html
https://answers.unrealengine.com/questions/59983/bug-unreal-editor-421-light-build-failed-swarm-fai-1.html
https://answers.unrealengine.com/questions/244021/lighting-build-failed-swarm-failed-to-kick-off-som.html
https://answers.unrealengine.com/questions/156425/swarm-failed-to-kick-off-1.html
https://answers.unrealengine.com/questions/206013/lighting-build-failed-swarm-failed-to-kick-off-1.html
https://answers.unrealengine.com/questions/115923/swarm-failed-to-kick-off-file-being-used-by-anothe.html
https://answers.unrealengine.com/questions/53275/light-build-failed-swarm-failed-to-kick-off.html
https://answers.unrealengine.com/questions/105643/lighting-failed-to-build-swarm-failed-to-kick-off.html
https://answers.unrealengine.com/questions/322666/lighting-build-failed-2.html
https://answers.unrealengine.com/questions/124167/swarm-cache-error-1.html
https://answers.unrealengine.com/questions/186098/failed-to-connect-to-swarm-3.html

Hi Ambershee,

Ticket has been submitted and can be tracked for status here: Unreal Engine Issues and Bug Tracker (UE-36002)

Thanks!

Tim