Search Issue Tracker
Fixed
Fixed in 1.16.0
Votes
0
Found in [Package]
1.16.0-pre.2
Issue ID
OXRB-670
Regression
No
Adding Meta Quest build Profile throws “NullReferenceException” and “Exception while executing InitializeOnLoad” errors in Console window
Steps to reproduce:
1. Create new Unity project
2. Open Build Profiles window
3. Press “Add Build Profile” button
4. Select Meta Quest Platform
5. At the bottom right, press “Add Build Profile”
6. Observe the Console
Actual results: “NullReferenceException” and “Exception while executing InitializeOnLoad” errors are thrown in the Console window
Expected results: No errors are thrown
Reproducible with versions: 6000.2.8f1, 6000.3.0b6, 6000.4.0a2
Can’t test with versions: 6000.0.60f1 (unable to add Meta Quest Platform)
Tested on (OS): macOS Silicon, Tahoe 26.0 (M1)
Errors:
- NullReferenceException: Object reference not set to an instance of an object UnityEditor.XR.OpenXR.OpenXRProjectValidation.GetLoaderFeaturesNamesWithString (System.String text) (at ./Library/PackageCache/com.unity.xr.openxr@c214a38a25f1/Runtime/OpenXRProjectValidation.cs:416)
UnityEditor.XR.OpenXR.OpenXRProjectValidation..cctor () (at ./Library/PackageCache/com.unity.xr.openxr@c214a38a25f1/Runtime/OpenXRProjectValidation.cs:34)
Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.XR.OpenXR.OpenXRProjectValidation' threw an exception.
- Exception while executing InitializeOnLoad for OpenXRProjectValidationRulesSetup.OpenXRProjectValidationCheck
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadMethodAttributes () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorAssemblies.cs:157)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on CollectAllSceneManagerAndObjectIDs when opening a specific Scene
- GPU device suspended error when replaying a video in the Video Player with NVIDIA Vertical Sync set to Fast
- GPU device suspended error when replaying a video in the Video Player with NVIDIA Vertical Sync set to Fast
- SetComponentEnabled uses class instead of struct when constraining Enableable Component type
- [iOS] Application.deepLinkActivated does not get invoked while app is running when UIApplicationSceneManifest is added in Info.plist
Resolution Note (fix version 1.16.0):
the issue has been fixed in OpenXR Plugin Package 1.16.0.