Open darrinps opened 4 years ago
I think, you're not using arm64 abiFilter but only 'arm64-v8a', 'x86' so it's causing the crash. It seems like Android Q device that you used have arm64 architecture. This happens when you use the jni lib for device platform which you have not included.
App compiles and executes fine but crashes immediately after the splash screen is displayed. Device is a Pixel 3XL running the latest version of Android Q.
Log looks like this.
2019-11-26 12:12:26.400 3832-3832/? I/native: device_provider.cc:1654 Identified device type: kCrosshatch 2019-11-26 12:12:26.402 3832-3832/? E/ArSceneView: Error loading libarsceneview_jni.so java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.swarmnyc.arswarm-l3wbQX5PzXNtFC7s63XmAw==/base.apk"],nativeLibraryDirectories=[/data/app/com.swarmnyc.arswarm-l3wbQX5PzXNtFC7s63XmAw==/lib/arm64, /data/app/com.swarmnyc.arswarm-l3wbQX5PzXNtFC7s63XmAw==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]] couldn't find "libarsceneview_jni.so" at java.lang.Runtime.loadLibrary0(Runtime.java:1067) at java.lang.Runtime.loadLibrary0(Runtime.java:1007) at java.lang.System.loadLibrary(System.java:1667) at com.google.ar.sceneform.ArSceneView.reportEngineType(SourceFile:232) at com.google.ar.sceneform.ArSceneView.resumeSession(SourceFile:51) at com.google.ar.sceneform.ArSceneView.resume(SourceFile:41) at com.google.ar.sceneform.ux.BaseArFragment.start(BaseArFragment.java:507) at com.google.ar.sceneform.ux.BaseArFragment.onResume(BaseArFragment.java:315) at android.support.v4.app.Fragment.performResume(Fragment.java:2498) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1501) at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1784) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1852) at android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3269) at android.support.v4.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:3241) at android.support.v4.app.FragmentController.dispatchResume(FragmentController.java:223) at android.support.v4.app.FragmentActivity.onResumeFragments(FragmentActivity.java:538) at android.support.v4.app.FragmentActivity.onPostResume(FragmentActivity.java:527) at android.support.v7.app.AppCompatActivity.onPostResume(AppCompatActivity.java:172) at android.app.Activity.performResume(Activity.java:7964) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4195) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4237) at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) 2019-11-26 12:12:26.403 3832-3832/? I/native: session.cc:947 Entering Session::Resume. 2019-11-26 12:12:26.403 3832-3928/? I/native: android_camera.cc:714 Camera 0: State CLOSED: Reset cleanly got to CLOSED state. 2019-11-26 12:12:26.403 3832-3832/? I/native: pursuit_tracker.cc:1258 AugmentedRegion config changed, enabled:1, quad:true, downsample:true, global reacquisition:false, lite mode:false, adaptive frame delay:false, interpolation:true 2019-11-26 12:12:26.404 3832-3957/? W/native: motion_analysis_calculator.cc:370 No input video header found. Downstream calculators expecting video headers are likely to fail. 2019-11-26 12:12:26.407 3832-3832/? I/CameraManagerGlobal: Connecting to camera service 2019-11-26 12:12:26.410 3832-3832/? I/native: session.cc:2510 Update Frame Delay to 3 frames. 2019-11-26 12:12:26.410 3832-3832/? I/native: android_sensors.cc:150 Starting thread. 2019-11-26 12:12:26.410 3832-3832/? I/native: cameras.cc:1098 Selected camera 0 stream 0 as feature extraction stream. 2019-11-26 12:12:26.411 3832-3832/? I/native: session.cc:1108 Session::ResumeWithAnalytics returning OK. 2019-11-26 12:12:26.412 3832-3963/? I/native: android_sensors.cc:28 Gyro min delay 2.5ms requesting 5ms 2019-11-26 12:12:26.414 3832-3928/? E/ACameraMetadata: filterDurations: malformed duration key 1835009! count 0, type 3 2019-11-26 12:12:26.414 3832-3928/? E/ACameraMetadata: filterDurations: malformed duration key 1835010! count 0, type 3 2019-11-26 12:12:26.414 3832-3928/? E/ACameraMetadata: filterDurations: malformed duration key 1638407! count 0, type 3 2019-11-26 12:12:26.414 3832-3928/? E/ACameraMetadata: filterDurations: malformed duration key 1638408! count 0, type 0 2019-11-26 12:12:26.423 3832-3963/? I/native: android_sensors.cc:28 Accel min delay 2.5ms requesting 5ms 2019-11-26 12:12:26.434 3832-3963/? I/native: android_sensors.cc:28 IMU Temperature min delay 200ms requesting 200ms 2019-11-26 12:12:26.487 3832-3832/? E/native: session.cc:1861 Invalid ray produced by view data! 2019-11-26 12:12:26.616 3832-3883/com.swarmnyc.arswarm W/Gralloc3: mapper 3.x is not supported 2019-11-26 12:12:26.619 3832-3832/com.swarmnyc.arswarm W/RenderThread: type=1400 audit(0.0:15581): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=25885 scontext=u:r:untrusted_app_27:s0:c147,c257,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0 2019-11-26 12:12:26.623 3832-3883/com.swarmnyc.arswarm E/libc: Access denied finding property "vendor.gralloc.disable_ahardware_buffer" 2019-11-26 12:12:26.648 3832-3832/com.swarmnyc.arswarm E/Filament: Panic in filament::Material *filament::Material::Builder::build(filament::Engine &):86 reason: Material version mismatch. Expected 4 but received 2. 2019-11-26 12:12:26.648 3832-3832/com.swarmnyc.arswarm E/Filament: --------- beginning of crash 2019-11-26 12:12:26.648 3832-3832/com.swarmnyc.arswarm A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 3832 (warmnyc.arswarm), pid 3832 (warmnyc.arswarm) 2019-11-26 12:12:26.762 3832-3928/com.swarmnyc.arswarm E/ACameraMetadata: filterDurations: malformed duration key 1835009! count 0, type 3 2019-11-26 12:12:26.762 3832-3928/com.swarmnyc.arswarm E/ACameraMetadata: filterDurations: malformed duration key 1835010! count 0, type 3 2019-11-26 12:12:26.762 3832-3928/com.swarmnyc.arswarm E/ACameraMetadata: filterDurations: malformed duration key 1638407! count 0, type 3 2019-11-26 12:12:26.762 3832-3928/com.swarmnyc.arswarm E/ACameraMetadata: filterDurations: malformed duration key 1638408! count 0, type 118 2019-11-26 12:12:26.762 3832-3928/com.swarmnyc.arswarm I/native: capture_request_utils.cc:130 This device does not support auto focus. Using fixed focus instead. 2019-11-26 12:12:26.763 3832-3920/com.swarmnyc.arswarm I/native: cameras.cc:1249 Camera changed state from CLOSED to OPEN: Camera 0: State CLOSED: Camera device opened successfully. 2019-11-26 12:12:26.763 3832-3920/com.swarmnyc.arswarm I/native: cameras.cc:1249 Camera changed state from OPEN to CAPTURING: Started capture session. 2019-11-26 12:12:27.019 3832-3979/com.swarmnyc.arswarm W/Gralloc3: allocator 3.x is not supported 2019-11-26 12:12:27.110 3832-3964/com.swarmnyc.arswarm I/native: timebase_helpers.cc:168 Timebase offset intialized to 0 2019-11-26 12:12:27.116 3832-3957/com.swarmnyc.arswarm W/native: motion_analysis_calculator.cc:789 Requested image format in RegionFlowComputation does not match video stream format. Overriding. 2019-11-26 12:12:27.116 3832-3957/com.swarmnyc.arswarm I/native: region_flow_computation.cc:616 Instantiating and using NEON optimized non-OpenCV KLT. 2019-11-26 12:12:27.120 3832-3957/com.swarmnyc.arswarm I/native: motion_analysis_calculator.cc:618 Analyzed frame 1 2019-11-26 12:12:27.121 3832-3957/com.swarmnyc.arswarm W/native: parallel_invoker.h:300 Unsupported invoker mode selected on Android. Falling back to ThreadPool 2019-11-26 12:12:27.121 3832-3961/com.swarmnyc.arswarm W/native: tracking.cc:3753 Feature descriptors not exist 2019-11-26 12:12:27.122 3832-3961/com.swarmnyc.arswarm W/native: box_detector.cc:180 Detection skipped due to empty features or descriptors. 2019-11-26 12:12:27.133 3832-3939/com.swarmnyc.arswarm W/native: gyro_helper.cc:44 Gyro samples do not cover << [ 0 ; 103264.906383127003 ] sec. Use identity R. Gyro samples cover [ 103264.361715014995 ; 103264.949030510004 ] sec. 2019-11-26 12:12:27.153 3832-3960/com.swarmnyc.arswarm W/native: tracking.cc:3753 Feature descriptors not exist 2019-11-26 12:12:27.153 3832-3960/com.swarmnyc.arswarm W/native: box_detector.cc:180 Detection skipped due to empty features or descriptors. 2019-11-26 12:12:27.179 3832-3959/com.swarmnyc.arswarm W/native: tracking.cc:3753 Feature descriptors not exist 2019-11-26 12:12:27.179 3832-3959/com.swarmnyc.arswarm W/native: box_detector.cc:180 Detection skipped due to empty features or descriptors. 2019-11-26 12:12:27.212 3832-3959/com.swarmnyc.arswarm W/native: tracking.cc:3753 Feature descriptors not exist 2019-11-26 12:12:27.212 3832-3959/com.swarmnyc.arswarm W/native: box_detector.cc:180 Detection skipped due to empty features or descriptors.