OpenXR Failed to enumerate number of extension properties
Hello,
I tried to add VTK OpenXR integration to an existing project. https://www.kitware.com/stream-vtk-to-the-hololens-2/ like desbcribed here.
Steps to reproduce:
-
added the Nuget package Microsoft.Holographic.Remoting.OpenXr to VTK.
-
Added to Following paths in cmake:
"path to vtk"\vtk-master\build\packages\Microsoft.Holographic.Remoting.OpenXr.2.8.1\build\native\bin
"path to vtk"\vtk-master\build\packages\Microsoft.Holographic.Remoting.OpenXr.2.8.1\build\native\include\openxr -
I built OpenXR-SDK and also added the Path to the 2 required dirs.
-
I added the example code from: https://gitlab.kitware.com/vtk/vtk/-/blob/master/Rendering/OpenXRRemoting/Testing/Cxx/TestOpenXRRemotingInitialization.cxx to my project to test if it's working. I modified the example and hardcoded the IP of the Hololens 2 in there.
-
Started Player application on Hololens 2
Expected result:
After running my Project the sample scene elements can be seen on the Hololens 2.
Observed result:
After running my Project I get following error:
2023-01-26 14:12:10.534 ( 1.189s) [ ] vtkOpenXRManager.cxx:47 WARN| (nullptr): Failed to initialize connection strategy.
2023-01-26 14:12:10.564 ( 1.218s) [ ]vtkOpenXRRenderWindow.c:128 ERR| vtkOpenXRRemotingRenderWindow (00000200142E13C0): Failed to initialize OpenXRManager
Troubleshooting:
I added the following files to the install location of VTK in the bin folder
from:
"path to vtk"\vtk-master\build\packages\Microsoft.Holographic.Remoting.OpenXr.2.8.1\build\native\bin\x64\Desktop\
PerceptionDevice.dll
Microsoft.Holographic.AppRemoting.OpenXr.dll
Microsoft.Holographic.AppRemoting.OpenXr.SU.dll
RemotingXR.json
I then get a different error
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntime skipping manifest file C:\WINDOWS\system32\MixedRealityRuntime.json, negotiation failed with error -6
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - failed to load a runtime
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed to find default runtime with RuntimeInterface::LoadRuntime()
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed querying extension properties
Error [GENERAL | xrResultToString | OpenXR-Loader] : No active XrInstance handle.
2023-01-26 13:53:39.107 ( 1.120s) [ ] vtkOpenXRManager.cxx:458 ERR| (nullptr): Failed to enumerate number of extension properties [ý»▼7].