MixedRealityToolkit-Unity: Exceptions thrown when playing via Holographic Remote Player
NullReferenceException in GGVPointer.OnPreSceneQuery
When following the ‘getting started with MRTK Guide’ and opening the HandInteractoinExamplesScene or any other scene, an exception is thrown when gazing upon an Item. Playing the Scene via Holographic Remoting Player.
To reproduce
Prequesites
- download and import MRTK Foundation and Examples packages (v2.0.0 RC1 Refresh)
- download and insall Holographic Remoting Player on HoloLens 1
- Set Unity Target Platform to UWP
- In XR settings, enable Virtual Reality, add MRTK to list
Steps
- Create a new Scene in Unity
- Top Panels > Mixed Reality Toolkit > Add to Scene and Configure
- Add a Cube GameObject
- Properly scale and place the object in the scene
translation:
x: 0; y: 0; z:2;scale:x: 0.2; y: 0.2; z: 0.2; - Create and add a script containing the following:
using Microsoft.MixedReality.Toolkit.Input;public class CubeSelector : MonoBehaviour, IMixedRealityInputHandlervoid IMixedRealityInputHandler.OnInputDown(InputEventData eventData){/*any simple functionality*/}void IMixedRealityInputHandler.OnInputUp(InputEventData eventData){/*any simple functionality*/}
Expected behavior
When gazing upon a selectable item (Cube in custom scene or any object in the HandInteractionExamples demo scene) and selecting it by gesture, the defined selection behaviour should apply.
Screenshots


In GGVPointer.cs:

Your Setup (please complete the following information)
- Unity Version [e.g. 2018.3.14f1]
- MRTK Version [e.g. v2.0.0 RC1 Refresh]
Target Platform (please complete the following information)
- HoloLens
Additional context
I am just getting started with HoloLens development (moreover I’m completely alone so noone can help me with their experience). When running examples in the editor everything works as expected (except that I have to click 2-3 times before the interaction is recognized. When using the holographic remoting player, and playing any scene via HoloLens(1), I get a crash either upon gaze or AirTap Gesture.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (6 by maintainers)
Yep, that’s a new one to me. Let’s keep this open to track that issue.
I’m currently travelling away from hardware access, so I’ll be a week or so out from being able to physically repro this. Someone else on the team may be able to jump in to help here, but just calling things out for transparency.