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
- Dropdown property is cut off and adds unnecessary side padding when a Sub Graph is used as a node in Shader Graph
- All text in the Project Settings Window is still Tinted White after deleting Text in the Search Window
- "WebGL Template" icons disappear when building the project with the Project Settings opened
- Variant Family window UI issues when Prefab title is long
- Player crash when switching focus in Exclusive Fullscreen mode with DirectX 12
Resolution Note (fix version 1.16.0):
the issue has been fixed in OpenXR Plugin Package 1.16.0.