Start a new topic
Solved

Android native: JNI error when changing camera position

I'm getting the following stack trace when I try to change the camera position from my android activity:


E/zygote64: JNI ERROR (app bug): accessed deleted Global 0x2b12
A/zygote64: java_vm_ext.cc:504] JNI DETECTED ERROR IN APPLICATION: use of deleted global reference 0x2b12
A/zygote64: java_vm_ext.cc:504]     from com.wikitude.common.camera.CameraSettings$CameraPosition com.wikitude.camera.internal.CameraManagerInternal.nativeGetCameraPosition(long)
A/zygote64: java_vm_ext.cc:504] "main" prio=5 tid=1 Runnable
A/zygote64: java_vm_ext.cc:504]   | group="main" sCount=0 dsCount=0 flags=0 obj=0x7394af50 self=0x7ea6cc0a00
A/zygote64: java_vm_ext.cc:504]   | sysTid=29035 nice=-10 cgrp=default sched=0/0 handle=0x7eac2b49c8
A/zygote64: java_vm_ext.cc:504]   | state=R schedstat=( 11369752284 265337857 3770 ) utm=1034 stm=102 core=6 HZ=100
A/zygote64: java_vm_ext.cc:504]   | stack=0x7fd71e2000-0x7fd71e4000 stackSize=8MB
A/zygote64: java_vm_ext.cc:504]   | held mutexes= "mutator lock"(shared held)
A/zygote64: java_vm_ext.cc:504]   native: #00 pc 00000000003aeb84  /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+212)
A/zygote64: java_vm_ext.cc:504]   native: #01 pc 000000000047deac  /system/lib64/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+348)
A/zygote64: java_vm_ext.cc:504]   native: #02 pc 00000000002e6280  /system/lib64/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1040)
A/zygote64: java_vm_ext.cc:504]   native: #03 pc 00000000002e683c  /system/lib64/libart.so (_ZN3art9JavaVMExt9JniAbortFEPKcS2_z+204)
A/zygote64: java_vm_ext.cc:504]   native: #04 pc 0000000000482a84  /system/lib64/libart.so (_ZNK3art6Thread13DecodeJObjectEP8_jobject+452)
A/zygote64: java_vm_ext.cc:504]   native: #05 pc 0000000000508354  /system/lib64/libart.so (_ZN3artL37JniMethodEndWithReferenceHandleResultEP8_jobjectjPNS_6ThreadE+68)
A/zygote64: java_vm_ext.cc:504]   native: #06 pc 00000000005085a8  /system/lib64/libart.so (_ZN3art19GenericJniMethodEndEPNS_6ThreadEj6jvaluemPNS_9ArtMethodEPNS_11HandleScopeE+264)
A/zygote64: java_vm_ext.cc:504]   native: #07 pc 0000000000537510  /system/lib64/libart.so (art_quick_generic_jni_trampoline+160)
A/zygote64: java_vm_ext.cc:504]   native: #08 pc 000000000052e184  /system/lib64/libart.so (art_quick_invoke_stub+580)
A/zygote64: java_vm_ext.cc:504]   native: #09 pc 00000000000d86a8  /system/lib64/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+200)
A/zygote64: java_vm_ext.cc:504]   native: #10 pc 00000000002917e0  /system/lib64/libart.so (_ZN3art11interpreter34ArtInterpreterToCompiledCodeBridgeEPNS_6ThreadEPNS_9ArtMethodEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+352)
A/zygote64: java_vm_ext.cc:504]   native: #11 pc 000000000028bdf0  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+672)
A/zygote64: java_vm_ext.cc:504]   native: #12 pc 00000000002b5f90  /system/lib64/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE1ELb0ELb0EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+432)
A/zygote64: java_vm_ext.cc:504]   native: #13 pc 00000000002afda8  /system/lib64/libart.so (_ZN3art11interpreter17ExecuteSwitchImplILb0ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_b+34936)
A/zygote64: java_vm_ext.cc:504]   native: #14 pc 000000000026bff4  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+548)
A/zygote64: java_vm_ext.cc:504]   native: #15 pc 0000000000272854  /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+212)
A/zygote64: java_vm_ext.cc:504]   native: #16 pc 000000000028c568  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb1EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+1528)
A/zygote64: java_vm_ext.cc:504]   native: #17 pc 00000000002a5d2c  /system/lib64/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE4ELb0ELb1EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+2060)
A/zygote64: java_vm_ext.cc:504]   native: #18 pc 000000000029d334  /system/lib64/libart.so (_ZN3art11interpreter17ExecuteSwitchImplILb1ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_b+41508)
A/zygote64: java_vm_ext.cc:504]   native: #19 pc 000000000026c06c  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+668)
A/zygote64: java_vm_ext.cc:504]   native: #20 pc 0000000000272854  /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+212)
A/zygote64: java_vm_ext.cc:504]   native: #21 pc 000000000028c568  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb1EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+1528)
A/zygote64: java_vm_ext.cc:504]   native: #22 pc 00000000002a5034  /system/lib64/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE1ELb0ELb1EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+676)
A/zygote64: java_vm_ext.cc:504]   native: #23 pc 000000000029b9f4  /system/lib64/libart.so (_ZN3art11interpreter17ExecuteSwitchImplILb1ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_b+35044)
A/zygote64: java_vm_ext.cc:504]   native: #24 pc 000000000026c06c  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+668)
A/zygote64: java_vm_ext.cc:504]   native: #25 pc 0000000000272854  /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+212)
A/zygote64: java_vm_ext.cc:504]   native: #26 pc 000000000028bdd0  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+640)
A/zygote64: java_vm_ext.cc:504]   native: #27 pc 00000000002b74c0  /system/lib64/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE0ELb0ELb0EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+400)
A/zygote64: java_vm_ext.cc:504]   native: #28 pc 00000000002b1690  /system/lib64/libart.so (_ZN3art11interpreter17ExecuteSwitchImplILb0ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_b+41312)
A/zygote64: java_vm_ext.cc:504]   native: #29 pc 000000000026bff4  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+548)
A/zygote64: java_vm_ext.cc:504]   native: #30 pc 0000000000272854  /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+212)
A/zygote64: java_vm_ext.cc:504]   native: #31 pc 000000000028bdd0  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+640)
A/zygote64: java_vm_ext.cc:504]   native: #32 pc 00000000002b6a0c  /system/lib64/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE4ELb0ELb0EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+1740)
A/zygote64: java_vm_ext.cc:504]   native: #33 pc 00000000002b16fc  /system/lib64/libart.so (_ZN3art11interpreter17ExecuteSwitchImplILb0ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_b+41420)
A/zygote64: java_vm_ext.cc:504]   native: #34 pc 000000000026bff4  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+548)
A/zygote64: java_vm_ext.cc:504]   native: #35 pc 0000000000272854  /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+212)
A/zygote64: java_vm_ext.cc:504]   native: #36 pc 000000000028bdd0  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+640)
A/zygote64: java_vm_ext.cc:504]   native: #37 pc 00000000002b47f4  /system/lib64/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE2ELb0ELb0EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+580)
A/zygote64: java_vm_ext.cc:504]   native: #38 pc 00000000002afd3c  /system/lib64/libart.so (_ZN3art11interpreter17ExecuteSwitchImplILb0ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_b+34828)
A/zygote64: java_vm_ext.cc:504]   native: #39 pc 000000000026bff4  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+548)
A/zygote64: java_vm_ext.cc:504]   native: #40 pc 000000000050946c  /system/lib64/libart.so (artQuickToInterpreterBridge+1468)
A/zygote64: java_vm_ext.cc:504]   native: #41 pc 000000000053761c  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
A/zygote64: java_vm_ext.cc:504]   native: #42 pc 0000000000072334  /dev/ashmem/dalvik-jit-code-cache_29035_29035 (deleted) (???)
A/zygote64: java_vm_ext.cc:504]   at com.wikitude.camera.internal.CameraManagerInternal.nativeGetCameraPosition(Native method)
A/zygote64: java_vm_ext.cc:504]   at com.wikitude.camera.internal.CameraManagerInternal.getCameraPosition(unavailable:-1)
A/zygote64: java_vm_ext.cc:504]   at io.s2.passerelle.remotesupport.app.android.activity.StreamActivity.switchCamera(StreamActivity.java:1891)
A/zygote64: java_vm_ext.cc:504]   at io.s2.passerelle.remotesupport.app.android.activity.StreamActivity.access$4100(StreamActivity.java:180)
A/zygote64: java_vm_ext.cc:504]   at io.s2.passerelle.remotesupport.app.android.activity.StreamActivity$25.onClick(StreamActivity.java:1875)
A/zygote64: java_vm_ext.cc:504]   at android.view.View.performClick(View.java:6891)
A/zygote64: java_vm_ext.cc:504]   at android.view.View$PerformClick.run(View.java:26083)
A/zygote64: java_vm_ext.cc:504]   at android.os.Handler.handleCallback(Handler.java:789)
A/zygote64: java_vm_ext.cc:504]   at android.os.Handler.dispatchMessage(Handler.java:98)
A/zygote64: java_vm_ext.cc:504]   at android.os.Looper.loop(Looper.java:164)
A/zygote64: java_vm_ext.cc:504]   at android.app.ActivityThread.main(ActivityThread.java:6938)
A/zygote64: java_vm_ext.cc:504]   at java.lang.reflect.Method.invoke(Native method)
A/zygote64: java_vm_ext.cc:504]   at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
A/zygote64: java_vm_ext.cc:504]   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
A/zygote64: java_vm_ext.cc:504] 
A/zygote64: runtime.cc:516] Runtime aborting...
A/zygote64: runtime.cc:516] 
A/zygote64: runtime.cc:524] JNI DETECTED ERROR IN APPLICATION: use of deleted global reference 0x2b12
A/zygote64: runtime.cc:524]     from com.wikitude.common.camera.CameraSettings$CameraPosition com.wikitude.camera.internal.CameraManagerInternal.nativeGetCameraPosition(long)
A/zygote64: runtime.cc:524] "main" prio=5 tid=1 Runnable
A/zygote64: runtime.cc:524]   | group="main" sCount=0 dsCount=0 flags=0 obj=0x7394af50 self=0x7ea6cc0a00
A/zygote64: runtime.cc:524]   | sysTid=29035 nice=-10 cgrp=default sched=0/0 handle=0x7eac2b49c8
A/zygote64: runtime.cc:524]   | state=R schedstat=( 11369752284 265337857 3770 ) utm=1034 stm=102 core=6 HZ=100
A/zygote64: runtime.cc:524]   | stack=0x7fd71e2000-0x7fd71e4000 stackSize=8MB
A/zygote64: runtime.cc:524]   | held mutexes= "mutator lock"(shared held)
A/zygote64: runtime.cc:524]   native: #00 pc 00000000003aeb84  /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+212)
A/zygote64: runtime.cc:524]   native: #01 pc 000000000047deac  /system/lib64/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+348)
A/zygote64: runtime.cc:524]   native: #02 pc 00000000002e6280  /system/lib64/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1040)
A/zygote64: runtime.cc:524]   native: #03 pc 00000000002e683c  /system/lib64/libart.so (_ZN3art9JavaVMExt9JniAbortFEPKcS2_z+204)
A/zygote64: runtime.cc:524]   native: #04 pc 0000000000482a84  /system/lib64/libart.so (_ZNK3art6Thread13DecodeJObjectEP8_jobject+452)
A/zygote64: runtime.cc:524]   native: #05 pc 0000000000508354  /system/lib64/libart.so (_ZN3artL37JniMethodEndWithReferenceHandleResultEP8_jobjectjPNS_6ThreadE+68)
A/zygote64: runtime.cc:524]   native: #06 pc 00000000005085a8  /system/lib64/libart.so (_ZN3art19GenericJniMethodEndEPNS_6ThreadEj6jvaluemPNS_9ArtMethodEPNS_11HandleScopeE+264)
A/zygote64: runtime.cc:524]   native: #07 pc 0000000000537510  /system/lib64/libart.so (art_quick_generic_jni_trampoline+160)
A/zygote64: runtime.cc:524]   native: #08 pc 000000000052e184  /system/lib64/libart.so (art_quick_invoke_stub+580)
A/zygote64: runtime.cc:524]   native: #09 pc 00000000000d86a8  /system/lib64/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+200)
A/zygote64: runtime.cc:524]   native: #10 pc 00000000002917e0  /system/lib64/libart.so (_ZN3art11interpreter34ArtInterpreterToCompiledCodeBridgeEPNS_6ThreadEPNS_9ArtMethodEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+352)
A/zygote64: runtime.cc:524]   native: #11 pc 000000000028bdf0  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+672)
A/zygote64: runtime.cc:524]   native: #12 pc 00000000002b5f90  /system/lib64/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE1ELb0ELb0EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+432)
A/zygote64: runtime.cc:524]   native: #13 pc 00000000002afda8  /system/lib64/libart.so (_ZN3art11interpreter17ExecuteSwitchImplILb0ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_b+34936)
A/zygote64: runtime.cc:524]   native: #14 pc 000000000026bff4  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+548)
A/zygote64: runtime.cc:524]   native: #15 pc 0000000000272854  /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+212)
A/zygote64: runtime.cc:524]   native: #16 pc 000000000028c568  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb1EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+1528)
A/zygote64: runtime.cc:524]   native: #17 pc 00000000002a5d2c  /system/lib64/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE4ELb0ELb1EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+2060)
A/zygote64: runtime.cc:524]   native: #18 pc 000000000029d334  /system/lib64/libart.so (_ZN3art11interpreter17ExecuteSwitchImplILb1ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_b+41508)
A/zygote64: runtime.cc:524]   native: #19 pc 000000000026c06c  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+668)
A/zygote64: runtime.cc:524]   native: #20 pc 0000000000272854  /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+212)
A/zygote64: runtime.cc:524]   native: #21 pc 000000000028c568  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb1EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+1528)
A/zygote64: runtime.cc:524]   native: #22 pc 00000000002a5034  /system/lib64/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE1ELb0ELb1EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+676)
A/zygote64: runtime.cc:524]   native: #23 pc 000000000029b9f4  /system/lib64/libart.so (_ZN3art11interpreter17ExecuteSwitchImplILb1ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_b+35044)
A/zygote64: runtime.cc:524]   native: #24 pc 000000000026c06c  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+668)
A/zygote64: runtime.cc:524]   native: #25 pc 0000000000272854  /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+212)
A/zygote64: runtime.cc:524]   native: #26 pc 000000000028bdd0  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+640)
A/zygote64: runtime.cc:524]   native: #27 pc 00000000002b74c0  /system/lib64/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE0ELb0ELb0EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+400)
A/zygote64: runtime.cc:524]   native: #28 pc 00000000002b1690  /system/lib64/libart.so (_ZN3art11interpreter17ExecuteSwitchImplILb0ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_b+41312)
A/zygote64: runtime.cc:524]   native: #29 pc 000000000026bff4  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+548)
A/zygote64: runtime.cc:524]   native: #30 pc 0000000000272854  /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+212)
A/zygote64: runtime.cc:524]   native: #31 pc 000000000028bdd0  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+640)
A/zygote64: runtime.cc:524]   native: #32 pc 00000000002b6a0c  /system/lib64/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE4ELb0ELb0EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+1740)
A/zygote64: runtime.cc:524]   native: #33 pc 00000000002b16fc  /system/lib64/libart.so (_ZN3art11interpreter17ExecuteSwitchImplILb0ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_b+41420)
A/zygote64: runtime.cc:524]   native: #34 pc 000000000026bff4  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+548)
A/zygote64: runtime.cc:524]   native: #35 pc 0000000000272854  /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+212)
A/zygote64: runtime.cc:524]   native: #36 pc 000000000028bdd0  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+640)
A/zygote64: runtime.cc:524]   native: #37 pc 00000000002b47f4  /system/lib64/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE2ELb0ELb0EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+580)
A/zygote64: runtime.cc:524]   native: #38 pc 00000000002afd3c  /system/lib64/libart.so (_ZN3art11interpreter17ExecuteSwitchImplILb0ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_b+34828)
A/zygote64: runtime.cc:524]   native: #39 pc 000000000026bff4  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+548)
A/zygote64: runtime.cc:524]   native: #40 pc 000000000050946c  /system/lib64/libart.so (artQuickToInterpreterBridge+1468)
A/zygote64: runtime.cc:524]   native: #41 pc 000000000053761c  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
A/zygote64: runtime.cc:524]   native: #42 pc 0000000000072334  /dev/ashmem/dalvik-jit-code-cache_29035_29035 (deleted) (???)
A/zygote64: runtime.cc:524]   at com.wikitude.camera.internal.CameraManagerInternal.nativeGetCameraPosition(Native method)
A/zygote64: runtime.cc:524]   at com.wikitude.camera.internal.CameraManagerInternal.getCameraPosition(unavailable:-1)
A/zygote64: runtime.cc:524]   at io.s2.passerelle.remotesupport.app.android.activity.StreamActivity.switchCamera(StreamActivity.java:1891)
A/zygote64: runtime.cc:524]   at io.s2.passerelle.remotesupport.app.android.activity.StreamActivity.access$4100(StreamActivity.java:180)
A/zygote64: runtime.cc:524]   at io.s2.passerelle.remotesupport.app.android.activity.StreamActivity$25.onClick(StreamActivity.java:1875)
A/zygote64: runtime.cc:524]   at android.view.View.performClick(View.java:6891)
A/zygote64: runtime.cc:524]   at android.view.View$PerformClick.run(View.java:26083)
A/zygote64: runtime.cc:524]   at android.os.Handler.handleCallback(Handler.java:789)
A/zygote64: runtime.cc:524]   at android.os.Handler.dispatchMessage(Handler.java:98)
A/zygote64: runtime.cc:524]   at android.os.Looper.loop(Looper.java:164)
A/zygote64: runtime.cc:524]   at android.app.ActivityThread.main(ActivityThread.java:6938)
A/zygote64: runtime.cc:524]   at java.lang.reflect.Method.invoke(Native method)
A/zygote64: runtime.cc:524]   at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
A/zygote64: runtime.cc:524]   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
A/zygote64: runtime.cc:524] 
A/zygote64: runtime.cc:524] 

 

The code I'm using to switch the camera position looks like this:

CameraManager cameraManager = wikitudeSDK.getCameraManager();
if (cameraManager != null) {
   cameraManager.setCameraPosition(cameraManager.getCameraPosition() == 
  CameraSettings.CameraPosition.BACK ? CameraSettings.CameraPosition.FRONT : 
  CameraSettings.CameraPosition.BACK);
}

  

Any idea why this doesn't work?


I suppose I had this issue because I'm using an input plugin.
I've solved it by implementing the camera switching in my WikitudeCamera implementation.

FYI: I'm using wikitude native android SDK v8.1.0

Login or Signup to post a comment