openxr-explorer icon indicating copy to clipboard operation
openxr-explorer copied to clipboard

Thankyou for this tool, please could advise on XR_ERROR_RUNTIME_FAILURE

Open evanswillo opened this issue 3 years ago • 8 comments

After a fresh Windows 11 install and WMR App install I see the following message xrCreateSession error XR_ERROR_RUNTIME_FAILURE, is there an explanation or further debug I can look at. Screenshot 2022-01-07 180929 Regard Richard

evanswillo avatar Jan 07 '22 18:01 evanswillo

I am having the same issue on windows 10 with runtime version 108.211.23004

Interestingly the OpenXR Developer Tools for Windows Mixed Reality Demo Scene loads and runs correctly, so creating a XrSession seems possible. But my own code calling xrCreateSession gets the same XR_ERROR_RUNTIME_FAILURE result.

If I change the runtime to SteamVR everything works correctly, so I think this specifically a WMR issue.

RocketTree avatar Jan 10 '22 22:01 RocketTree

HI, thanks for taking the time to look at this. I agree with your findings the STEAMVR runtime does not display the same error message. The reason I am looking at this issue is because when I use another utility that load in a OpenXR API Layer for NVIDIA Image Scaling (NIS), then although the API Layer appears to function in the OpenXR Dev Tool I was seeing two error messages, Home Tab it is saying XrResult failure [XR_ERRO _FILE_ACCESS_ERROR] Origin: xrCreateInstance(&createInfo,instance.Put()) System Status Tab Unknown OpenXR Runtime Runtime manifest C:\WINDOWS\system32\MixedRealityRuntime.json Exception XrResult failure [XR_ERROR_FILE_ACCESS_ERROR] Origin: xrCreateInstance(&createInfo,instance.Put())

What is typically strange after days of investigation the error message in OPENXR Explorer remains but the issue in OPENXR Developer seems to have corrected itself.

The only change I have make was to install steamvr, maybe the toggle between these two OPENXR runtimes has somehow fixed the issue that caused the errors in the OPENXR Developer tool .

But would still like to understand the error in OPENXR Explorer

Regards Richard

evanswillo avatar Jan 12 '22 10:01 evanswillo

I have posted this over on the Khronos OpenXR forums as I think it may get a better answer from there. I think this is a Microsoft problem, not specifically an issue with this application. I can't seem to find any Microsoft OpenXR specific forum to post this issue to, but perhaps the developer of this tool may know where to direct such questions.

Edit: Link https://community.khronos.org/t/xrcreatesession-returning-xr-error-runtime-failure-for-windows-mixed-reality/108165

RocketTree avatar Jan 12 '22 20:01 RocketTree

Just seeing this now. @evanswillo and @RocketTree, if you are using my NIS tool, this is likely the issue of when it's not installed in the default folder.

https://github.com/mbucchia/XR_APILAYER_NOVENDOR_nis_scaler/issues/9

This issue is resolved in the next version of the NIS tool.

This is not an issue of the OpenXR Explorer.

mbucchia-msft avatar Jan 28 '22 18:01 mbucchia-msft

Hi, I am not using the NIS tool or the OpenXr Toolkit. So there may be some underlying issue with WMR OpenXR implementation. I agree this is not an issue with OpenXR Explorer.
I have submitted this as a bug to via the Windows Feedback hub

RocketTree avatar Jan 31 '22 19:01 RocketTree

Hi @RocketTree, did you get any updates from MS on this? I'm working on getting OpenComposite-OpenXR working for a few games and run into this issue on a couple of games but not others. OpenExplorer also has the runtime failure for me, so possibly these are related. As OpenComposite is working for one game and not another (which then works with SteamVR's OpenXR runtime), it might be something to do with how D3D is being setup or some other initialisation that is incompatible with MS's OpenXR runtime.

Jabbah avatar Feb 12 '22 15:02 Jabbah

Hi @Jabbah, I have not had any update from MS. I had thought it could be D3D related but didn't notice anything different between the samples which work and our engine. I will check again because I could have missed something.

Our D3D11 codebase works on SteamVR and Oculus VR (Quest 2 via airlink) but still nothing on direct WMR.

Are any of the games you are testing on open source? It would be good to look through any working or not working codebases to try and find some possible differences.

RocketTree avatar Feb 13 '22 21:02 RocketTree

@RocketTree and @Jabbah, I've replied on the Khronos forum here: https://community.khronos.org/t/xrcreatesession-returning-xr-error-runtime-failure-for-windows-mixed-reality/108165/8

Please take a look.

I think meanwhile you should close the issue on this project, since the failure is likely not related to @maluoi's OpenXR Explorer.

Thanks!

mbucchia-msft avatar Mar 02 '22 22:03 mbucchia-msft