Search Issue Tracker
Active
Votes
0
Found in
6000.2.8f1
6000.3.0b6
6000.4.0a2
Issue ID
UUM-121988
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)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
- GC.Alloc called by HDRenderPipeline.LensFlareMergeOcclusionDataDrivenPass() when playing the default HDRP Sample Template project
- Automatic LOD fails and SRP Batcher incompatibility occurs when using spline-based quad-topology meshes
Add comment