Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

1.10.0

Issue ID

OXRB-318

Regression

Yes

XR_ERROR_RUNTIME_FAILURE on Hololens 2

Package: OpenXR Plugin

-

All the Hololens2 xr.xrautomated tests are currently failed and throw this error in the player.log:

 
{code:java}
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 ] {code}
 

link to failing yamato job: https://unity-ci.cds.internal.unity3d.com/job/34735914/artifacts
**

*Steps to reproduce:*
1. clone trunk
{code:java}
unity-downloader-cli -u trunk -c editor -c UWP -c il2cpp -p C:\UnitySrc\unity\editors\trunk\Editor --fast --wait{code}
2. download or build UTR.exe after clone unity

{code:java}
Cd C:\Github\unity
jam UWPPlayer
jam StandaloneCoreTestRunner
jam ManagedProjectFiles{code}
3. clone https://github.cds.internal.unity3d.com/unity/xr.xrautomatedtests/
4. Open the https://github.cds.internal.unity3d.com/unity/xr.xrautomatedtests/tree/trunk/FunctionalTests/VR 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:

{code:java}
pip install requests{code}
{code:java}
cd xr.xrautomatedtests{code}
{code:java}
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"{code}

4. To build the project, in command prompt run

{code:java}
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{code}
(replace editor location with the trunk location, and replace the projects paths accordingly)
5. In command prompt run

{code:java}
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{code}
(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

 
{code:java}
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
{code}
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 
{code:java}
XR_ERROR_RUNTIME_UNAVAILABLE{code}
*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:*
*  

  1. Resolution Note:

    There are no fixes planned for this Bug

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.