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

getActiveRuntimeCursor Null cursor when querying system content resolver #76

Open
jdshaoheyi opened this issue Feb 10, 2023 · 3 comments

Comments

@jdshaoheyi
Copy link

jdshaoheyi commented Feb 10, 2023

Description

On Android , i got error msg "getActiveRuntimeCursor Null cursor when querying system content resolver", when i start an [android native activity] in [android app] that build with unity 2019. i debug this problem long time, and i really did not know why...

General Troubleshooting

  • [1 ] create an empty unity application, add one test button and click listener, call one java test method to launch [android native activity]
  • [2] [android native activity] is a native activity than load dynamic library [alxr-client-pico]

Environement

unity 2019, Android Studio Electric Eel | 2022.1.1

Hardware

pico neo 3 pui 5.3.4

Installation

i used alvr old version , last commit sha-1 is d70c019:

** logcat output **
2023-02-10 18:59:16.957 4768-16902 openxr_loader com.DefaultCompany.PicoTest I getActiveRuntimeCursor: Querying URI: content://org.khronos.openxr.runtime_broker/openxr/1/abi/arm64-v8a/runtimes/active/0, arm64-v8a, major version 1
2023-02-10 18:59:16.958 4768-16902 openxr_loader com.DefaultCompany.PicoTest W getActiveRuntimeCursor Null cursor when querying installable content resolver.
2023-02-10 18:59:16.958 4768-16902 openxr_loader com.DefaultCompany.PicoTest I getActiveRuntimeCursor: Querying URI: content://org.khronos.openxr.system_runtime_broker/openxr/1/abi/arm64-v8a/runtimes/active/0, arm64-v8a, major version 1
2023-02-10 18:59:16.958 4768-16902 openxr_loader com.DefaultCompany.PicoTest W getActiveRuntimeCursor Null cursor when querying system content resolver.
2023-02-10 18:59:16.966 4768-16902 OpenXR-Loader com.DefaultCompany.PicoTest I Info [GENERAL | | OpenXR-Loader11] : RuntimeManifestFile::FindManifestFiles - using global runtime file /vendor/etc/openxr/1/active_runtime.json
2023-02-10 18:59:16.966 4768-16902 OpenXR-Loader com.DefaultCompany.PicoTest I Info [GENERAL | | OpenXR-Loader11] : RuntimeManifestFile::CreateIfValid - attempting to load /vendor/etc/openxr/1/active_runtime.json
2023-02-10 18:59:16.967 20622-22647 AppServiceManager os.teatracker W findActiveService active found
2023-02-10 18:59:16.968 4768-16902 OpenXR-Loader com.DefaultCompany.PicoTest E Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader11] : RuntimeInterface::LoadRuntime skipping manifest file skipping_manifest_file_shaoheyi0 /vendor/etc/openxr/1/active_runtime.json, failed to load with message "dlopen failed: library "libruntime.pxr.so" not found"
2023-02-10 18:59:16.968 4768-16901 RustStdoutStderr com.DefaultCompany.PicoTest I Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader11] : RuntimeInterface::LoadRuntime skipping manifest file skipping_manifest_file_shaoheyi0 /vendor/etc/openxr/1/active_runtime.json, failed to load with message "dlopen failed: library "libruntime.pxr.so" not found"

@korejan
Copy link
Owner

korejan commented Feb 10, 2023

Hello, can you please give more context, I don't understand if you're asking for help with running an unity app on pico or if it's an issue with ALXR.

If it is about ALXR it looks like you're using a very old build, please use the latest nightly builds (alxr-client-pico.apk not -v4 that is for PUI versions below 5.2).

@jdshaoheyi
Copy link
Author

very thanks for response, i will test latest alvr later. the core problem is when i start a android native activity(native lib is alxr-client-pico) inner a unity app i got the error message.

@jdshaoheyi
Copy link
Author

jdshaoheyi commented Feb 13, 2023

hi, i tested alvr server 18.2.3, alxr-client-pico.apk is build with commit SHA-1 32c206b, everything is ok when i change nothing. but i got very same error when i modify alvr\openxr-client\alxr-engine-sys\android\app\build.gradle with these changes:
1.BUILD_LOADER: OFF-->ON
2.USE_PICO_MOBILE_LOADER: ON--->OFF
PicoMobileOXR {
dimension 'headset'
ndk {
abiFilters 'arm64-v8a'
}
externalNativeBuild.cmake.arguments += [
"-DANDROID_TOOLCHAIN=clang", "-DANDROID_STL=c++_static",
"-DBUILD_LOADER=ON", "-DUSE_PICO_MOBILE_LOADER=OFF"
]
}
3. another question is what difference between prebuilt libopenxr_loader.so and self build libopenxr_loader.so ?

