Not signed in
Copyright © 2026 Unity Technologies
All the Hololens2 xr.xrautomated tests are currently failed and throw this error in the player.log:
2024-03-03T22:37:52.816Z|0x1ab0|[XR] [6832] [14:37:52.821][Error ] xrEnumerateInstanceExtensionProperties: XR_ERROR_RUNTIME_UNAVAILABLE [XR] [6832] [14:37:52.824][Error ] xrEnumerateInstanceExtensionProperties: XR_ERROR_RUNTIME_UNAVAILABLE ... [XR] [6832] [14:37:52.878][Error ] xrEnumerateInstanceExtensionProperties: XR_ERROR_RUNTIME_UNAVAILABLE [Subsystems] Loading plugin UnityOpenXR for subsystem OpenXR Display... 2024-03-03T22:37:52.884Z|0x1ab0|[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Display 2024-03-03T22:37:52.884Z|0x1ab0|[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Input 2024-03-03T22:37:52.884Z|0x1ab0|[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Display 2024-03-03T22:37:52.884Z|0x1ab0|[XR] [6832] [14:37:52.890][Error ] xrEnumerateInstanceExtensionProperties: XR_ERROR_RUNTIME_UNAVAILABLE [XR] [6832] [14:37:52.893][Error ] xrEnumerateInstanceExtensionProperties: XR_ERROR_RUNTIME_UNAVAILABLE [XR] [6832] [14:37:52.896][Error ] xrEnumerateInstanceExtensionProperties: XR_ERROR_RUNTIME_UNAVAILABLE [XR] [6832] [14:37:52.896][Info ] Available Layers: (0) [XR] [6832] [14:37:52.899][Error ] xrCreateInstance: XR_ERROR_RUNTIME_UNAVAILABLE [Subsystems] Failed to initialize subsystem OpenXR Display [error: 1] 2024-03-03T22:37:52.896Z|0x1ab0|[XR] [6832] [14:37:52.902][Error ] xrPollEvent: XR_ERROR_FUNCTION_UNSUPPORTED [XR] [6832] [14:37:52.904][Info ]
link to failing yamato job: [Internal link]
**
Steps to reproduce:
1. clone trunk
unity-downloader-cli -u trunk -c editor -c UWP -c il2cpp -p C:\UnitySrc\unity\editors\trunk\Editor --fast --wait
2. download or build UTR.exe after clone unity
Cd C:\Github\unity jam UWPPlayer jam StandaloneCoreTestRunner jam ManagedProjectFiles
3. clone [Internal link]
4. Open the [Internal link] project in Unity editor, go the players setting, change the package name and player name to "PlayerWithTests"
5. Go to xr.xrautomatedtests repo and in cmd run:
pip install requests
cd xr.xrautomatedtests
cd .yamato && python SetupScopedRegistry.py --name="com.microsoft.mixedreality.openxr" --version="latest" --scopes="com.microsoft.mixedreality" --url="https://pkgs.dev.azure.com/aipmr/MixedReality-Unity-Packages/_packaging/Unity-packages/npm/registry/" --manifest_path="../FunctionalTests/VR/Packages/manifest.json"
4. To build the project, in command prompt run
C:\Github\unity\Tests\bin\UTRStandaloneCoreWin\UnifiedTestRunner.exe --suite=playmode --editor-location="C:\Program Files\Unity\2023.3.0a14" --testproject="C:\Github\xr.xrautomatedtests\FunctionalTests\VR" --player-save-path="C:\Github\xr.xrautomatedtests\FunctionalTests\VR\buildDev_trunk\players" --artifacts_path="C:\Github\xr.xrautomatedtests\FunctionalTests\VR\buildDev_trunk\logs" --platform=WSAPlayer --scripting-backend=il2cpp --architecture=ARM64 --extra-editor-arg="-enabledxrtargets=OpenXR.WMR -playergraphicsapi=Direct3D11 -colorspace=Gamma -stereoRenderingPath=MultiPass -xrrundevice=Hololens -openxrfeatures=\[r:MixedRealityFeaturePlugin,r:HandTrackingFeaturePlugin,r:MicrosoftHandInteraction,r:MotionControllerFeaturePlugin,rg:MicrosoftHoloLens]\\" --extra-editor-arg=" " --build-only
(replace editor location with the trunk location, and replace the projects paths accordingly)
5. In command prompt run
set UNITY_METRO_UWP_DEVICE=HOLOLENS set HOLOLENS_USERNAME=qa-seattle set HOLOLENS_PASSWORD=unity351toklon set HOLOLENS_IP=127.0.0.1 set CPU_ARCHITECTURE=ARM64
(replace username and password with the ones used on device portal webpage, keep HOLOLENS_IP=127.0.0.1 unchanged and connect Hololens with PC by usb-c)
6. To deploy and run the project on Hololens
echo Grab local IPv4 Address for /f "tokens=1-2 delims=:" %%a in ('ipconfig ^| findstr /c:"IPv4 Address"') do set ip=%%b set IP=%ip:~1% echo "local ip:%IP%" C:\Github\unity\Tests\bin\UTRStandaloneCoreWin\UnifiedTestRunner.exe --suite=playmode --platform=WSAPlayer --player-load-path="C:\Github\xr.xrautomatedtests\FunctionalTests\VR\buildDev_trunk\players" --scripting-backend=il2cpp --artifacts_path="C:\Github\xr.xrautomatedtests\FunctionalTests\VR\buildDev_trunk\test-results" --player-connection-ip=%IP% --timeout=1800
The tests results will be placed at C:\Github\xr.xrautomatedtests\FunctionalTests\VR\buildDev_trunk\test-results
Actual results:
Check out the test-result/output/unityPlayer.log, it shows
XR_ERROR_RUNTIME_UNAVAILABLE
Expected results:
No error
Reproducible with versions:
com.unity.xr.openxr@1.10.0
Not reproducible with versions:
Can't test with versions:
Tested on (OS): windows
Notes:
Sign in to see your voted issues