- Home /
Inquire about Unity OpenXR runtime support
Questions are as follows.
Doesn't Unity Editor support monado runtime on Android? If not, is there a plan to support the Unity version upgrade in the future? : reference monado link : https://monado.freedesktop.org/
If the Unity Editor currently supports the monado runtime, is there a guide to make it work on Android?
< Analysis contents >
I tried to operate as below.
I have built and installed Monado runtime apk on Android devices in advance. After that, I installed all OpenXR Plugin through UnityEditor packageManager, imported OpenXR sample example project, and completed build And Run.
I tried all of the Unity openxr plugin samples (controller, Meshing Subsystem Feature, Intercept Feature).
Both build and run were successful.
Unity openxr apk has been successfully installed on my Android device.
But Unity openxr apk does not work properly.
The related log is as below.
Looking at the log, openxr runtime loader fail occurs during initialization.
I've tried several things in the Unity editor.
However, it is confirmed that the Unity openxr apk cannot load the monado runtime on Android device
03-06 17:51:42.244 21212 21237 E Unity : Failed to load openxr runtime loader.
03-06 17:51:42.244 21212 21237 E Unity : UnityEngine.XR.OpenXR.OpenXRLoaderBase:InitializeInternal()
03-06 17:51:42.244 21212 21237 E Unity : UnityEngine.XR.OpenXR.OpenXRLoaderBase:Initialize()
03-06 17:51:42.244 21212 21237 E Unity : UnityEngine.XR.Management.XRManagerSettings:InitializeLoaderSync()
03-06 17:51:42.244 21212 21237 E Unity : UnityEngine.XR.Management.XRGeneralSettings:InitXRSDK()
03-06 17:51:42.244 21212 21237 E Unity :
03-06 17:51:42.251 21212 21237 I Unity : [XR] [533778435264] [17:51:42.250][Info ]
03-06 17:51:42.251 21212 21237 I Unity :
03-06 17:51:42.251 21212 21237 I Unity : ==== Start Unity OpenXR Diagnostic Report ====
03-06 17:51:42.251 21212 21237 I Unity :
03-06 17:51:42.251 21212 21237 I Unity :
03-06 17:51:42.251 21212 21237 I Unity : [XR] [533778435264] [17:51:42.251][Info ] ==== Report Reason: System Shutdown ====
03-06 17:51:42.251 21212 21237 I Unity :
03-06 17:51:42.251 21212 21237 I Unity :
03-06 17:51:42.251 21212 21237 I Unity : [XR] [533778435264] [17:51:42.251][Info ] ==== OpenXR Support Details ====
03-06 17:51:42.251 21212 21237 I Unity : [XR] [533778435264] [17:51:42.251][Info ] OpenXR Runtime:
03-06 17:51:42.252 21212 21237 I Unity : [XR] [533778435264] [17:51:42.251][Info ] UNKNOWN COMPANY, which is not a Unity supported partner
03-06 17:51:42.252 21212 21237 I Unity : [XR] [533778435264] [17:51:42.252][Info ] Unity OpenXR Features:
03-06 17:51:42.252 21212 21237 I Unity : [XR] [533778435264] [17:51:42.252][Info ] InterceptCreateSessionFeature Android, KHRSimpleControllerProfile Android, MeshingTeapotFeature Android, OculusTouchControllerProfile Android, RuntimeDebuggerOpenXRFeature Android: Unity
03-06 17:51:42.252 21212 21237 I Unity : [XR] [533778435264] [17:51:42.252][Info ] Unity Support:
03-06 17:51:42.252 21212 21237 I Unity : [XR] [533778435264] [17:51:42.252][Info ] Unity doesn't support some aspects of the runtime and Unity OpenXR Features above. Please attempt to reproduce the issue with only Unity supported aspects before submitting an issue to Unity.
After the above log occurred, I tried to enable "Oculus Quest Support" as follows. - In UnityEditor, "Project settings" menu click -> Select OpenXR menu in "XR Plug-in Management" -> Click the "Oculus Quest Support" button in "OpenXR Feature Groups"
After that, project build and run was completed.
Looking at the log, there is no loader fail log, but a runtime error log.
the monado runtime is not running because it cannot find the monado runtime and is looking for the oculus package as shown below.
Is there any way to get Unity openxr and monado runtime working properly on Android devices?
11-09 16:58:25.185 19910 19939 W System.err: android.content.pm.PackageManager$NameNotFoundException: Application package com.oculus.systemdriver not found
11-09 16:58:25.185 19910 19939 W System.err: at android.app.ContextImpl.createPackageContextAsUser(ContextImpl.java:2364)
11-09 16:58:25.185 19910 19939 W System.err: at android.app.ContextImpl.createPackageContext(ContextImpl.java:2327)
11-09 16:58:25.185 19910 19939 W System.err: at android.content.ContextWrapper.createPackageContext(ContextWrapper.java:927)
11-09 16:58:25.185 19910 19939 W System.err: at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
11-09 16:58:25.185 19910 19939 W System.err: at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
11-09 16:58:25.185 19910 19939 W System.err: at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
11-09 16:58:25.185 19910 19939 W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
11-09 16:58:25.185 19910 19939 W System.err: at android.os.Looper.loop(Looper.java:223)
11-09 16:58:25.185 19910 19939 W System.err: at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
11-09 16:58:25.185 19910 19939 I OpenXR Loader: Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed to load runtime
11-09 16:58:25.185 19910 19939 I OpenXR Loader: Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed to find default runtime with RuntimeInterface::LoadRuntime()
Your answer
