[build][crash][ue5.8.1] Unhandled exception: Exception: UBA executor is not expected to be invoked from a recursive UBT call

added all

[Attachment Removed]

Steps to Reproduce
hello,

we have been trying to run our sample game plugin app with UE 5.8.1 and getting crash from CI/CD due to this error below.

If we use incredibuild instead, then it works fine. Wondering how we can fix this issue ?

This may related to this issue

but not sure how we can fix. Because their ExecutorFactory.cs is diff from official unreal 5.8.1 file.

Also there is similar issue in forum

attached all CI/CD logs to crash callstack below

====

Unhandled 1 aggregate exceptions

Unhandled exception: Exception: UBA executor is not expected to be invoked from a recursive UBT call.

[Attachment Removed]

Hello, thank you for sharing the full output, and apologies for the delayed response.

We have seen this internally before, and it was the result of a partial Perforce sync.

In that case, the Engine/Binaries/Win64/UnrealBuildAccelerator directory was missing UbaHost.dll, so the Trace_SetGlobal entry point wasn’t being found, and the global trace file was never set.

Because of this, the executor hits the following check and throws the “UBA executor is not expected to be invoked from a recursive UBT call.” message.

https://github.com/EpicGames/UnrealEngine/blob/5\.8\.1\-release/Engine/Source/Programs/UnrealBuildTool/Executors/UnrealBuildAccelerator/UBAExecutor.cs\#L312

As a first check, could you please delete the UnrealBuildAccelerator directory and restore/re-sync it from source before trying again?

[Attachment Removed]