microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

Holographic Remoting breaks in play mode with XRInputSubsystem errors #8860

Closed brandf closed 9 months ago

brandf commented 3 years ago

Describe the bug

When using Holographic Remoting with XR Management I regularly get errors in the console that look like this:

[XRInputSubsystem] A device disconnection with the id 2000000037 has been reported but no device with that id was connected.

It seems to happen somewhat randomly,

At first I thought it was disconnecting or something, but then I realized it was just pausing Unity, and I can click 'play' several times to bipass them. This workaround is annoying and slows me down though.

To reproduce

Steps to reproduce the behavior:

  1. Use XR Managment
  2. Basic Unity scene with XR SDK (not even MRTK)
  3. Connect to Holographic Remoting with wifi or USB
  4. sometimes you randomly get that error spammed to the logs several times, with unity pausing each time.

Expected behavior

none of that happens, Holographic Remoting should work reliably.

Your setup (please complete the following information)

Target platform (please complete the following information)

MaxWang-MS commented 3 years ago

I have encountered this as well but as you mentioned this is unlikely to be a MRTK issue. Maybe @keveleigh can provide more information on the issue? Also the reason that your application pauses after the error pops up could be you enabled error pause in the console window. Disabling it should resolve the pausing issue.

brandf commented 3 years ago

Feel free to triage it to another repo if this isn't related to MRTK - it's not obvious which tool windows come from MRTK vs XR Management. It's all just "microsoft stuff" afaik.

SajjadRostami commented 3 years ago

Describe the bug

When using Holographic Remoting with XR Management I regularly get errors in the console that look like this:

[XRInputSubsystem] A device disconnection with the id 2000000037 has been reported but no device with that id was connected.

It seems to happen somewhat randomly,

At first I thought it was disconnecting or something, but then I realized it was just pausing Unity, and I can click 'play' several times to bipass them. This workaround is annoying and slows me down though.

To reproduce

Steps to reproduce the behavior:

  1. Use XR Managment
  2. Basic Unity scene with XR SDK (not even MRTK)
  3. Connect to Holographic Remoting with wifi or USB
  4. sometimes you randomly get that error spammed to the logs several times, with unity pausing each time.

Expected behavior

none of that happens, Holographic Remoting should work reliably.

Your setup (please complete the following information)

  • Unity Version 2019.4 LTS
  • MRTK Version v2.5

Target platform (please complete the following information)

  • HoloLens 2

Hi @brandf I have faced the same error which you had. Could you please let me know how did you solve it? Best

MaxWang-MS commented 3 years ago

Hi, it seems that the issue you are encountering is a Unity bug. Could you file a bug with Unity by going to Help (in the Unity editor menu bar) → Report a bug... and post a link to the Unity Issue Tracker page once it's created so that the community can get updates on the bug? Thanks!

SajjadRostami commented 2 years ago

It happens to me when my Internet bandwidth is weak. Try to increase your Internet bandwidth.

RubenGarcia commented 2 years ago

I am also affected, Unity version 2020.3.32f1.

IssueSyncBot commented 9 months ago

We appreciate your feedback and thank you for reporting this issue.

Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.

Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.

Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.

Thank you for your continued support of the Mixed Reality Toolkit!