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

Motion controller has a high chance of being not recognized in Unity 2018.2.10

Open marklinmao opened this issue 8 years ago • 10 comments

Does this affect the legacy HoloToolkit (master) or the Mixed Reality Toolkit (mrtk_release)? HoloToolkit

Describe the bug Motion controller not recognized in Unity 2018.2.10f0. The model fails back to a white cube and no response to trigger events

To Reproduce (Links to sample GitHub project preferred) Steps to reproduce the behavior:

  1. Create a new Unity project, import MRTK, Apply the project settings (for 'occluded headset') and scene settings.
  2. Connect headset and 'play'.
  3. Click the trigger on the controller
  4. See error Please refer to the attached image for exception info.

Expected behavior The

Actual behavior You will see the there is high change (80%) that the controller is not recognized(it falls back to be visualized as a white cube), while 20% chance it is. This problem was not existing in earlier version(e.g. 2018.1.1f1) of Unity.

Screenshots lostcontorllerproblem

Unity Editor Version 2018.2.10f0

Mixed Reality Toolkit Release Version HoloToolkit-Unity-2017.4.1.0

marklinmao avatar Sep 30 '18 15:09 marklinmao

I'm also seeing this issue in 2018.2.9f1. Very annoying.

Cheesecakes avatar Oct 05 '18 16:10 Cheesecakes

Any news about this issue, please?

marklinmao avatar Oct 12 '18 09:10 marklinmao

FYI. When I tried to debug this issue, I noticed something interesting: whenever you attach visual studio to Unity in debug mode, this problem doesn't appear.

marklinmao avatar Oct 12 '18 10:10 marklinmao

FWIW, I've found that if you delete the ControllerRect prefab from the Alternate Left Controller and Alternate Right Controller fields (replacing both with None), the correct controller model is more likely to show up – more likely, but still not always. I don't really understand where the controller model is coming from (it doesn't appear as a model in the assets folder – apparently it's retrieved from EditorMotionController.cpp on the fly somehow) – but my uneducated guess is that if for any reason there's some delay in loading the standard controller model, it gives up & immediately falls back to the Alternate Controllers – and maybe if there's no Alternate Controller to fall back to it doesn't give up quite so quickly? (just a guess, and probably wrong). Annoying to say the least

phoberman avatar Oct 23 '18 20:10 phoberman

@keveleigh Please fix it, it has blocked the normal development!

jerrygg avatar Nov 21 '18 01:11 jerrygg

@jerrygg Please take a look at #3181. I believe this is fixed in that PR.

keveleigh avatar Nov 21 '18 20:11 keveleigh

@keveleigh It is now running normally, thank you very much.

jerrygg avatar Nov 22 '18 10:11 jerrygg

As I verified, it is fixed! Thank you @keveleigh !

marklinmao avatar Nov 22 '18 21:11 marklinmao

This should be fixed in the 2017.4.3 release. Please reopen if not.

keveleigh avatar Nov 26 '18 19:11 keveleigh

Nice to hear that, Thank!

Best Regards, Mao LIN

Kurtis [email protected] 于 2018年11月26日周一 20:51写道:

This should be fixed in the 2017.4.3 release. Please reopen if not.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Microsoft/MixedRealityToolkit-Unity/issues/2861#issuecomment-441774550, or mute the thread https://github.com/notifications/unsubscribe-auth/AEgE_Z0hfapPqptLRPiUBH14WZA_5w4sks5uzEZWgaJpZM4XBBgV .

marklinmao avatar Nov 26 '18 19:11 marklinmao