Search code examples
unity-game-enginehololensmrtk

Hololens2 with MRTK 2.6.1 Losing Head Pose after device Sleep


On Hololens2 if the device goes to sleep (or press the power button off then on) and resume my app I lose head pose tracking.

I'm using MRTK 2.6.1 with Unity 2019.4.18f and the XR SDK approach.

I'm testing using the instructions here https://learn.microsoft.com/en-us/windows/mixed-reality/develop/unity/tutorials/mr-learning-base-02?tabs=winxr

I'm using the DefaultHololens2XRSDKConfiguration profile.

Everything is generally fine, but after I put the headset down and it goes to sleep, or i press the power button off and on. Then launch my app again (it's still running in the background), then the head tracking is lost.

The wrist tap menu is still tracked fine. The app seems to be getting hand tracking fine (but is offset becaues the head pose position is stuck.

If i close the app and open again tracking is fine.

No errors show up in the Unity debug log (even with verbose MRTK logging on).

Any ideas? Or anyone else able to test this with similar setup?

I might try the Open XR approach next. Cheers


Solution

  • This is a known issue with a fix in development still, it is recommended to keep checking the Unity releases for 2019 with getting on latest LTS for now.