I’ve updated my device and reinstalled AR, and I’ve finally manged to try your branch but unfortunately I still get the crash
- Open app
- Click “Launch Playground”
- Wait for AR to start
- Press < button
- Click “Launch Playground” again
- Crash
If I don’t wait for AR to start and quickly press the back button I don’t get the crash so it is related to that.
Here’s the logs for everything after I press “Launch Playground” the second time. Except for 2021-09-21 10:24:57.939 21636-21636/com.android.babylonnative.playground A/libc: Fatal signal 5 (SIGTRAP), code 1 (TRAP_BRKPT), fault addr 0x7e26f67618 in tid 21636 (tive.playground), pid 21636 (tive.playground)
I don’t see any smoking gun myself.
2021-09-21 10:24:57.550 21636-21636/com.android.babylonnative.playground D/ViewRootImpl@8b4f607[MainActivity]: ViewPostIme pointer 0
2021-09-21 10:24:57.587 21636-21636/com.android.babylonnative.playground D/ViewRootImpl@8b4f607[MainActivity]: ViewPostIme pointer 1
2021-09-21 10:24:57.610 21636-21636/com.android.babylonnative.playground W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@db69dd4
2021-09-21 10:24:57.617 21636-21636/com.android.babylonnative.playground D/PhoneWindow: forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4268 com.android.internal.policy.DecorView.updateColorViews:1513 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3246 android.view.Window.setFlags:1148 com.android.internal.policy.PhoneWindow.generateLayout:2474
2021-09-21 10:24:57.618 21636-21636/com.android.babylonnative.playground I/MultiWindowDecorSupport: updateCaptionType >> DecorView@58d6ec3[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
2021-09-21 10:24:57.618 21636-21636/com.android.babylonnative.playground D/MultiWindowDecorSupport: setCaptionType = 0, DecorView = DecorView@58d6ec3[]
2021-09-21 10:24:57.639 21636-21636/com.android.babylonnative.playground I/native: I0921 10:24:57.639016 21636 session.cc:1189] Entering Session::Resume.
2021-09-21 10:24:57.639 21636-21705/com.android.babylonnative.playground I/BabylonNative: BJS - [10:24:57]: FPS: 30
2021-09-21 10:24:57.641 21636-21636/com.android.babylonnative.playground I/native: I0921 10:24:57.641941 21636 estimator_impl.cc:712] Resetting motion tracking from user request.
2021-09-21 10:24:57.642 21636-21636/com.android.babylonnative.playground I/native: I0921 10:24:57.642258 21636 session.cc:3320] Update Frame Delay to 0 frames.
2021-09-21 10:24:57.642 21636-21636/com.android.babylonnative.playground I/native: I0921 10:24:57.642340 21636 android_sensors.cc:185] Starting thread.
2021-09-21 10:24:57.642 21636-21636/com.android.babylonnative.playground I/native: I0921 10:24:57.642573 21636 logger.h:28] DataSourceMetrics: kStartImageSubSystem: 81.731us
2021-09-21 10:24:57.642 21636-21636/com.android.babylonnative.playground I/native: I0921 10:24:57.642611 21636 session.cc:1377] Session::ResumeWithAnalytics returning OK.
2021-09-21 10:24:57.643 21636-21771/com.android.babylonnative.playground E/ACameraMetadata: filterDurations: malformed duration key 851980! count 0, type 3
2021-09-21 10:24:57.643 21636-21771/com.android.babylonnative.playground E/ACameraMetadata: filterDurations: malformed duration key 1638402! count 0, type 3
2021-09-21 10:24:57.643 21636-21771/com.android.babylonnative.playground E/ACameraMetadata: filterDurations: malformed duration key 1638403! count 0, type 3
2021-09-21 10:24:57.643 21636-21771/com.android.babylonnative.playground E/ACameraMetadata: filterDurations: malformed duration key 1835009! count 0, type 3
2021-09-21 10:24:57.643 21636-21771/com.android.babylonnative.playground E/ACameraMetadata: filterDurations: malformed duration key 1835010! count 0, type 3
2021-09-21 10:24:57.643 21636-21771/com.android.babylonnative.playground E/ACameraMetadata: filterDurations: malformed duration key 1638407! count 0, type 3
2021-09-21 10:24:57.643 21636-21771/com.android.babylonnative.playground E/ACameraMetadata: filterDurations: malformed duration key 1638408! count 0, type 126
2021-09-21 10:24:57.650 21636-22003/com.android.babylonnative.playground I/native: I0921 10:24:57.650242 22003 android_sensors.cc:45] Gyro min delay 2ms requesting 5ms
2021-09-21 10:24:57.650 21636-21636/com.android.babylonnative.playground D/ViewRootImpl@ca72404[PlaygroundActivity]: setView = com.android.internal.policy.DecorView@58d6ec3 TM=true MM=false
2021-09-21 10:24:57.651 21636-21636/com.android.babylonnative.playground D/ViewRootImpl@8b4f607[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1
2021-09-21 10:24:57.651 21636-21636/com.android.babylonnative.playground D/InputMethodManager: prepareNavigationBarInfo() DecorView@1618970[MainActivity]
2021-09-21 10:24:57.651 21636-21636/com.android.babylonnative.playground D/InputMethodManager: getNavigationBarColor() -855310
2021-09-21 10:24:57.652 21636-21653/com.android.babylonnative.playground I/CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_OPEN for client com.android.babylonnative.playground API Level 2
2021-09-21 10:24:57.654 21636-21636/com.android.babylonnative.playground D/SurfaceView: onWindowVisibilityChanged(0) true android.view.SurfaceView{f3bbded V.E...... ......I. 0,0-0,0} of ViewRootImpl@ca72404[PlaygroundActivity]
2021-09-21 10:24:57.654 21636-21636/com.android.babylonnative.playground D/SurfaceView: onWindowVisibilityChanged(0) false android.view.SurfaceView{29c4422 I.E...... ......I. 0,0-0,0} of ViewRootImpl@ca72404[PlaygroundActivity]
2021-09-21 10:24:57.658 21636-22003/com.android.babylonnative.playground I/native: I0921 10:24:57.658493 22003 android_sensors.cc:45] Accel min delay 2ms requesting 5ms
2021-09-21 10:24:57.667 21636-21771/com.android.babylonnative.playground I/native: I0921 10:24:57.667087 21771 logger.h:28] CameraMetrics: OpenCamera: 24.282269ms
2021-09-21 10:24:57.672 21636-21636/com.android.babylonnative.playground D/ViewRootImpl@ca72404[PlaygroundActivity]: Relayout returned: old=(0,0,1440,2960) new=(0,0,1440,2960) req=(1440,2960)0 dur=9 res=0x7 s={true 541593296896} ch=true
2021-09-21 10:24:57.673 21636-21670/com.android.babylonnative.playground D/OpenGLRenderer: createReliableSurface : 0x7e375f0b40(0x7e1979e000)
2021-09-21 10:24:57.675 21636-21670/com.android.babylonnative.playground I/mali_winsys: new_window_surface() [1440x2960] return: 0x3000
2021-09-21 10:24:57.683 21636-21636/com.android.babylonnative.playground D/SurfaceView: surfaceCreated 1 #8 android.view.SurfaceView{f3bbded V.E...... ......ID 0,0-1440,2448}
2021-09-21 10:24:57.684 21636-21636/com.android.babylonnative.playground D/SurfaceView: surfaceChanged (1440,2448) 1 #8 android.view.SurfaceView{f3bbded V.E...... ......ID 0,0-1440,2448}
2021-09-21 10:24:57.687 21636-21705/com.android.babylonnative.playground I/BabylonNative: BJS - [10:24:57]: Babylon Native (v5.0.0-alpha.35) launched
2021-09-21 10:24:57.689 21636-21636/com.android.babylonnative.playground D/SurfaceView: surfaceCreated 1 #3 android.view.SurfaceView{29c4422 V.E...... ......ID 0,0-1440,2448}
2021-09-21 10:24:57.689 21636-21636/com.android.babylonnative.playground D/SurfaceView: surfaceChanged (1440,2448) 1 #3 android.view.SurfaceView{29c4422 V.E...... ......ID 0,0-1440,2448}
2021-09-21 10:24:57.690 21636-21636/com.android.babylonnative.playground E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7e375f30c0
2021-09-21 10:24:57.691 21636-21636/com.android.babylonnative.playground E/libEGL: eglMakeCurrentImpl:1321 error 300b (EGL_BAD_NATIVE_WINDOW)
2021-09-21 10:24:57.692 21636-21705/com.android.babylonnative.playground I/BabylonNative: BJS - [10:24:57]: Loaded
2021-09-21 10:24:57.692 21636-21636/com.android.babylonnative.playground I/mali_winsys: new_window_surface() [1440x2448] return: 0x3000
2021-09-21 10:24:57.692 21636-21636/com.android.babylonnative.playground I/mali_egl: eglDestroySurface() in
2021-09-21 10:24:57.692 21636-21636/com.android.babylonnative.playground I/mali_egl: eglDestroySurface() out
2021-09-21 10:24:57.693 21636-21636/com.android.babylonnative.playground W/libEGL: EGLNativeWindowType 0x7f39a62010 disconnect failed
2021-09-21 10:24:57.693 21636-21636/com.android.babylonnative.playground W/mali_winsys: native_window_api_disconnect failed: -19
2021-09-21 10:24:57.694 21636-21636/com.android.babylonnative.playground I/mali_winsys: delete_surface() [1440x2448] return
2021-09-21 10:24:57.694 21636-21636/com.android.babylonnative.playground I/native: I0921 10:24:57.694244 21636 session.cc:3320] Update Frame Delay to 0 frames.
2021-09-21 10:24:57.759 21636-21771/com.android.babylonnative.playground I/native: I0921 10:24:57.759730 21771 logger.h:28] CameraMetrics: CreateCaptureSession: 91.296731ms
2021-09-21 10:24:57.759 21636-21771/com.android.babylonnative.playground I/native: I0921 10:24:57.759859 21771 capture_request_utils.cc:207] Flash: ConfigureRequestFlashMode - OFF
2021-09-21 10:24:57.761 21636-21765/com.android.babylonnative.playground I/native: I0921 10:24:57.761733 21765 cameras.cc:1387] Camera 0 changed state CLOSED->OPEN; Camera device opened successfully. i=5
2021-09-21 10:24:57.761 21636-21765/com.android.babylonnative.playground I/native: I0921 10:24:57.761859 21765 cameras.cc:1387] Camera 0 changed state OPEN->CAPTURING; Started capture session. i=6
2021-09-21 10:24:57.761 21636-21636/com.android.babylonnative.playground E/libEGL: eglMakeCurrentImpl:1321 error 300d (EGL_BAD_SURFACE)
2021-09-21 10:24:57.939 21636-21636/com.android.babylonnative.playground A/libc: Fatal signal 5 (SIGTRAP), code 1 (TRAP_BRKPT), fault addr 0x7e26f67618 in tid 21636 (tive.playground), pid 21636 (tive.playground)
2021-09-21 10:24:58.133 21636-21653/com.android.babylonnative.playground I/CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_ACTIVE for client com.android.babylonnative.playground API Level 2
2021-09-21 10:24:58.154 21636-22005/com.android.babylonnative.playground I/native: I0921 10:24:58.154350 22005 logger.h:28] DataSourceMetrics: kFirstGlCallback: 511.8525ms
2021-09-21 10:24:58.155 21636-21798/com.android.babylonnative.playground I/native: I0921 10:24:58.155240 21798 timebase_helpers.cc:170] Timebase offset intialized to 0
2021-09-21 10:24:58.155 21636-22006/com.android.babylonnative.playground I/native: I0921 10:24:58.155934 22006 logger.h:28] CameraMetrics: FirstCaptureComplete: 396.0345ms
2021-09-21 10:24:58.156 21636-21798/com.android.babylonnative.playground I/native: I0921 10:24:58.156126 21798 logger.h:28] DataSourceMetrics: kFirstImageCallback: 513.631423ms
2021-09-21 10:24:58.168 21636-22004/com.android.babylonnative.playground I/native: I0921 10:24:58.167899 22004 performance_monitor.cc:115] Event: FeatureExtraction is taking too long, it took 733.671ms
2021-09-21 10:24:58.169 21636-21782/com.android.babylonnative.playground W/native: W0921 10:24:58.169518 21782 vio_initializer.cc:463] Dropped initialization window due to skip in data.
2021-09-21 10:24:58.368 21636-21786/com.android.babylonnative.playground E/native: E0921 10:24:58.368186 21786 motion_tracking_context.cc:1433] Unable to find measurements corresponding to VIO status at timestamp 3832141119077.
2021-09-21 10:24:58.639 21636-21705/com.android.babylonnative.playground I/BabylonNative: BJS - [10:24:58]: FPS: 60