Skip to content

ClassNotFoundException in Cardboard_initializeAndroid #485

Open
@bl4ckb0ne

Description

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

Activity

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

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions