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

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);

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

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!

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 :cold_sweat:

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.

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" in the first post. I probably used a wrong term for it though

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

Sorry for upping this, still need help kinda critically

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

1 Like

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

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

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

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 to switch between the two runtimes as needed. Best of luck!