# Packaging failed after upgrading VR project from UE5.3.2 to 5.4.4

**URL:** <https://forums.unrealengine.com/t/packaging-failed-after-upgrading-vr-project-from-ue5-3-2-to-5-4-4/2021750>\
**Category:** XR Development\
**Tags:** unreal-engine, question\
**Created:** [September 15, 2024, 1:09pm UTC](https://forums.unrealengine.com/t/packaging-failed-after-upgrading-vr-project-from-ue5-3-2-to-5-4-4/2021750 "2024-09-15T13:09:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Puffyvee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Puffyvee](https://forums.unrealengine.com/u/Puffyvee)\
**Post date:** [September 15, 2024, 1:09pm UTC](https://forums.unrealengine.com/t/packaging-failed-after-upgrading-vr-project-from-ue5-3-2-to-5-4-4/2021750/1 "2024-09-15T13:09:36Z")

</div>

I am unable to package a VR project I’ve been working on a while after updating to Unreal 5.4. The packaging fails almost right after starting the cook command

The last bits of output log are here (Editor outlog: [LogUObjectHash: Compacting FUObjectHashTables data took 0.80msLogTurnkeySupp - Pastebin.com](https://pastebin.com/6qx7SaUV));

```auto
UATHelper: Packaging (Windows): [2024-09-15 05:50:27.480] [info] [Config.cpp:59] API layer configuration file does not exist, skipping
UATHelper: Packaging (Windows): Error [GENERAL | xrCreateInstance | OpenXR-Loader] : LoaderInstance::CreateInstance chained CreateInstance call failed
UATHelper: Packaging (Windows): Took 4,20s to run UnrealEditor-Cmd.exe, ExitCode=-1073740940
UATHelper: Packaging (Windows): Cook failed.
UATHelper: Packaging (Windows): (see C:\Users\Detocroix\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Games+Unreal+Store+UE_5.4\Log.txt for full exception trace)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 11s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Cook Failure

```

The exception trace log is here: [Log started at 15.9.2024 5.50.17 (2024-09-15T02:50:17Z)Starting AutomationTool - Pastebin.com](https://pastebin.com/p95tcw33)

I feel like something has changed or is happening with OpenXR, but my skills and understanding kinda end in Editor, and I don’t know much beyond that. I’ve tried googling and I’ve tried different Unreal 5.4.X versions, but all of them have the same end result, while in 5.3 builds work great.

Anyone have any idea on how to fix it?

Thanks!

---

<div class="post-metadata">

**Author:** ![Puffyvee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Puffyvee](https://forums.unrealengine.com/u/Puffyvee)\
**Post date:** [September 18, 2024, 4:27am UTC](https://forums.unrealengine.com/t/packaging-failed-after-upgrading-vr-project-from-ue5-3-2-to-5-4-4/2021750/2 "2024-09-18T04:27:16Z")

</div>

If I make a fresh 5.4.4 project, I’m able to make a VR build, but I have no idea why I can’t upgrade my existing project 😰

---

<div class="post-metadata">

**Author:** ![VictorLerp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorlerp/32/738381_2.png) [@VictorLerp](https://forums.unrealengine.com/u/VictorLerp)\
**Post date:** [September 18, 2024, 6:16am UTC](https://forums.unrealengine.com/t/packaging-failed-after-upgrading-vr-project-from-ue5-3-2-to-5-4-4/2021750/3 "2024-09-18T06:16:43Z")

</div>

Hey!

Posting the full log in `C:\Users\Detocroix\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Games+Unreal+Store+UE_5.4\Log.txt` would help someone troubleshoot it.

---

<div class="post-metadata">

**Author:** ![Puffyvee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Puffyvee](https://forums.unrealengine.com/u/Puffyvee)\
**Post date:** [September 18, 2024, 12:37pm UTC](https://forums.unrealengine.com/t/packaging-failed-after-upgrading-vr-project-from-ue5-3-2-to-5-4-4/2021750/4 "2024-09-18T12:37:26Z")

</div>

Hello! It is the " The exception trace log is here: [Log started at 15.9.2024 5.50.17 (2024-09-15T02:50:17Z)Starting AutomationTool - Pastebin.com](https://pastebin.com/p95tcw33)" in the first post. I probably used a wrong term for it though

---

<div class="post-metadata">

**Author:** ![Puffyvee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Puffyvee](https://forums.unrealengine.com/u/Puffyvee)\
**Post date:** [September 21, 2024, 8:52pm UTC](https://forums.unrealengine.com/t/packaging-failed-after-upgrading-vr-project-from-ue5-3-2-to-5-4-4/2021750/5 "2024-09-21T20:52:45Z")

</div>

Anyone have any ideas? I still haven’t been able to figure it out, I feel like the only solution is to stick with 5.3 :\<

---

<div class="post-metadata">

**Author:** ![Puffyvee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Puffyvee](https://forums.unrealengine.com/u/Puffyvee)\
**Post date:** [September 27, 2024, 1:30pm UTC](https://forums.unrealengine.com/t/packaging-failed-after-upgrading-vr-project-from-ue5-3-2-to-5-4-4/2021750/6 "2024-09-27T13:30:47Z")

</div>

Sorry for upping this, still need help kinda critically

---

<div class="post-metadata">

**Author:** ![VictorLerp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorlerp/32/738381_2.png) [@VictorLerp](https://forums.unrealengine.com/u/VictorLerp)\
**Post date:** [September 27, 2024, 7:49pm UTC](https://forums.unrealengine.com/t/packaging-failed-after-upgrading-vr-project-from-ue5-3-2-to-5-4-4/2021750/7 "2024-09-27T19:49:31Z")

</div>

Make sure that you have android Build-tools 34.0.0 installed, and the following project settings:

Min and Target SDK = 32  
SDK API Level = android-32  
NDK API Level = android-29

---

<div class="post-metadata">

**Author:** ![Puffyvee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Puffyvee](https://forums.unrealengine.com/u/Puffyvee)\
**Post date:** [September 29, 2024, 1:05am UTC](https://forums.unrealengine.com/t/packaging-failed-after-upgrading-vr-project-from-ue5-3-2-to-5-4-4/2021750/8 "2024-09-29T01:05:11Z")

</div>

Heya! Do I really need Android build tools for Windows VR builds?

Regardless, I tried setting the Android sdk/ndk target numbers, but still failing

I also tried removing OpenXR plugin and renabling it after restart, no effect. I did also try changing SM support for Windows builds, but no effect :\<

---

<div class="post-metadata">

**Author:** ![Puffyvee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Puffyvee](https://forums.unrealengine.com/u/Puffyvee)\
**Post date:** [October 5, 2024, 2:03pm UTC](https://forums.unrealengine.com/t/packaging-failed-after-upgrading-vr-project-from-ue5-3-2-to-5-4-4/2021750/9 "2024-10-05T14:03:47Z")

</div>

Unreal 5.5 preview 1 gave me a clear bug report on this;

```auto
No valid Visual C++ toolchain was found (minimum version 14.38.33130). Please download and install Visual Studio 2022 17.8 or later and verify that the "MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)" component is selected in the Visual Studio 2022 installation options.

Total execution time: 1.42 seconds

Visual Studio 2022 x64 must be installed in order to build this target.

```

Which was fixed by reinstalling Vs 2022, but that didn’t fix the build failing.

full exception trace:  
[https://pastecode.io/s/hp5os4ov](https://pastecode.io/s/hp5os4ov) (edit: UE site claims you cannot post pastebin links anymore)

I have no idea how to fix it, everything works perfectly in UE 5.3 and no problems in editor for 5.4 nor 5.5 preview, but it’s impossible to make builds

---

<div class="post-metadata">

**Author:** ![markramus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@markramus](https://forums.unrealengine.com/u/markramus)\
**Post date:** [October 31, 2024, 5:26pm UTC](https://forums.unrealengine.com/t/packaging-failed-after-upgrading-vr-project-from-ue5-3-2-to-5-4-4/2021750/11 "2024-10-31T17:26:46Z")

</div>

I encountered the exact same issue. It seemed to be something wrong with the steamVR OpenXR runtime that was causing it for me. Switching the openXR runtime back to the oculus one fixed it and allowed me to build without issue. I used [this handy tool](https://github.com/WaGi-Coding/OpenXR-Runtime-Switcher) to switch between the two runtimes as needed. Best of luck!
