Unity OpenXR splash screen freeze

  • I keep getting this in my crash log for my VR game running the openXR platform for windows builds. This crash causes the game to freeze at the splash screen and prevents the game from loading

[XR] [15772] [10:53:19.910][Info ] ==== Report Reason: Uncaught Exception ====

[XR] [15772] [10:53:19.910][Info ] ==== OpenXR Init Info ====
[XR] [15772] [10:53:19.910][Info ]
[XR] [15772] [10:53:19.910][Info ] Stage 1 Missing Entry Points: (1)
[XR] [15772] [10:53:19.910][Info ] xrInitializeLoaderKHR
- ==== OpenXR Exception Thrown ====
[XR] [15772] [10:53:19.911][Info ]
[XR] [15772] [10:53:19.911][Info ] Error: XrResult failure [XR_ERROR_FORM_FACTOR_UNAVAILABLE]
[XR] [15772] [10:53:19.911][Info ] Origin: result
[XR] [15772] [10:53:19.911][Info ] Source: C:\build\output\unity\xr.sdk.openxr\NativePlugin\Source\unity_session.cpp:260
[XR] [15772] [10:53:19.911][Info ]
[XR] [15772] [10:53:19.911][Info ] ==== Std Exception Thrown ====
[XR] [15772] [10:53:19.911][Info ]
[XR] [15772] [10:53:19.911][Info ] Function: PreInit_Display_Setup::<lambda_4fbc124a0a834a46f47ad9f63094300a>:: operator ()
[XR] [15772] [10:53:19.911][Info ] Message: XrResult failure [XR_ERROR_FORM_FACTOR_UNAVAILABLE]
[XR] [15772] [10:53:19.911][Info ] Origin: result
[XR] [15772] [10:53:19.911][Info ] Source: C:\build\output\unity\xr.sdk.openxr\NativePlugin\Source\unity_session.cpp:260
[XR] [15772] [10:53:19.911][Info ]
[XR] [15772] [10:53:19.911][Info ] ==== Last 20 non-XR_SUCCESS returns ====
[XR] [15772] [10:53:19.911][Info ] [FAILURE] xrGetSystem: XR_ERROR_FORM_FACTOR_UNAVAILABLE (1x)```

Which unity version? Openxr version?

I was using unity 2021 LTS with the latest OpenXR package. I uninstalled unity and tried reinstalling again from scratch since I was also encountering some other problems but now I can’t even install any unity editor from the hub because the download keeps getting stuck at 99%. I’m also pretty sure that the reason OpenXR wasn’t working was because it didn’t download properly because when I tried downloading it for the first time with the package manager it kept getting stuck in “validating packages” loop so I had to close unity and reopen it.