Skip to main content
New Participant
February 11, 2026
Question

Playmode tests in Azure pipeline crashes because MetaSDK

Hello,

Adding Meta SDK makes my pipeline to fail because of a crash.

If I run the tests opening Unity in the Agent, they run without any issue

If I run the script in my personal PC, it also works

This is the line

"C:/Program Files/Unity/Hub/Editor/2022.3.71f1/Editor/Unity.exe" -batchmode -runTests -testPlatform PlayMode

This is the crash log

Spoiler

UnityEngine.XR.OpenXR.OpenXRLoaderBase:ReceiveNativeEvent (UnityEngine.XR.OpenXR.Features.OpenXRFeature/NativeEvent,ulong) (at ./Library/PackageCache/com.unity.xr.openxr@1.16.1/Runtime/OpenXRLoader.cs:707)

UnityEngine.XR.OpenXR.OpenXRLoaderBase:Deinitialize () (at ./Library/PackageCache/com.unity.xr.openxr@1.16.1/Runtime/OpenXRLoader.cs:481)

UnityEngine.XR.OpenXR.OpenXRLoaderBase:Initialize () (at ./Library/PackageCache/com.unity.xr.openxr@1.16.1/Runtime/OpenXRLoader.cs:213)

UnityEngine.XR.Management.XRManagerSettings:InitializeLoaderSync () (at ./Library/PackageCache/com.unity.xr.management@4.5.4/Runtime/XRManagerSettings.cs:186)

UnityEngine.XR.Management.XRGeneralSettings:InitXRSDK () (at ./Library/PackageCache/com.unity.xr.management@4.5.4/Runtime/XRGeneralSettings.cs:172)

UnityEngine.XR.Management.XRGeneralSettings:AttemptInitializeXRSDKOnLoad () (at ./Library/PackageCache/com.unity.xr.management@4.5.4/Runtime/XRGeneralSettings.cs:145)

 

(Filename: ./Library/PackageCache/com.meta.xr.sdk.core@83.0.4/Scripts/OpenXRFeatures/MetaXRFeature.cs Line: 296)

 

[MetaXRFeature] OnInstanceDestroy: 0

UnityEngine.StackTraceUtility:ExtractStackTrace ()

UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])

UnityEngine.Logger:Log (UnityEngine.LogType,object)

UnityEngine.Debug:Log (object)

Meta.XR.MetaXRFeature:OnInstanceDestroy (ulong) (at ./Library/PackageCache/com.meta.xr.sdk.core@83.0.4/Scripts/OpenXRFeatures/MetaXRFeature.cs:239)

UnityEngine.XR.OpenXR.Features.OpenXRFeature:ReceiveNativeEvent (UnityEngine.XR.OpenXR.Features.OpenXRFeature/NativeEvent,ulong) (at ./Library/PackageCache/com.unity.xr.openxr@1.16.1/Runtime/Features/OpenXRFeature.cs:724)

UnityEngine.XR.OpenXR.OpenXRLoaderBase:ReceiveNativeEvent (UnityEngine.XR.OpenXR.Features.OpenXRFeature/NativeEvent,ulong) (at ./Library/PackageCache/com.unity.xr.openxr@1.16.1/Runtime/OpenXRLoader.cs:707)

UnityEngine.XR.OpenXR.OpenXRLoaderBase:Deinitialize () (at ./Library/PackageCache/com.unity.xr.openxr@1.16.1/Runtime/OpenXRLoader.cs:481)

UnityEngine.XR.OpenXR.OpenXRLoaderBase:Initialize () (at ./Library/PackageCache/com.unity.xr.openxr@1.16.1/Runtime/OpenXRLoader.cs:213)

UnityEngine.XR.Management.XRManagerSettings:InitializeLoaderSync () (at ./Library/PackageCache/com.unity.xr.management@4.5.4/Runtime/XRManagerSettings.cs:186)

UnityEngine.XR.Management.XRGeneralSettings:InitXRSDK () (at ./Library/PackageCache/com.unity.xr.management@4.5.4/Runtime/XRGeneralSettings.cs:172)

UnityEngine.XR.Management.XRGeneralSettings:AttemptInitializeXRSDKOnLoad () (at ./Library/PackageCache/com.unity.xr.management@4.5.4/Runtime/XRGeneralSettings.cs:145)

 

(Filename: ./Library/PackageCache/com.meta.xr.sdk.core@83.0.4/Scripts/OpenXRFeatures/MetaXRFeature.cs Line: 239)

 

 

=================================================================

Native Crash Reporting

=================================================================

Got a UNKNOWN while executing native code. This usually indicates

a fatal error in the mono runtime or one of the native libraries

used by your application.

=================================================================

 

=================================================================

Managed Stacktrace:

=================================================================

at <unknown> <0xffffffff>

at Meta.XR.MRUtilityKit.MRUKNative:LoadLibrary <0x00100>

at Meta.XR.MRUtilityKit.MRUKNative:GetDllHandle <0x000c2>

at Meta.XR.MRUtilityKit.MRUKNative:LoadMRUKSharedLibrary <0x00262>

at Meta.XR.MRUtilityKit.MRUK:InitializeSharedLibrary <0x0021a>

at System.Object:runtime_invoke_void <0x00184>

=================================================================

##[error]Cmd.exe exited with code '255'.

[OVRPlugin][ERROR] [XRCMD][failure] [XR_ERROR_RUNTIME_UNAVAILABLE]: xrCreateInstance(&createInfoCorrectOpenXRVersion, instance), arvr\projects\integrations\OVRPlugin\Src\Util\CompositorOpenXR.cpp:19295 (arvr\projects\integrations\OVRPlugin\Src\Util/CompositorOpenXR.h:363)[OVRPlugin][ERROR] Compositor invalid (arvr\projects\integrations\OVRPlugin\Src\OVR_Plugin_UnityOpenXR.cpp:304)

Finishing: RuntimeTest Unity project

1 reply

New Participant
March 17, 2026

It looks like the crash is tied to how Meta SDK behaves in headless batchmode within Azure agents, possibly missing dependencies or initialization steps that don’t surface locally. You might want to trace environment differences or logging depth to pinpoint where LemLedger-style pipeline consistency breaks between local and CI runs.