MixedRealityToolkit-Unity: When unloading and loading a new scene (Non additive), managers do not reinitialize properly
Does this affect the legacy HoloToolkit (master) or the Mixed Reality Toolkit (mrtk_release)? mrtk_development
Describe the bug
GazeInput is not registered on Start. RaiseSourceDetected is called in GazeProvider#OnStart but await WaitUntilInputSystemValid does not continue.
When quitting application Assertion fails:
Assertion failed: Gaze was never registered with the Input Manager!
UnityEngine.Debug:Assert(Boolean, String)
Microsoft.MixedReality.Toolkit.SDK.Input.MixedRealityInputManager:RaiseSourceLost(IMixedRealityInputSource, IMixedRealityController) (at Assets/MixedRealityToolkit-SDK/Features/Input/MixedRealityInputManager.cs:521)
Microsoft.MixedReality.Toolkit.SDK.Input.GazeProvider:OnDisable() (at Assets/MixedRealityToolkit-SDK/Features/Input/GazeProvider.cs:343)
To Reproduce Steps to reproduce the behavior:
- Start a scene with MixedRealityManager and a GazeProvider with Default Cursor
- Cursor is not visible
- Cursor does not appear on object with collider
Actual behavior Cursor stays in the middle of the head and is inactive
Unity Editor Version 2018.1.9f2
Mixed Reality Toolkit Release Version vNext (mrtk_development) Rev: 7c960a6e46c331171900f24e09e3935e6ccc583a
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 23 (23 by maintainers)
Ok perfect. I moved the MxrManager to the offline scene because the inital master scene does nothing than initializing the networkmanager and our services. The networkmanager automatically switches over to the offline scene where first interactions take place. And there is now the mxrmanager,… Thank you!
@wassx I was able to fix this by moving the LoadScene to the update and loaded after pressing space bar instead of loading the scene immediately on start.
again, be sure to have the camera profile persistence enabled.
GazeTest_basic.zip Updated example
Okay, I’ll try and figure out a test environment to repro this like we did at the summit.
Yes. Additionally there is an error:
XR: OpenVR Error! OpenVR failed initialization with error code VRInitError_Init_HmdNotFound: "Hmd Not Found (108)"!despite there is no OpenVr controller mapping set. Don’t know if this could be related.