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

ClassNotFoundException in Cardboard_initializeAndroid #485

Open
1 of 2 tasks
bl4ckb0ne opened this issue Dec 5, 2024 · 2 comments
Open
1 of 2 tasks

ClassNotFoundException in Cardboard_initializeAndroid #485

bl4ckb0ne opened this issue Dec 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@bl4ckb0ne
Copy link

SPECIFIC ISSUE ENCOUNTERED

I am writing a Google Cardboard driver for monado. When launching an application (helloXR in this case, the .apk is available on the OpenXR-SDK release page), the application is closing and I have the following error message in the logs

12-05 14:39:13.228  6743  6774 I 100     : Open /data/app/~~JszHwhdspSFSxjKmvU3P8w==/org.freedesktop.monado.openxr_runtime.in_process-c5jji3g_nUG-cA2_oyUXFA==/base.apk took:660ms
12-05 14:39:13.069  2331  2331 I chatty  : uid=10190(com.android.systemui) identical 4 lines
12-05 14:39:13.070  2331  2331 D KeyButtonRipple:  draw SupportHardware=true Type=ROUNDED_RECT
12-05 14:39:13.233  6743  6774 W System.err: java.lang.ClassNotFoundException: Didn't find class "com.google.cardboard.sdk.qrcode.CardboardParamsUtils" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/system/lib64, /system_ext/lib64, /system/lib64, /system_ext/lib64]]
12-05 14:39:13.234  6743  6774 W System.err: 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
12-05 14:39:13.234  6743  6774 W System.err: 	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
12-05 14:39:13.234  6743  6774 W System.err: 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
12-05 14:39:13.234  6743  6774 W System.err: java.lang.ClassNotFoundException: Didn't find class "com.google.cardboard.sdk.QrCodeCaptureActivity" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/system/lib64, /system_ext/lib64, /system/lib64, /system_ext/lib64]]
12-05 14:39:13.234  6743  6774 W System.err: 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
12-05 14:39:13.234  6743  6774 W System.err: 	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
12-05 14:39:13.234  6743  6774 W System.err: 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
12-05 14:39:13.235  6743  6774 F hello_xr.vulka: java_vm_ext.cc:577] JNI DETECTED ERROR IN APPLICATION: RegisterNatives received NULL jclass
12-05 14:39:13.235  6743  6774 F hello_xr.vulka: java_vm_ext.cc:577]     in call to RegisterNatives

Followed by a very lengthy stacktrace.

We are using a minSdk of 26 so MultiDex should be enabled by default.

SMARTPHONE (please complete the following information):

  • Device: OnePlus Nord N100 and Google Pixel 6
  • OS
    • Android
    • iOS
  • OS version 11 & 15

STEPS TO REPRODUCE THE ISSUE

  1. Install the following APKS:
  2. Make sure the Monado in Process is enabled in the OpenXR Runtime Broker
  3. Start HelloXR
  4. Observe the crash in adb logcat

EXPECTED BEHAVIOR

Cardboard_initializeAndroid runs successfully and the helloXR application launches.

VERSIONS USED

What version of Google Cardboard are you using?
Cardboard SDK 1.26.0

LINK TO A REPOSITORY WITH CODE TO REPRODUCE THE BUG

https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2363

@bl4ckb0ne bl4ckb0ne added the bug Something isn't working label Dec 5, 2024
@XRAdventure
Copy link

Hello,

I'm having the exact same issue, but from a build made with Unity 6, version: 6000.0.30f1 LTS.

Device: Pixel 4XL
Android Version: 13

Error Logs from the APK

java.lang.ClassNotFoundException: com.google.cardboard.sdk.qrcode.CardboardParamsUtils
java.lang.ClassNotFoundException: com.google.cardboard.sdk.QrCodeCaptureActivity

It should be noted that in previous versions of Unity I don't have this problem, everything worked as expected.

@rjcausarano
Copy link

Thank you for reporting this issue. I confirm I’m able to reproduce the issue locally. It has been added to our backlog and will be prioritized along with other issues. We'll update this issue once we have some updates about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants