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

Hand Menu Does Not work in XRSDK

Open Tabsher2 opened this issue 6 years ago • 13 comments

Describe the bug

Attempting to use the hand menu whilst using the XRSDK does not work. The hand menu does not appear when the palm is seen.

To reproduce

Steps to reproduce the behavior:

  1. Create Unity Project with MRTK 2.4 in Unity 2019.4.2f1
  2. Ensure XR Plugin Management, Windows XR Plugin, and XR Legacy Input Helpers are installed from the Package Manager.
  3. Open the "HandMenuExamples" scene from the MRTK 2.4 Examples unity package.
  4. Switch the Configuration Profile to default XRSDK configuration profile.
  5. Build and deploy to HoloLens 2 with Master Solution Configuration and ARM64 as the Solution Platform.
  6. Open app and attempt to use hand menus.

Expected behavior

Menus should appear above / next to the user's hands when the palms are seen.

Screenshots

The following error messages are thrown (depending on which hand the user attempts to use):

"HandConstraintPalmUp requires a palm joint, but none was provided by ArticulatedHand Controller Left." "HandConstraintPalmUp requires a palm joint, but none was provided by ArticulatedHand Controller Right."

Your setup (please complete the following information)

  • Unity 2019.4.2f1
  • Visual Studio 2019 v16.5.4
  • MRTK 2.4
  • XR SDK
  • ARM64

Target platform (please complete the following information)

  • HoloLens 2

Additional context

Upon my own investigation through the MRTK documentation, I believe the error might lie in the XRSDK Windows Mixed Reality Device Manager input provider, as according to the documentation, the Windows Mixed Reality Device Manager is what is supposed to provide WMR Articulated Hand control and according to the error message, that is what is failing.

Tabsher2 avatar Aug 25 '20 10:08 Tabsher2

@Tabsher2 are you building ARM64 or ARM (32)?

wiwei avatar Aug 25 '20 15:08 wiwei

Master and ARM64 sorry, let me add that to the description.

Tabsher2 avatar Aug 25 '20 15:08 Tabsher2

I am having a similar issue. I have been unable to get BoundingBox to work with XRSDK as well. I am also unable to get the Hand interaction examples from the toolkit to work on HoloLens 2 at all. I have at this point reverted back to Unity 2019.2.3 as described in the Microsoft Learning tutorial using the described configuration profile without XRSDK and still there is no menus appearing as expected. I am building on current VS2019. I have tried these Unity version, 2019.2.3, 2019.3.1, 2019.4.5, 2019.4.8, 2020.1 all with MRTK 2.4.0. My experience is thus far, nothing works as expected. I can get something working and something else breaks. Things work in Unity Player but fail on the HoloLens 2 device. So much does not work that it is difficult to tell where the bugs are. I am not seeing any errors on HoloLens 2 displayed, it simply fails to function silently.

laultman avatar Aug 25 '20 15:08 laultman

Follow up comment, my VS2019 configuration is Release, ARM64.

laultman avatar Aug 25 '20 15:08 laultman

Some configuration profile changes between the 2.4 release and current dev branch seems to have fixed the issue.

Tabsher2 avatar Aug 25 '20 21:08 Tabsher2

@Tabsher2 Hey,I am using MRTK2.4 on Unity 2019.4.4f1, I just tried to fix the issue follow the current dev branch that you mentioned above, but the hand menu still doesn't work. How can I fix it on MRTK2.4?Thanks

leorocku avatar Aug 28 '20 03:08 leorocku

This was fixed for the upcoming 2.5 release and in the dev branch via https://github.com/microsoft/MixedRealityToolkit-Unity/pull/8328, adding the Hand Joint Service to the input profile. You should be able to add it manually on previous releases to fix the hand menus.

keveleigh avatar Aug 31 '20 20:08 keveleigh

This was fixed for the upcoming 2.5 release and in the dev branch via #8328, adding the Hand Joint Service to the input profile. You should be able to add it manually on previous releases to fix the hand menus.

Great!Thank You!

leorocku avatar Sep 01 '20 08:09 leorocku

I am using MRTK 2.6 on Unity 2020.3. The HandMenus works but I still receive this error

LuuSangCntt avatar Jul 01 '21 10:07 LuuSangCntt

This warning also appears to me, using MRTK 2.7 on Unity 2019.4.24f1. It appears when I use the HandMenu_Small_HideOnHandDrop prefab. I think that the warning occurs whenever the tracked palm becomes visible or becomes hidden from the hololens. I can reliably get this warning if I but my tracked hand behind my back, hiding it from the hololens and then bringing it back up.

konstyanchev avatar Jul 15 '21 09:07 konstyanchev

On MRTK 2.6.1 and Unity 2020.3.6f1 the menu works but error persists and seems that it is causing also a pretty major FPS drop...

AdCCooN avatar Jul 27 '21 14:07 AdCCooN

The same is the case for MRTK 2.7.2 and Unity 2020.3.16f1. The menu works, but the error messages still occur.

dnlwbr avatar Aug 16 '21 07:08 dnlwbr

Still the same issue with MRTK 2.7.2 and Unity 2020.3.20f1. Really annoying.

Piflik avatar Nov 19 '21 15:11 Piflik