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

**URL:** <https://forums.unrealengine.com/t/build-crash-ue5-8-1-unhandled-exception-exception-uba-executor-is-not-expected-to-be-invoked-from-a-recursive-ubt-call/2835973>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [August 24, 2026, 8:49pm UTC](https://forums.unrealengine.com/t/build-crash-ue5-8-1-unhandled-exception-exception-uba-executor-is-not-expected-to-be-invoked-from-a-recursive-ubt-call/2835973 "2026-08-24T20:49:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [August 24, 2026, 8:49pm UTC](https://forums.unrealengine.com/t/build-crash-ue5-8-1-unhandled-exception-exception-uba-executor-is-not-expected-to-be-invoked-from-a-recursive-ubt-call/2835973/1 "2026-08-24T20:49:07Z")

</div>

added all

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [August 24, 2026, 8:49pm UTC](https://forums.unrealengine.com/t/build-crash-ue5-8-1-unhandled-exception-exception-uba-executor-is-not-expected-to-be-invoked-from-a-recursive-ubt-call/2835973/2 "2026-08-24T20:49:10Z")

</div>

**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

> **[horizOn Dashboard](https://horizon.pm/blog/fixing%5C-the%5C-unreal%5C-engine%5C-uba%5C-executor%5C-ubt%5C-error%5C-in%5C-ue%5C-58%5C-source%5C-builds)**
>
> Manage your account, products, and support in one place.

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

> [@Unhandled exception: Exception: UBA executor is not expected to be invoked from a recursive UBT call.](https://forums.unrealengine.com/t/unhandled%5C-exception%5C-exception%5C-uba%5C-executor%5C-is%5C-not%5C-expected%5C-to%5C-be%5C-invoked%5C-from%5C-a%5C-recursive%5C-ubt%5C-call/2731210):
>
> I’ve downloaded the Unreal Engine 5.8.0 source from Github, and after running Setup.bat and generating projects, I have the following error when trying to build with Visual Studio 2022 (17.14.35 June 2026) 1\>Unhandled exception: Exception: UBA executor is not expected to be invoked from a recursive UBT call. 1\> at UnrealBuildTool.UBAExecutor.Init(IEnumerable`1 targetDescriptors, ILogger logger) in UnrealEngine\Engine\Source\Programs\UnrealBuildTool\Executors\UnrealBuildAccelerator\UBAExecutor…

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]

---

<div class="post-metadata">

**Author:** ![itho](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/itho/32/1130265_2.png) [@itho](https://forums.unrealengine.com/u/itho)\
**Post date:** [September 1, 2026, 10:13am UTC](https://forums.unrealengine.com/t/build-crash-ue5-8-1-unhandled-exception-exception-uba-executor-is-not-expected-to-be-invoked-from-a-recursive-ubt-call/2835973/3 "2026-09-01T10:13:16Z")

</div>

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](https://github.com/EpicGames/UnrealEngine/blob/5%5C.8%5C.1%5C-release/Engine/Source/Programs/UnrealBuildTool/Executors/UnrealBuildAccelerator/UBAExecutor.cs%5C#L312)

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

[Attachment Removed]
