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

Previous hand rays are visible when blooming out and back in

Open mgrman opened this issue 7 years ago • 15 comments

Describe the bug

Hand rays getting stuck if you "bloom" out of the app and going back. Old hand rays get stuck and new hand rays pop up. So you can see 3 or more hand rays at the same time.

To reproduce

On device, in app, if you hit the home button with hand rays visible and then bloom to shell. And open the app the previous hand rays are visible and new ones come up.

NOTE: This does not reproduce on Unity 2018.3.9f1, Release build using .NET backend

Expected behavior

Only new hand rays are visible

Your Setup (please complete the following information)

  • Unity Version 2019.1.1
  • MRTK Version v2.0.0
  • IL2CPP
  • Master build

Target Platform (please complete the following information)

  • HoloLens 2

mgrman avatar May 06 '19 22:05 mgrman

Marking as Urgency-Soon because it is a user-visible defect.

julenka avatar May 06 '19 23:05 julenka

@julenka is this something you can fix, or should this go to luis?

Yoyozilla avatar May 09 '19 21:05 Yoyozilla

I think either of us could do it, I'm happy to do it. I've got quite a number of issues on me, I'm currently doing this one: https://github.com/microsoft/MixedRealityToolkit-Unity/issues/4176. Might be good to give to Luis if he is not actively working on urgency-soon issues. But otherwise I can keep it on me.

julenka avatar May 09 '19 23:05 julenka

This seems to happen also with finger pointers, not just hand rays. There is a KeyAlreadyExists exception thrown in OnSourceDetected in MixedRealityInputModule (refresh version), changing the file to version from mrtk_development branch prevents exception but pointers are still stuck.

mgrman avatar May 10 '19 16:05 mgrman

Thanks for posting more details! It's on me right now, I'm currently on #4176 but will look at this as soon as that PR is out. If it's P0 urgency-now issue, we may want to try finding somebody else to look at it, since I'll probably only have the PR for #4176 out by mid-day today.

julenka avatar May 10 '19 16:05 julenka

Started on this.

julenka avatar May 10 '19 17:05 julenka

Hi @mgrman I am actually not able to repro this on the latest mrtk_development branch, on my particular HoloLens 2 device. Could you please verify that you are seeing this behavior in the HandInteractionAllExamples scene in the latest mrtk_development? You could also send me your application package and I can test if it is fixed in my OS version (perhaps there was an OS level change to fix application on pause not working that may have fixed this issue).

julenka avatar May 10 '19 17:05 julenka

this is happening in v2 refresh for us. would you recommend then updating to mrtk_development?

mgrman avatar May 10 '19 17:05 mgrman

I will test with mrtk_development update and report back

mgrman avatar May 10 '19 17:05 mgrman

Also verified that the finger cursors correctly disappear in the handinteractionallexamples scene

julenka avatar May 10 '19 18:05 julenka

mrtk_development did not help, I will try with default profile

mgrman avatar May 10 '19 18:05 mgrman

Can you confirm that in your mrtk_development branch that in the HandInteractionExamples scene the rays do not disappear? If we can verify that then we know there is a difference between the example implementation and your implementaiton.

julenka avatar May 10 '19 18:05 julenka

Marking this as no repro because it does not reproduce in the MRTK example scene, however it does reproduce in the customer application. The issue might be with the mgrman's application itself, not MRTK.

julenka avatar May 10 '19 18:05 julenka

ok, I will do further investigations on our side. Seem we can reproduce it with Unity 2018.3 and 2019.1.

mgrman avatar May 10 '19 21:05 mgrman

I further verified that this does not repro in 2018.3 IL2CPP release build. I noticed that mgrman can repro issue with 2018.3 IL2CPP release build. Therefore, I think the issue is unfortunately with the customer application, not MRTK.

julenka avatar May 11 '19 03:05 julenka