Log in or register to post comments

Sample 7.2.21 init fails on custom android tablet

July 24, 2018 - 2:31am #1

I am trying to update some android Vuforia 5.0.10 code to the latest version of Vuforia.

I have the android Vuforia SDK versions 7.2.20 and 7.2.23 installed along with the samples 7.2.21.

The sample app compiles and runs with no problem on all android devices i've tested with so far except for a custom android tablet with android API level 23 (marshmallow).

On this API 23 tablet the sample app, whenever i start a camera activity, raises this exception:


Quote:



07-24 10:13:18.503 7525-7657/com.vuforia.samples.VuforiaSamples A/art: art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: JNI CallObjectMethodV called with pending exception java.lang.ArrayIndexOutOfBoundsException: length=3; index=3

    art/runtime/java_vm_ext.cc:410]   at android.net.NetworkInfo android.net.ConnectivityManager.getNetworkInfo(int) (ConnectivityManager.java:724)

    art/runtime/java_vm_ext.cc:410]

    art/runtime/java_vm_ext.cc:410]     in call to CallObjectMethodV

    art/runtime/java_vm_ext.cc:410] "Thread-394" prio=4 tid=36 Runnable

    art/runtime/java_vm_ext.cc:410]   | group="main" sCount=0 dsCount=0 obj=0x12f39100 self=0x99897400

    art/runtime/java_vm_ext.cc:410]   | sysTid=7657 nice=10 cgrp=bg_non_interactive sched=0/0 handle=0x9dafc930

    art/runtime/java_vm_ext.cc:410]   | state=R schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100

    art/runtime/java_vm_ext.cc:410]   | stack=0x9da00000-0x9da02000 stackSize=1014KB

    art/runtime/java_vm_ext.cc:410]   | held mutexes= "mutator lock"(shared held)

    art/runtime/java_vm_ext.cc:410]   native: #00 pc 0035a55f  /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_9ArtMethodEPv+126)

    art/runtime/java_vm_ext.cc:410]   native: #01 pc 0033b0e7  /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+138)

    art/runtime/java_vm_ext.cc:410]   native: #02 pc 0024dfcb  /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+750)

    art/runtime/java_vm_ext.cc:410]   native: #03 pc 0024e66f  /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+54)

    art/runtime/java_vm_ext.cc:410]   native: #04 pc 000fbbfd  /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+28)

    art/runtime/java_vm_ext.cc:410]   native: #05 pc 00100a03  /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE.constprop.95+4894)

    art/runtime/java_vm_ext.cc:410]   native: #06 pc 0010e87d  /system/lib/libart.so (_ZN3art8CheckJNI11CallMethodVEPKcP7_JNIEnvP8_jobjectP7_jclassP10_jmethodIDSt9__va_listNS_9Primitive4TypeENS_10InvokeTypeE+496)

    art/runtime/java_vm_ext.cc:410]   native: #07 pc 0010fe05  /system/lib/libart.so (_ZN3art8CheckJNI17CallObjectMethodVEP7_JNIEnvP8_jobjectP10_jmethodIDSt9__va_list+28)

    art/runtime/java_vm_ext.cc:410]   native: #08 pc 0013de1d  /data/app/com.vuforia.samples.VuforiaSamples-1/lib/arm/libVuforia.so (???)

    art/runtime/java_vm_ext.cc:410]   native: #09 pc 00148793  /data/app/com.vuforia.samples.VuforiaSamples-1/lib/arm/libVuforia.so (???)

    art/runtime/java_vm_ext.cc:410]   native: #10 pc 001b45ef  /data/app/com.vuforia.samples.VuforiaSamples-1/lib/arm/libVuforia.so (???)

    art/runtime/java_vm_ext.cc:410]   native: #11 pc 001b4693  /data/app/com.vuforia.samples.VuforiaSamples-1/lib/arm/libVuforia.so (???)

    art/runtime/java_vm_ext.cc:410]   native: #12 pc 00169989  /data/app/com.vuforia.samples.VuforiaSamples-1/lib/arm/libVuforia.so (???)

    art/runtime/java_vm_ext.cc:410]   native: #13 pc 0016d195  /data/app/com.vuforia.samples.VuforiaSamples-1/lib/arm/libVuforia.so (???)

    art/runtime/java_vm_ext.cc:410]   native: #14 pc 0003f7db  /system/lib/libc.so (_ZL15__pthread_startPv+30)

    art/runtime/java_vm_ext.cc:410]   native: #15 pc 00019ef5  /system/lib/libc.so (__start_thread+6)

    art/runtime/java_vm_ext.cc:410]   (no managed stack frames)

07-24 10:13:18.504 7525-7657/com.vuforia.samples.VuforiaSamples A/art: art/runtime/java_vm_ext.cc:410]

07-24 10:13:20.860 7525-7657/com.vuforia.samples.VuforiaSamples A/art: art/runtime/runtime.cc:366] Runtime aborting...

    art/runtime/runtime.cc:366] Aborting thread:

Looks like the native code is calling the java method android.net.ConnectivityManager.getNetworkInfo(int) with an invalid integer value causing the ArrayIndexOutOfBoundsException.

This must be when the sample app tries to validate my API key?

I can confirm that the tablet is connected to the wifi network as i'm using ADB over wifi to install and debug the sample app.

The exception occurs with both android Vuforia SDK versions 7.2.20 and 7.2.23.

The sample does however work perfectly on these devices:

  • API 19 Custom tablet
  • API 22 Tesco Hudl 2 tablet
  • API 24 Huawei Mediapad T3 8 tablet
  • API 26 Galaxy S7 mobile

What could be the problem, and how can i attempt to fix it?

Thanks.

Sample 7.2.21 init fails on custom android tablet

April 21, 2019 - 11:35pm #2

I may want to konw any update about this question,i got the same problem which will cause my device reboot.thanks in advance.

Log in or register to post comments