Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hello_xr Build issue #521

Open
ManikanthMartha opened this issue Dec 26, 2024 · 2 comments
Open

hello_xr Build issue #521

ManikanthMartha opened this issue Dec 26, 2024 · 2 comments

Comments

@ManikanthMartha
Copy link

I'm trying to run hello_xr on my android phone, The build was successful but when i run the app i get the following errors. I have included the android loader in build.gradle file. I am using monado as runtime
dependencies {
implementation 'org.khronos.openxr:openxr_loader_for_android:1.1.43'
}

libc++abi               org...onos.openxr.hello_xr.opengles  E  terminating with uncaught exception of type jni::InitializationException: JNI not initialized
libc                         org...onos.openxr.hello_xr.opengles  A  Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 17791 (Thread-3), pid 17750 (llo_xr.opengles)

i am also getting an error in logcat
OpenGLRenderer org...onos.openxr.hello_xr.opengles Device claims wide gamut support, cannot find matching config, error = EGL_SUCCESS

Any help is appreciated

@chaask
Copy link

chaask commented Jan 6, 2025

There are couple of things you need to do to run the HelloXR App on the Android Phone apart from installing HelloXR apk.

  1. You should have Monado Runtime APK, and mostly Out of Process variant so that you can use it with different OpenXR apps
  2. Runtime Broker https://play.google.com/store/apps/details?id=org.khronos.openxr.runtime_broker&hl=en_US#:~:text=The%20OpenXR%20Runtime%20Broker%20is,your%20choice%20of%20XR%20hardware. This helps in picking Monado as OpenXR Runtime so that loader can load the APIs. Check this for more details.

In case if you are still facing issues, please attach complete logs.

@rpavlik
Copy link
Contributor

rpavlik commented Jan 6, 2025

Does the pre-built binaries produce the same result?

(And yes make sure you have the broker installed, but the loader shouldn't crash with a JNI error if you don't, it should just return an error code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants