Lighting build fails on multiple levels

I posted about this problem in the Rendering section but never did get any answers so I’m hoping I will have better luck here. Around this time last week I ran into a problem where my lighting would no longer build and gives me the “Lighting Build Failed” error no matter what level I opened.

Here is the log from Swarm Agent:

7:42:54 PM: Starting up SwarmAgent …
7:42:54 PM: … registering SwarmAgent with remoting service
7:42:54 PM: … registering SwarmAgent network channels
7:42:54 PM: … initializing SwarmAgent
7:42:54 PM: … certificate check has failed
7:42:54 PM: … initializing cache
7:42:54 PM: … using cache folder ‘C:/Users/Mike/AppData/Local/UnrealEngine/4.18/Saved/Swarm\SwarmCache’
7:42:54 PM: … recreating SwarmAgent cache staging area
7:42:54 PM: … initializing connection to SwarmCoordinator
7:42:54 PM: … using SwarmCoordinator on RENDER-01
7:42:56 PM: … SwarmCoordinator failed to be initialized
7:42:56 PM: … initializing local performance monitoring subsystem
7:42:57 PM: … initialization successful, SwarmAgent now running
7:42:57 PM: [Interface:TryOpenConnection] Local connection established
7:42:57 PM: [Interface:OpenJob] Error: Invalid class

Any help would be appreciated.

Thanks

Hi Inferno14,

Thank you for your report. We will begin investigating this issue as soon as possible. If we are unable to reproduce the problem, or need more information, we will follow up with some additional questions for you. Otherwise, we will post an ‘Answer’ once the issue has been logged in our bug database or we have a solution for it.

I just tried all of the above and still no luck. I even downloaded 4.17 to see what happens and not only will the light not start building but I don’t even get a Lighting Build Failed error.

Hi Inferno14,

Sometimes network firewalls or anti-virus software can block Swarm Agent, so I recommend disabling those to see if it fixes the issue. If that doesn’t work, make sure you don’t have multiple instances of Swarm Agent running.

If neither of those works, try the following:

Open SwarmAgent.exe (Unreal Engine > [Engine Version] > Engine > Binaries > DotNET )

Double clicking this will place an icon in your task manager. Open that to launch Swarm Agent. Go to the CACHE drop down in the menu bar. Click CLEAN and then VALIDATE.

Also, Go to this folder location (if it’s hidden folder on your computer you’ll need to check View > Hidden Items in File Explorer before you can see it) C: > Users > [ Computer Name ] > AppData > Local > UnrealEngine >

Delete everything in this folder. Make sure the editor is closed or you will receive warnings that you cannot delete some files.

Let me know if these work for you!

You may have already done this, but have you tried restarting UE4 and/or your PC? You mentioned that the lighting will not build in any levels; does that include the Default Level with Starter Content?

You can verify the engine by going to the Epic Games Launcher > Library > Select Engine Version > Verify

Otherwise, you can try to systematically remove meshes from the level to see if one of these is causing the failure.

If none of these steps fixes the issue, please provide us with some instructions for reproducing the issue and we can try to investigate.

I’ve tried all of the above with no luck. I even went as far as to creating a new project and then moving some objects and trying to bake the lighting but get the same message. I also tried resetting Windows Firewall but that didn’t help either.

As far as reproducing the issue all I remember is uploading a mesh and then trying to bake the lighting and having that message come up. I’ve tried removing that mesh from my content browser and seeing what happens but nothing changes.

I’m starting to wonder if reformatting Windows 10 which I planned on doing soon anyway is the only solution.

Hey Inferno14, Please provide me with your DxDiag information so that we can investigate. In windows, select Start and enter dxdiag into the search box on the taskbar. Select dxdiag from the results. In the tool, select Save All Information.

Here it is. It doesn’t seem to want to list my processor but it’s a i7-5820K @3.30GHz

link text

Unfortunately we weren’t able to see any red flags from the dxdiag. Everything I know to check for is in the wiki ( https://wiki.unrealengine.com/Swarm_Agent_Troubleshooting) and I think we’ve tried everything. I’ll keep investigating.

So it looks like the new Windows 10 update fixed this issue. I decided to try again today to see if the update might have did anything and sure enough the lighting baked fine.

That’s great, I’m glad to hear that this issue has been resolved for you!