Hello,
I have a Unity (2022.3.4f1) project with the OpenXR plugin (1.8.1). I use SteamVR as the runtime (1.26.7) and a Pico connected with a usb link cable. Most of the time when I start the project it fails when creating the XrInstance, when trying to create the subsystem for the OpenXR Display, causing Unity to hang. I get the error:
xrCreateInstance: XR_ERROR_RUNTIME_FAILURE
Here is the full Open XR diagnostic report:
==== Start Unity OpenXR Diagnostic Report ====
[XR] [16312] [16:28:44.922][Info ] ==== Report Reason: System Shutdown ====
[XR] [16312] [16:28:44.922][Info ] ==== OpenXR Init Info ====
[XR] [16312] [16:28:44.922][Info ]
[XR] [16312] [16:28:44.922][Info ] Stage 1 Missing Entry Points: (1)
[XR] [16312] [16:28:44.922][Info ] xrInitializeLoaderKHR
[XR] [16312] [16:28:44.922][Info ]
[XR] [16312] [16:28:44.922][Info ] ==== OpenXR Provider Info ====
[XR] [16312] [16:28:44.922][Info ]
[XR] [16312] [16:28:44.922][Info ] Spec Version: 1.0.27
[XR] [16312] [16:28:44.922][Info ] Provider Version: 1.8.2
[XR] [16312] [16:28:44.922][Info ] App: DisplaysUnity #3118937138
[XR] [16312] [16:28:44.922][Info ] Engine: 2022.3.4f1 #53494785
[XR] [16312] [16:28:44.922][Info ]
[XR] [16312] [16:28:44.922][Info ] ==== OpenXR Runtime Info ====
[XR] [16312] [16:28:44.923][Info ]
[XR] [16312] [16:28:44.923][Info ] Features requested to be enabled: (9)
[XR] [16312] [16:28:44.923][Info ] HP Reverb G2 Controller Profile: Version=0.0.1, Company="Unity", Extensions="XR_EXT_hp_mixed_reality_controller"
[XR] [16312] [16:28:44.923][Info ] HTC Vive Controller Profile: Version=0.0.1, Company="Unity"
[XR] [16312] [16:28:44.923][Info ] Khronos Simple Controller Profile: Version=0.0.1, Company="Unity"
[XR] [16312] [16:28:44.923][Info ] Microsoft Hand Interaction Profile: Version=0.0.1, Company="Unity", Extensions="XR_MSFT_hand_interaction"
[XR] [16312] [16:28:44.923][Info ] Microsoft Motion Controller Profile: Version=0.0.1, Company="Unity"
[XR] [16312] [16:28:44.923][Info ] Oculus Touch Controller Profile: Version=0.0.1, Company="Unity"
[XR] [16312] [16:28:44.923][Info ] Valve Index Controller Profile: Version=0.0.1, Company="Unity"
[XR] [16312] [16:28:44.923][Info ]
[XR] [16312] [16:28:44.923][Info ] Requested feature extensions not supported by runtime: (1)
[XR] [16312] [16:28:44.923][Info ] XR_MSFT_hand_interaction: Feature="Microsoft Hand Interaction Profile": Version=0.0.1, Company="Unity"
[XR] [16312] [16:28:44.923][Info ]
[XR] [16312] [16:28:44.923][Info ] Available Runtime Extensions: (25)
[XR] [16312] [16:28:44.923][Info ] XR_KHR_vulkan_enable: Version=8
[XR] [16312] [16:28:44.923][Info ] XR_KHR_vulkan_enable2: Version=2
[XR] [16312] [16:28:44.923][Info ] XR_KHR_D3D11_enable: Version=9
[XR] [16312] [16:28:44.923][Info ] XR_KHR_D3D12_enable: Version=9
[XR] [16312] [16:28:44.923][Info ] XR_KHR_opengl_enable: Version=10
[XR] [16312] [16:28:44.923][Info ] XR_KHR_win32_convert_performance_counter_time: Version=1
[XR] [16312] [16:28:44.923][Info ] XR_EXT_win32_appcontainer_compatible: Version=1
[XR] [16312] [16:28:44.923][Info ] XR_KHR_binding_modification: Version=1
[XR] [16312] [16:28:44.923][Info ] XR_KHR_composition_layer_depth: Version=6
[XR] [16312] [16:28:44.923][Info ] XR_KHR_visibility_mask: Version=2
[XR] [16312] [16:28:44.923][Info ] XR_EXT_active_action_set_priority: Version=1
[XR] [16312] [16:28:44.923][Info ] XR_EXT_dpad_binding: Version=1
[XR] [16312] [16:28:44.923][Info ] XR_EXT_frame_composition_report: Version=4
[XR] [16312] [16:28:44.923][Info ] XR_EXT_hand_tracking: Version=4
[XR] [16312] [16:28:44.923][Info ] XR_EXT_hand_joints_motion_range: Version=1
[XR] [16312] [16:28:44.923][Info ] XR_EXT_hp_mixed_reality_controller: Version=1
[XR] [16312] [16:28:44.923][Info ] XR_EXT_palm_pose: Version=2
[XR] [16312] [16:28:44.923][Info ] XR_FB_display_refresh_rate: Version=1
[XR] [16312] [16:28:44.923][Info ] XR_HTC_vive_cosmos_controller_interaction: Version=1
[XR] [16312] [16:28:44.923][Info ] XR_HTC_vive_focus3_controller_interaction: Version=2
[XR] [16312] [16:28:44.923][Info ] XR_HTC_vive_wrist_tracker_interaction: Version=1
[XR] [16312] [16:28:44.923][Info ] XR_MND_headless: Version=2
[XR] [16312] [16:28:44.923][Info ] XR_VALVE_analog_threshold: Version=2
[XR] [16312] [16:28:44.923][Info ] XR_HTCX_vive_tracker_interaction: Version=2
[XR] [16312] [16:28:44.923][Info ] XR_EXT_debug_utils: Version=4
[XR] [16312] [16:28:44.923][Info ]
[XR] [16312] [16:28:44.923][Info ] Available Layers: (0)
[XR] [16312] [16:28:44.923][Info ]
[XR] [16312] [16:28:44.923][Info ] ==== Last 20 non-XR_SUCCESS returns ====
[XR] [16312] [16:28:44.923][Info ] [FAILURE] xrCreateInstance: XR_ERROR_RUNTIME_FAILURE (1x)
[XR] [16312] [16:28:44.923][Info ]
[XR] [16312] [16:28:44.923][Info ] ==== Last 20 Events ====
[XR] [16312] [16:28:44.923][Info ]
==== End Unity OpenXR Diagnostic Report ====
I tried to use the OpenXR explorer, which also couldn’t get the XrInstance, so I imagine something goes wrong with SteamVR. I tried to reinstall it several times. Sometimes it works, with the same SteamVR version. On another PC it is the same, but on another one it works all the time. I am getting out of ideas of what can cause this. Any idea?