MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Hand joint positions do not regain tracking after temporary loss of hand tracking.

Open HaydenLeeteUC opened this issue 5 years ago • 5 comments

Describe the bug

Occasionally when hand tracking is lost, the joint positions for that hand are not discarded nor subsequently updated when hand tracking is regained.

When tracking of the hand is regained, an additional persistent hand mesh that does not disappear when tracking is lost is rendered on top of the hand in question's last known pose. In the video attached under Screenshots, you can see there are a total of three hand meshes being rendered after the bug occurs. All hand meshes track their hands correctly before and after the bug occurs, but the joint positions are not updated correctly after the bug occurs.

I am not able to find a more reliable method of repoducing this bug other than repeatedly moving hands out of the headset's FOV, but it occurs regularly while testing my apps. The tracking does not resume normal function until the app is restarted.

To reproduce

Steps to reproduce the behavior: Project Setup:

  1. Create new Unity project and import MRTK.
  2. Set MixedRealityToolkit profile to DefaultXRSDKConfigurationProfile. Edit: Enable XR Plug-in mangament in project settings
  3. Add gameobject with mesh and Orbital solver.

In app reproduction of bug:

  1. Move hand out of tracking view of the headset, then back in.

Expected behavior

No duplicate hand meshes are displayed, and joint tracking resumes on physical hand instead of the old hand joint data

Screenshots

Shows expected behaviour the first time hand lost and regained, Followed by faulty behaviour the second time. https://youtu.be/-8yrjCxPk3k

Your setup

  • Unity 2019.4.17f1
  • MRTK v2.5.3
  • Also observed using MRTK v2.4.0 and Unity 2019.4.4f1

Target platform

  • HoloLens 2

HaydenLeeteUC avatar Jan 20 '21 02:01 HaydenLeeteUC

Hey @elbuhofantasma, can you repro and see if this happens in legacy vs just XR SDK?

polar-kev avatar Jan 20 '21 18:01 polar-kev

I seem to have the same problem. While using my HoloLens2 app, more hands get stuck and freeze in the scene. image I'm using Unity 2020.1.10f1 (but same happens in Unity 2020.2.2f1) and using MRTK 2.5.3, Any ideas how to fix this?

raymondpols avatar Feb 03 '21 20:02 raymondpols

Same problem here, but it came up only in the last few weeks. I think the chance for "ghost hands" increased with cpu load, but I can't pin any special cause.

ModischFabrications avatar Feb 25 '21 12:02 ModischFabrications

This sounds related to https://github.com/microsoft/MixedRealityToolkit-Unity/issues/9165

keveleigh avatar Feb 26 '21 00:02 keveleigh

The stuck hand tracking should be fixed via #9890 in the upcoming 2.7.0 release. Please re-open if you're still able to repro on 2.7.0.

keveleigh avatar May 26 '21 23:05 keveleigh