microsoft / OpenXR-MixedReality

OpenXR samples and preview headers for HoloLens and Windows Mixed Reality developers familiar with Visual Studio
https://aka.ms/openxr
MIT License
340 stars 96 forks source link

Run-time error #41

Closed pkovacs86 closed 4 years ago

pkovacs86 commented 4 years ago

I tried to run the SampleSceneWin32 sample but I got the following error: Error [GENERAL | | OpenXR-Loader] : RuntimeManifestFile::FindManifestFiles - failed to find active runtime file in registry Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - unknown error Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - failed to find a valid runtime Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed to find default runtime with RuntimeInterface::LoadRuntime() Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed querying extension properties Exception thrown at 0x00007FFA78B9A859 in SampleSceneWin32.exe: Microsoft C++ exception: std::logic_error at memory location 0x0000008646AFCE18. [17-13-10.748871] (t:2f00): Unhandled Exception: XrResult failure [XR_ERROR_INSTANCE_LOST] Origin: xrEnumerateInstanceExtensionProperties(layerName, 0, &extensionCount, nullptr) Source: C:\temp\OpenXR-MixedReality-master\shared\XrUtility\XrEnumerate.h:25

yl-msft commented 4 years ago

@pkovacs86 This error happens when you've not properly setup OpenXR runtime on your computer. Have you tried to follow the instruction here? Are you using Hololens? or a desktop VR headset? https://docs.microsoft.com/en-us/windows/mixed-reality/openxr-getting-started

Especially try this app "OpenXR Developer Tools" and see your runtime installation status: image

pkovacs86 commented 4 years ago

Thank you, https://postimg.cc/rDkHNq8T