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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note (fix version 1.16.0):
the issue has been fixed in OpenXR Plugin Package 1.16.0.