# 5-0EA Package Error: Ensure condition failed: oldValue == newValue - ThreadingBase.cpp line:163

**URL:** <https://forums.unrealengine.com/t/5-0ea-package-error-ensure-condition-failed-oldvalue-newvalue-threadingbase-cpp-line-163/505140>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine, UE5-0, editor, UE4-27, question\
**Created:** [March 8, 2022, 7:49pm UTC](https://forums.unrealengine.com/t/5-0ea-package-error-ensure-condition-failed-oldvalue-newvalue-threadingbase-cpp-line-163/505140 "2022-03-08T19:49:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_35672d06](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_35672d06](https://forums.unrealengine.com/u/anonymous_user_35672d06)\
**Post date:** [March 8, 2022, 7:49pm UTC](https://forums.unrealengine.com/t/5-0ea-package-error-ensure-condition-failed-oldvalue-newvalue-threadingbase-cpp-line-163/505140/1 "2022-03-08T19:49:18Z")

</div>

I have setup UE5 early access ,connected it to UGS, and use Visual studio 2019.  
When I build the editor I have this error pop up:

```auto
LogOutputDevice: Error: === Handled ensure: ===
LogOutputDevice: Error: Ensure condition failed: oldValue == newValue [File:D:/Haloween/Engine/Source/Runtime/Core/Private/HAL/ThreadingBase.cpp] [Line: 163]
LogOutputDevice: Error: oldValue(1) newValue(0) If this check fails make sure that there is a FTaskTagScope(ETaskTag::EGameThread) as deep as possible on the current callstack, you can see the current value in ActiveNamedThreads(110)

```

It doesn’t stop the editor from building and running just fine but it is preventing me from packaging the project. I checked to see if ActiveNamedThreads had the tag EGameThread and it did so Im at a loss about how to fix this error.

The callstack:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/c/fac3b07aa1fd8c0665888f91bb7cf68d4e10f92c.png)

---

<div class="post-metadata">

**Author:** ![Bdissa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bdissa](https://forums.unrealengine.com/u/Bdissa)\
**Post date:** [November 6, 2024, 9:43pm UTC](https://forums.unrealengine.com/t/5-0ea-package-error-ensure-condition-failed-oldvalue-newvalue-threadingbase-cpp-line-163/505140/2 "2024-11-06T21:43:00Z")

</div>

Did you ever figure this out? I am having the same issue.
