# UE5 5.0 branch build error - Chaos

**URL:** <https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629>\
**Category:** World Creation\
**Tags:** unreal-engine, UE5-0, Physics\
**Created:** [November 12, 2021, 6:48pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629 "2021-11-12T18:48:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![69\_Tensors](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/69_tensors/32/88718_2.png) [@69\_Tensors](https://forums.unrealengine.com/u/69_Tensors)\
**Post date:** [November 12, 2021, 6:48pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/1 "2021-11-12T18:48:10Z")

</div>

I’m trying to build UE5 from the 5.0 branch using VS2022 Current. I’ve compiled it before with no errors shortly after the branch was created, but now I get stuck with the following problem.

Running **GenerateProjectFiles.bat** spits out the following error, which fails to find something for Chaos in a non-existent “\Restricted\NotForLicensees” folder. If I go ahead and try to build anyway, it fails.

Anyone encountered this, or have any advice on a work-around? I’m pretty new to building Unreal from source and this is out of my depth.

Thanks!

```auto
Binding IntelliSense data...
WARNING: Exception while generating include data for HeadlessChaos: Unable to instantiate module 'HeadlessChaos': System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\username\Documents\GitHub\UnrealEngine\Engine\Restricted\NotForLicensees\Build'.
     at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
     at System.IO.Enumeration.FileSystemEnumerator`1.Init()
     at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
     at System.IO.Enumeration.FileSystemEnumerableFactory.UserEntries(String directory, String expression, EnumerationOptions options)
     at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
     at System.IO.Directory.GetFileSystemEntries(String path)
     at LowLevelTests.UpdateBuildGraphPropertiesFile() in C:\Users\username\Documents\GitHub\UnrealEngine\Engine\Source\Programs\LowLevelTests\LowLevelTests.Build.cs:line 90
     at LowLevelTests..ctor(ReadOnlyTargetRules Target) in C:\Users\username\Documents\GitHub\UnrealEngine\Engine\Source\Programs\LowLevelTests\LowLevelTests.Build.cs:line 67
     at HeadlessChaos..ctor(ReadOnlyTargetRules Target) in C:\Users\username\Documents\GitHub\UnrealEngine\Engine\Source\Programs\HeadlessChaos\HeadlessChaos.Build.cs:line 16
  (referenced via HeadlessChaos.Target.cs)[/list]
Binding IntelliSense data... 100%

```

---

<div class="post-metadata">

**Author:** ![LaneAlt](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lanealt/32/88710_2.png) [@LaneAlt](https://forums.unrealengine.com/u/LaneAlt)\
**Post date:** [November 12, 2021, 7:23pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/2 "2021-11-12T19:23:23Z")

</div>

Hi @69_Tensors,

I believe the 5.0 branch is not stable and being used for active development for the upcoming 5.0 release.

If you want a stable compile I recommend the ue5-earlyaccess branch.

---

<div class="post-metadata">

**Author:** ![69\_Tensors](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/69_tensors/32/88718_2.png) [@69\_Tensors](https://forums.unrealengine.com/u/69_Tensors)\
**Post date:** [November 12, 2021, 7:31pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/3 "2021-11-12T19:31:32Z")

</div>

Thanks for the reply.

I’ve actually been using the early access branch for a while, but I’ve been encountering the D3D DXGI\_ERROR\_DEVICE\_REMOVED error reported in threads like this: [Runtime D3D Crash of Ue5-ValleyOfTheAncients](https://forums.unrealengine.com/t/runtime-d3d-crash-of-ue5-valleyoftheancients/232545) especially when using raytracing.

I know it could be a driver problem, but I’ve been trying my luck at building a newer branch of UE5 in hopes of getting a more stable experience. That said, if the branch is under active development, it’s not going to be a reliable solution.

---

<div class="post-metadata">

**Author:** ![Antoshkaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Antoshkaster](https://forums.unrealengine.com/u/Antoshkaster)\
**Post date:** [November 12, 2021, 8:06pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/4 "2021-11-12T20:06:41Z")

</div>

> [@LaneAlt](#):
>
> I believe the 5.0 branch is not stable and being used for active development for the upcoming 5.0 release.
> 
> If you want a stable compile I recommend the ue5-earlyaccess branch.

ue5-early access is absolutely outdated and both 5.0 and ue5-main branches are in much better state than early access.

On Linux system 5.0 branch is more stable than ue5-main

---

<div class="post-metadata">

**Author:** ![Antoshkaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Antoshkaster](https://forums.unrealengine.com/u/Antoshkaster)\
**Post date:** [November 12, 2021, 8:09pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/5 "2021-11-12T20:09:15Z")

</div>

> [@69\_Tensors](#):
>
> Anyone encountered this, or have any advice on a work-around? I’m pretty new to building Unreal from source and this is out of my depth.

try to completely remove Engine/Intermediate directory prior to generating and build.

---

<div class="post-metadata">

**Author:** ![69\_Tensors](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/69_tensors/32/88718_2.png) [@69\_Tensors](https://forums.unrealengine.com/u/69_Tensors)\
**Post date:** [November 12, 2021, 11:38pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/6 "2021-11-12T23:38:50Z")

</div>

Thanks for the suggestion; I tried, but no luck.

ue5-main and 5.0 produce the same error. I’ve deleted and re-cloned both repositories twice, and have even purged and reinstalled VC2022 just in case.

The generation script is clearly looking for a Restricted folder under …\Engine\ that is not being provided by the repo or the UE5-Prerequisites…

I suppose I’ll just have to wait this out and see if a future commit fixes it.

---

<div class="post-metadata">

**Author:** ![Antoshkaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Antoshkaster](https://forums.unrealengine.com/u/Antoshkaster)\
**Post date:** [November 13, 2021, 1:00am UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/7 "2021-11-13T01:00:26Z")

</div>

As that message is just a WARNING why it stops compilation? Maybe you just have to disable VC22 “stop on warning” somehow?

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [November 14, 2021, 2:35pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/8 "2021-11-14T14:35:41Z")

</div>

Hi @69_Tensors,  
I have made many builds, recently on the 12th November 2021, a change was added and now the patch is to create the directory so in the Windows Command shell.

> C:\> mkdir C:\Users\Owner\source\repos\ue50\Engine\Restricted\NotForLicensees  
> where ue50 is the root of my branch  
> then **GenerateProjectFiles.bat** -2022  
> again and my generate works.

There were 1709 updates to the 5.0 repository which got automatically copied into one of my forks as well because I did one small update!.

My Quixel forked repo had a slight name change due to the final release of VS2022 day, but it still works.  
[jimshalo10/UnrealEngine-5: Update the Quixel Plugin to the latest version 2012.0.04. The original Early Access 2 branch for VS2022 is “ue5EA-vs2022” (github.com)](https://github.com/jimshalo10/UnrealEngine-5)

---

<div class="post-metadata">

**Author:** ![69\_Tensors](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/69_tensors/32/88718_2.png) [@69\_Tensors](https://forums.unrealengine.com/u/69_Tensors)\
**Post date:** [November 14, 2021, 4:30pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/9 "2021-11-14T16:30:23Z")

</div>

Hi @Jimbohalo10,

THANK YOU. I can hardly believe it, but your suggestion absolutely fixed it. I just created the _ **empty missing folder** _ “…\Engine\Restricted\NotForLicensees\Build” and re-generated. VS2022 built it with zero errors.

I’m almost embarrassed that was such a simple fix!

FYI, **GenerateProjectFiles.bat** now raises a warning if you pass the -2022 flag in the Terminal, and directs you to update your BuildConfiguration.xml file instead, as follows:

```auto
         <?xml version="1.0" encoding="utf-8" ?>
         <Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
           <ProjectFileGenerator>
             <Format>VisualStudio2022</Format>
           </ProjectFileGenerator>
         </Configuration>

```

I did that, and am happily running a successful build. Thanks again.

---

<div class="post-metadata">

**Author:** ![NAVAMA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/navama/32/917170_2.png) [@NAVAMA](https://forums.unrealengine.com/u/NAVAMA)\
**Post date:** [November 25, 2021, 10:32pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/10 "2021-11-25T22:32:00Z")

</div>

Your solution work so well. Now I am testing 5.1 😍 !

---

<div class="post-metadata">

**Author:** ![GlenAJohnsonJr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GlenAJohnsonJr](https://forums.unrealengine.com/u/GlenAJohnsonJr)\
**Post date:** [December 5, 2021, 10:48pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/11 "2021-12-05T22:48:27Z")

</div>

@Jimbohalo10,  
Thanks for the post. It worked for me as well

---

<div class="post-metadata">

**Author:** ![dxconnery](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dxconnery](https://forums.unrealengine.com/u/dxconnery)\
**Post date:** [December 27, 2021, 7:32pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/12 "2021-12-27T19:32:32Z")

</div>

Is anyone else not able to get the solution above to work? In VS2022 as admin on Windows 11, and on the ue5-main branch, I’ve:

- created the additional folder and double checked the spelling
- edited the BuildConfiguration.xml in both AppData and the file itself
- re-run GenerateProjectFiles.bat (with and without flag)
- tried both Build and Rebuild

but I always get this same error above at the very end. Any recommendations other than just waiting for the stable branch? Is there an additional step not obvious to newbies, like deleting all or part of the current dirs when rebuilding?

I assume it must be something really simple that I’m not doing, since everyone has it working?

---

<div class="post-metadata">

**Author:** ![MothDoctor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mothdoctor/32/1194551_2.png) [@MothDoctor](https://forums.unrealengine.com/u/MothDoctor)\
**Post date:** [December 27, 2021, 9:22pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/13 "2021-12-27T21:22:50Z")

</div>

> [@dxconnery](#):
>
> I assume it must be something really simple that I’m not doing, since everyone has it working?

Make sure you’re compiling only your project, not the entire solution with all additional programs. Your IDE might be set to compile something else than a project, when opening IDE for the first time.

---

<div class="post-metadata">

**Author:** ![dxconnery](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dxconnery](https://forums.unrealengine.com/u/dxconnery)\
**Post date:** [December 28, 2021, 12:57am UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/14 "2021-12-28T00:57:39Z")

</div>

Hmm, it’s only for the UE5 engine build, so no additional programs. I am seeing that all my dir, like the Build folder created, are read-only and that there is a known issue with Windows 11 reverting to read-only. Taking steps to fix that now to see if it’s somehow related.

---

<div class="post-metadata">

**Author:** ![ChonusaN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChonusaN](https://forums.unrealengine.com/u/ChonusaN)\
**Post date:** [December 28, 2021, 3:30pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/15 "2021-12-28T15:30:05Z")

</div>

Anyone else have this problem using the engine after succesfully build it?  
If i open a blank project or the puzzle template it works fine, but if i try to open an existing 5.0 project or use any other epic templates to create a new project the engine crashes at 95% loading with this error

```auto
Assertion failed: IsInGameThread() [File:E:\ue5source\UnrealEngine-ue5-main\Engine\Source\Runtime\Core\Private\HAL\ConsoleManager.cpp] [Line: 556]

UnrealEditor_Core!FConsoleVariable<bool>::GetPlatformValueVariable() [E:\ue5source\UnrealEngine-ue5-main\Engine\Source\Runtime\Core\Private\HAL\ConsoleManager.cpp:556]
UnrealEditor_RenderCore!FShaderPlatformCachedIniValue<bool>::Get() [E:\ue5source\UnrealEngine-ue5-main\Engine\Source\Runtime\RenderCore\Public\RenderUtils.h:550]
UnrealEditor_Engine!FGPUBaseSkinAPEXClothVertexFactory::IsClothEnabled() [E:\ue5source\UnrealEngine-ue5-main\Engine\Source\Runtime\Engine\Private\GPUSkinVertexFactory.cpp:1213]
UnrealEditor_Engine!FSkeletalMeshObjectGPUSkin::ProcessUpdatedDynamicData() [E:\ue5source\UnrealEngine-ue5-main\Engine\Source\Runtime\Engine\Private\SkeletalRenderGPUSkin.cpp:685]
UnrealEditor_Engine!FSkeletalMeshObjectGPUSkin::UpdateDynamicData_RenderThread() [E:\ue5source\UnrealEngine-ue5-main\Engine\Source\Runtime\Engine\Private\SkeletalRenderGPUSkin.cpp:566]
UnrealEditor_Engine!<lambda_465020887a9e532308a20119da2809fd>::operator()() [E:\ue5source\UnrealEngine-ue5-main\Engine\Source\Runtime\Engine\Private\SkeletalRenderGPUSkin.cpp:447]
UnrealEditor_Engine!TEnqueueUniqueRenderCommandType<`FSkeletalMeshObjectGPUSkin::Update'::`2'::SkelMeshObjectUpdateDataCommandName,<lambda_465020887a9e532308a20119da2809fd> >::DoTask() [E:\ue5source\UnrealEngine-ue5-main\Engine\Source\Runtime\RenderCore\Public\RenderingThread.h:184]
UnrealEditor_Engine!TGraphTask<TEnqueueUniqueRenderCommandType<`FSkeletalMeshObjectGPUSkin::Update'::`2'::SkelMeshObjectUpdateDataCommandName,<lambda_465020887a9e532308a20119da2809fd> > >::ExecuteTask() [E:\ue5source\UnrealEngine-ue5-main\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:980]
UnrealEditor_Core!FNamedTaskThread::ProcessTasksNamedThread() [E:\ue5source\UnrealEngine-ue5-main\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:753]
UnrealEditor_Core!FNamedTaskThread::ProcessTasksUntilQuit() [E:\ue5source\UnrealEngine-ue5-main\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:642]
UnrealEditor_Core!FTaskGraphCompatibilityImplementation::ProcessThreadUntilRequestReturn() [E:\ue5source\UnrealEngine-ue5-main\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:2115]
UnrealEditor_RenderCore!RenderingThreadMain() [E:\ue5source\UnrealEngine-ue5-main\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:377]
UnrealEditor_RenderCore!FRenderingThread::Run() [E:\ue5source\UnrealEngine-ue5-main\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:518]
UnrealEditor_Core!FRunnableThreadWin::Run() [E:\ue5source\UnrealEngine-ue5-main\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:146]

```

---

<div class="post-metadata">

**Author:** ![69\_Tensors](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/69_tensors/32/88718_2.png) [@69\_Tensors](https://forums.unrealengine.com/u/69_Tensors)\
**Post date:** [December 28, 2021, 5:21pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/16 "2021-12-28T17:21:11Z")

</div>

@ChonusaN

Yes. I can build with zero errors, but any UE5 project crashes with this error on load.

I can import UE4 projects and they work pretty consistently, but any new projects, or opening UE5 projects, generates the same Assertion error that you have.

This has been true of any source build over the last 2 weeks or so. Some commit broke something and I’m not C++ savvy enough to fix it myself.

---

<div class="post-metadata">

**Author:** ![ChonusaN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChonusaN](https://forums.unrealengine.com/u/ChonusaN)\
**Post date:** [December 28, 2021, 5:48pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/17 "2021-12-28T17:48:27Z")

</div>

Yea i tried all the branches of the last week and have the same problem  
Lets hope some fix gets commited soon

---

<div class="post-metadata">

**Author:** ![dxconnery](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dxconnery](https://forums.unrealengine.com/u/dxconnery)\
**Post date:** [January 4, 2022, 3:14am UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/18 "2022-01-04T03:14:39Z")

</div>

Has anyone tried lately? I’ve been watching the fixes from the other posts here:

> [@Source Build problem on UE5](https://forums.unrealengine.com/t/source-build-problem-on-ue5/269813/2):
>
> Some error for me. Wait developers fixing this bug

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [January 4, 2022, 5:46pm UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/19 "2022-01-04T17:46:58Z")

</div>

Hi All,  
There is a git pull request/patch (PR) which references this problem

> This mitigates the issue where the UE5 editor crashes upon creating or opening a newly created UE5 project using the following branches: **5.0** , **ue5-main**.  
> Below is the error stacktrace of the Assert fail after UE5 crashes:

```auto
Assertion failed: IsInGameThread()

```

The PR is  
[Crash: Don’t attempt platform override for CVar in non-render-thread by kristjanvalur · Pull Request #8738 · EpicGames/UnrealEngine (github.com)](https://github.com/EpicGames/UnrealEngine/pull/8738)

---

<div class="post-metadata">

**Author:** ![dxconnery](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dxconnery](https://forums.unrealengine.com/u/dxconnery)\
**Post date:** [January 8, 2022, 11:09am UTC](https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/20 "2022-01-08T11:09:22Z")

</div>

It looks like the PR was accepted 4 days ago. Has anyone had a chance to check? I’m starting from scratch this weekend, and I’ll post my updates.
