By TheGreenBeret
on Mon, 01/31/2022 - 10:13
Hi, I download the latest HoloLens sample (v10.4.4) from the AssetsStore and configured the project step by step. Everything is working fine except this weird error that appears in the console at start. It's related to OpenXR Loaders.
NullReferenceException - Vuforia/Scripts/Internal/RuntimeOpenSourceInitializer.cs:119
I noticed that xrManager.activeLoader stay NULL forever in UnityEditor, is this behaviour desired?
Should I ignore that NullReferenceError at startup in Editor? Will it be fixed in the future?
class UnityXRBridge : IUnityXRBridge { public UnityXRBridge() { RegisterCallbacks(); } void RegisterCallbacks() { var xrSettings = XRGeneralSettings.Instance; var xrManager = xrSettings.Manager; var xrLoader = xrManager.activeLoader; var xrInput = xrLoader.GetLoadedSubsystem<XRInputSubsystem>(); xrInput.trackingOriginUpdated += TrackingOriginUpdated; }
Hey there,
Hey there,
Which Unity version are you using to setup the Hololens project?
Kind regards,
Patrick Scheper
Technical Community Manager
Hi,
Hi,
Unity 2020.3.26f1 LTS with UWP support.
Same issue with Unity 2021.2
Same issue with Unity 2021.2.9f1
[url=https://ibb.co/8bCdcg6][img]https://i.ibb.co/bF02J5z/Immagine-2022-02-01-145251.jpg[/img][/url]
Hey there,
Hey there,
Thanks for highlighting and sorry you're encountering this problem. I'll see if I can reproduce the issue...
In the meantime, can you upgrade to 2021.2.10f1 to see if that solves the issue?
Kind regards,
Patrick Scheper
I'm having the exact same
I'm having the exact same issue. Unity 2020.3.28f1 LTS with UWP support. MRTK 2.3.3. Vuforia 10.5.5
I noticed that this problem occurs if you add OpenXR via MixedRealityFeatureTool
SWAGamaz wrote:
[quote=SWAGamaz]
I'm having the exact same issue. Unity 2020.3.28f1 LTS with UWP support. MRTK 2.3.3. Vuforia 10.5.5
I noticed that this problem occurs if you add OpenXR via MixedRealityFeatureTool
[/quote]