Hi
ARCore doesn’t work when I build my ARFoundation project as a non development build (Build Settings - Development Build ). I get no camera feed (just the background color set for the ARCamera) and the UI canvas buttons are unresponsive.
I hooked it up to logcat but cannot see any errors… just debug logs from my scripts.
I should be able to deploy a non Development build to a device right? My app works on the device once I tick Development Build.
Is there another way to see if something is causing a crash? I’m more of an IOS/xCode guy so trying to navigate the Android shtuff!!
Thanks
Update: The app crashes when I first enter the AR enabled scene… before it asks for camera permissions. If I enable cam permission in Settings and relaunch, it still crashes. I have an FPS counter on screen in this scene… and its not running. So app has crashed at this point. NOTE: This app works ok when I rebuild as Development Build. Is Dev Build more forgiving of exception errors etc? How do I see the error output on Android device?
UPDATE: Got to the bottom of this issue. I had Proguard enabled for Release. Enabling breaks ARCore. Unity 2018.2.6/ARFoundation 20/ARCore 23.
mdurand
November 26, 2018, 8:07pm
2
Looks as though this issue is on Google’s RADAR already.
opened 06:40AM - 11 Jan 18 UTC
closed 05:48PM - 23 Feb 18 UTC
bug
fixed in upcoming release
hello, I'm trying to recreate the ARCore java sample to my application and face … this crash when calling this line
`if (trackable instanceof Plane && ((Plane) trackable).isPoseInPolygon(hit.getHitPose()))`
This is the crash log
```
art/runtime/java_vm_ext.cc:470] JNI DETECTED ERROR IN APPLICATION: fid == null
art/runtime/java_vm_ext.cc:470] in call to GetObjectField
art/runtime/java_vm_ext.cc:470] from boolean com.google.ar.core.Plane.nativeIsPoseInPolygon(long, long, com.google.ar.core.Pose)
art/runtime/java_vm_ext.cc:470] "Thread-3613" prio=7 tid=40 Runnable
art/runtime/java_vm_ext.cc:470] | group="main" sCount=0 dsCount=0 obj=0x12fb2160 self=0xb8092c00
art/runtime/java_vm_ext.cc:470] | sysTid=2259 nice=-4 cgrp=default sched=0/0 handle=0xc1c62920
art/runtime/java_vm_ext.cc:470] | state=R schedstat=( 19705392420 965329788 7117 ) utm=1647 stm=323 core=6 HZ=100
art/runtime/java_vm_ext.cc:470] | stack=0xc1b66000-0xc1b68000 stackSize=1014KB
art/runtime/java_vm_ext.cc:470] | held mutexes= "mutator lock"(shared held)
art/runtime/java_vm_ext.cc:470] native: #00 pc 003799fd /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+128)
art/runtime/java_vm_ext.cc:470] native: #01 pc 00359705 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+304)
art/runtime/java_vm_ext.cc:470] native: #02 pc 0025293d /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+812)
art/runtime/java_vm_ext.cc:470] native: #03 pc 00252c01 /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortFEPKcS2_z+72)
art/runtime/java_vm_ext.cc:470] native: #04 pc 0028b891 /system/lib/libart.so (_ZN3art3JNI14GetObjectFieldEP7_JNIEnvP8_jobjectP9_jfieldID+508)
art/runtime/java_vm_ext.cc:470] native: #05 pc 00010498 /data/app/com.test.arcore-1/lib/arm/libarcore_sdk.so (???)
art/runtime/java_vm_ext.cc:470] native: #06 pc 0000fba8 /data/app/com.test.arcore-1/lib/arm/libarcore_sdk.so (Java_com_google_ar_core_Plane_nativeIsPoseInPolygon+40)
art/runtime/java_vm_ext.cc:470] native: #07 pc 0007f16d /data/app/com.test.arcore-1/oat/arm/base.odex (Java_com_google_ar_core_Plane_nativeIsPoseInPolygon__JJLcom_google_ar_core_Pose_2+136)
art/runtime/java_vm_ext.cc:470] at com.google.ar.core.Plane.nativeIsPoseInPolygon(Native method)
art/runtime/java_vm_ext.cc:470] at com.google.ar.core.Plane.a(SourceFile:147)
art/runtime/java_vm_ext.cc:470] at com.test.augmentedreality.AugmentedReality.UpdateAR(SourceFile:424)
art/runtime/java_vm_ext.cc:470]
art/runtime/runtime.cc:419] Runtime aborting...
art/runtime/runtime.cc:419] Aborting thread:
art/runtime/runtime.cc:419] "Thread-3613" prio=7 tid=40 Native
art/runtime/runtime.cc:419] | group="" sCount=0 dsCount=0 obj=0x12fb2160 self=0xb8092c00
art/runtime/runtime.cc:419] | sysTid=2259 nice=-4 cgrp=default sched=0/0 handle=0xc1c62920
art/runtime/runtime.cc:419] | state=R schedstat=( 19728281118 967387236 7126 ) utm=1647 stm=325 core=7 HZ=100
art/runtime/runtime.cc:419] | stack=0xc1b66000-0xc1b68000 stackSize=1014KB
art/runtime/runtime.cc:419] | held mutexes= "abort lock"
art/runtime/runtime.cc:419] native: #00 pc 003799fd /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+128)
art/runtime/runtime.cc:419] native: #01 pc 00359705 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+304)
art/runtime/runtime.cc:419] native: #02 pc 0034c3ad /system/lib/libart.so (_ZNK3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+24)
art/runtime/runtime.cc:419] native: #03 pc 0034c229 /system/lib/libart.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+424)
art/runtime/runtime.cc:419] native: #04 pc 00342c2b /system/lib/libart.so (_ZN3art7Runtime5AbortEv+90)
art/runtime/runtime.cc:419] native: #05 pc 000b6b57 /system/lib/libart.so (_ZN3art10LogMessageD2Ev+870)
art/runtime/runtime.cc:419] native: #06 pc 00252adb /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1226)
art/runtime/runtime.cc:419] native: #07 pc 00252c01 /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortFEPKcS2_z+72)
art/runtime/runtime.cc:419] native: #08 pc 0028b891 /system/lib/libart.so (_ZN3art3JNI14GetObjectFieldEP7_JNIEnvP8_jobjectP9_jfieldID+508)
art/runtime/runtime.cc:419] native: #09 pc 00010498 /data/app/com.test.arcore-1/lib/arm/libarcore_sdk.so (???)
art/runtime/runtime.cc:419] native: #10 pc 0000fba8 /data/app/com.test.arcore-1/lib/arm/libarcore_sdk.so (Java_com_google_ar_core_Plane_nativeIsPoseInPolygon+40)
art/runtime/runtime.cc:419] native: #11 pc 0007f16d /data/app/com.test.arcore-1/oat/arm/base.odex (???)
art/runtime/runtime.cc:419] at com.google.ar.core.Plane.nativeIsPoseInPolygon(Native method)
art/runtime/runtime.cc:419] at com.google.ar.core.Plane.a(SourceFile:147)
art/runtime/runtime.cc:419] at com.test.augmentedreality.AugmentedReality.UpdateAR(SourceFile:424)
```
Is there anything I miss?
Thanks
-Mike
1 Like