Previous hand rays are visible when blooming out and back in
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
Marking as Urgency-Soon because it is a user-visible defect.
@julenka is this something you can fix, or should this go to luis?
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.
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.
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.
Started on this.
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).
this is happening in v2 refresh for us. would you recommend then updating to mrtk_development?
I will test with mrtk_development update and report back
Also verified that the finger cursors correctly disappear in the handinteractionallexamples scene
mrtk_development did not help, I will try with default profile
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.
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.
ok, I will do further investigations on our side. Seem we can reproduce it with Unity 2018.3 and 2019.1.
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.