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

Failed to get IHolographicCameraRenderingParameters from main camera for updating rendering parameter.

Open CDiaz-MS opened this issue 6 years ago • 12 comments

Describe the bug

This error is logged when a hand enters the frame during remoting with HoloLens2.

Failed to get IHolographicCameraRenderingParameters from main camera for updating rendering parameter.

image

To reproduce

Steps to reproduce the behavior:

  1. Install remoting app on HoloLens 2 device
  2. Import latest unity foundation and examples packages, open hand interaction examples scene
  3. Window > XR > Holographic Emulation, enter ip address displayed through device
  4. https://docs.microsoft.com/en-us/windows/mixed-reality/unity-play-mode

Your Setup

  • Unity Version 2018.4.13f1
  • MRTK Version v2.2

Target Platform

  • HoloLens 2 Remoting

CDiaz-MS avatar Dec 05 '19 19:12 CDiaz-MS

i cannot reproduce this with the latest Windows Mixed Reality package (1.0.15) on Unity 2018.4.13f1

david-c-kline avatar Dec 06 '19 00:12 david-c-kline

@davidkline-ms / @keveleigh I can reproduce this on 2019.2.17f1

Looks like maybe Unity bug underneath? https://docs.microsoft.com/en-us/uwp/api/windows.graphics.holographic.holographiccamerarenderingparameters

Troy-Ferrell avatar Jan 08 '20 21:01 Troy-Ferrell

Spent a bit debugging this. Looks like a Unity issue, possibly caused / exacerbated by any perf cost of hand visualization / remoting. Unfortunately doesn't have an obvious fix that I can see, but I'll keep my eye on it.

keveleigh avatar Feb 21 '20 01:02 keveleigh

Hi there! Issue reproduced on Unity 2018.4.18f1 (LTS) + latest MRTK version

nooxouille avatar Mar 03 '20 09:03 nooxouille

We've identified a potential fix with Unity. I'll update this thread when I get an expected version number.

keveleigh avatar Mar 03 '20 18:03 keveleigh

Also reproduced with Unity 2019.3.3f1, no MRTK installed, WMR 4.2.1 package installed

ceitel avatar Mar 05 '20 23:03 ceitel

Seeing this in 2019.3.6f1 in clean scene with MR toolkit 2.3.0 (no hand mesh) . Also not seeing anything on device, it connects, screen goes black and nothing, but I see a room mesh/camera movement in the scene, so there is data going back to Unity.

Using the new XR plugin management system and the Windows XR Remoting plugin I do get video output, but no hand meshes etc.

Does anybody have Holographic Remoting working reliably with Unity day to day? If so, how?

matware avatar Mar 23 '20 10:03 matware

Looking like the fix for this should ship in Unity 2019.3.7 and 2018.4.19.

keveleigh avatar Mar 23 '20 17:03 keveleigh

Looking like the fix for this should ship in Unity 2019.3.7 and 2018.4.19.

Nice! Many thanks ;)

nooxouille avatar Mar 27 '20 16:03 nooxouille

2019.3.7 is now available! (as well as 2018.4.20) Can confirm the error is gone in 2019.3.7

ceitel avatar Mar 27 '20 18:03 ceitel

Yay, i finally checked and can also confirm that it work.

matware avatar Mar 28 '20 23:03 matware

Closing as fixed in Unity 2019.3.7 and 2018.4.19. Please comment if you're still seeing it in those versions!

keveleigh avatar Mar 30 '20 22:03 keveleigh