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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (fix version 1.16.0):
the issue has been fixed in OpenXR Plugin Package 1.16.0.