LOGCAT:
2023-02-13 09:35:25.328 27458-3226 openxr_loader usap64 I getActiveRuntimeCursor: Querying URI: content://org.khronos.openxr.runtime_broker/openxr/1/abi/arm64-v8a/runtimes/active/0
2023-02-13 09:35:25.329 27458-3226 ActivityThread usap64 E Failed to find provider info for org.khronos.openxr.runtime_broker
2023-02-13 09:35:25.329 27458-3226 openxr_loader usap64 W Null cursor when querying installable content resolver.
2023-02-13 09:35:25.329 27458-3226 openxr_loader usap64 I getActiveRuntimeCursor: Querying URI: content://org.khronos.openxr.system_runtime_broker/openxr/1/abi/arm64-v8a/runtimes/active/0
2023-02-13 09:35:25.329 27458-3226 ActivityThread usap64 E Failed to find provider info for org.khronos.openxr.system_runtime_broker
2023-02-13 09:35:25.329 27458-3226 openxr_loader usap64 W Null cursor when querying system content resolver.
2023-02-13 09:35:25.329 27458-3226 openxr_loader usap64 E Could access neither the installable nor system runtime broker.
2023-02-13 09:35:25.329 7695-7823 WindowManager system_server E App trying to use insecure INPUT_FEATURE_NO_INPUT_CHANNEL flag. Ignoring
2023-02-13 09:35:25.329 27458-3226 OpenXR-Loader usap64 I Info [GENERAL | | OpenXR-Loader] : RuntimeManifestFile::FindManifestFiles - using global runtime file /vendor/etc/openxr/1/active_runtime.json
2023-02-13 09:35:25.329 27458-3226 OpenXR-Loader usap64 I Info [GENERAL | | OpenXR-Loader] : RuntimeManifestFile::CreateIfValid - attempting to load /vendor/etc/openxr/1/active_runtime.json
2023-02-13 09:35:25.330 27458-3226 OpenXR-Loader usap64 E Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntime skipping manifest file /vendor/etc/openxr/1/active_runtime.json, failed to load with message "dlopen failed: library "libruntime.pxr.so" not found"
2023-02-13 09:35:25.330 27458-3225 RustStdoutStderr usap64 I Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntime skipping manifest file /vendor/etc/openxr/1/active_runtime.json, failed to load with message "dlopen failed: library "libruntime.pxr.so" not found"
2023-02-13 09:35:25.330 27458-3226 OpenXR-Loader usap64 E Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - failed to load a runtime
2023-02-13 09:35:25.330 27458-3226 OpenXR-Loader usap64 E Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed to find default runtime with RuntimeInterface::LoadRuntime()
2023-02-13 09:35:25.330 27458-3226 OpenXR-Loader usap64 E Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed querying extension properties
2023-02-13 09:35:25.330 27458-3225 RustStdoutStderr usap64 I Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - failed to load a runtime
2023-02-13 09:35:25.330 27458-3225 RustStdoutStderr usap64 I Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed to find default runtime with RuntimeInterface::LoadRuntime()
2023-02-13 09:35:25.330 27458-3225 RustStdoutStderr usap64 I Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed querying extension properties
2023-02-13 09:35:25.331 27458-3226 alxr-client usap64 E [09:35:25.331][Error ] XrResult failure [XR_ERROR_RUNTIME_UNAVAILABLE]
Origin: xrEnumerateInstanceExtensionProperties(layerName, 0, &instanceExtensionCount, nullptr)
Source: H:/work/vr_korejan_ALVR/alvr/openxr-client/alxr-engine-sys/cpp/ALVR-OpenXR-Engine/src/alxr_engine/openxr_program.cpp:562
2023-02-13 09:35:25.331 27458-3225 RustStdoutStderr usap64 I [09:35:25.331][Error ] XrResult failure [XR_ERROR_RUNTIME_UNAVAILABLE]
2023-02-13 09:35:25.331 27458-3225 RustStdoutStderr usap64 I Origin: xrEnumerateInstanceExtensionProperties(layerName, 0, &instanceExtensionCount, nullptr)
2023-02-13 09:35:25.331 27458-3225 RustStdoutStderr usap64 I Source: H:/work/vr_korejan_ALVR/alvr/openxr-client/alxr-engine-sys/cpp/ALVR-OpenXR-Engine/src/alxr_engine/openxr_program.cpp:562
2023-02-13 09:35:25.332 27458-3225 RustStdoutStderr usap64 I successfully shutdown.

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

No branches or pull requests

2 participants