Open
Description
Hello,
I am working on updating this plugin, and I have found that starting from version 2.0.4 in Flutter, closing the native view crashes the application.
I believe it has something to do with the ARScene.destroy() method, but I don’t have much knowledge of native Android.
I found that this change has been merged, and it is probably what is causing the problem. #408
It's a shame not to be able to have this plugin updated to the latest version because of this issue.
In the coming days, I'm going to prepare a branch with an example with both version 2.0.3 and version 2.0.4 so that someone with more knowledge of native Android can give us a hand.
E ERROR: Format allocation info not found for format: 38
E ERROR: Format allocation info not found for format: 0
E Invalid base format! req_base_format = 0x0, req_format = 0x38
E ERROR: Unrecognized and/or unsupported format 0x38 and usage 0xb00
E ERROR: Format allocation info not found for format: 3b
E ERROR: Format allocation info not found for format: 0
E Invalid base format! req_base_format = 0x0, req_format = 0x3b
E ERROR: Unrecognized and/or unsupported format 0x3b and usage 0xb00
E ERROR: Format allocation info not found for format: 38
E ERROR: Format allocation info not found for format: 0
E Invalid base format! req_base_format = 0x0, req_format = 0x38
E ERROR: Unrecognized and/or unsupported format 0x38 and usage 0xb00
E ERROR: Format allocation info not found for format: 3b
E ERROR: Format allocation info not found for format: 0
E Invalid base format! req_base_format = 0x0, req_format = 0x3b
E ERROR: Unrecognized and/or unsupported format 0x3b and usage 0xb00
D [ImageReader-1080x2340f1m3-25378-1](id:632200000004,api:0,p:-1,c:25378) disconnect
I onWindowVisibilityChanged(8) false io.github.sceneview.ar.ARSceneView{d9102b0 V.E...... ........ 0,0-1080,2340} of ViewRootImpl@7598a16[MainActivity]
I 227607216 Changes: creating=false format=false size=false visible=true alpha=false hint=false visible=true left=false top=false z=false attached=true lifecycleStrategy=false
I 227607216 Cur surface: Surface(name=null)/@0x24d2ca2
I 227607216 surfaceDestroyed
I surfaceDestroyed callback.size 1 #2 io.github.sceneview.ar.ARSceneView{d9102b0 V.E...... ........ 0,0-1080,2340}
I updateSurface: mVisible = false mSurface.isValid() = true
D [SurfaceView[myapp.bundle/myapp.bundle.MainActivity]@0#2](f:0,a:3) destructor()
D [SurfaceView[myapp.bundle/myapp.bundle.MainActivity]@0#2(BLAST Consumer)2](id:632200000006,api:0,p:-1,c:25378) disconnect
I releaseSurfaces: viewRoot = ViewRootImpl@7598a16[MainActivity]
V Layout: x=48 y=104 w=1080 h=2340, frame=Rect(0, 0 - 1080, 2340)
I I0000 00:00:1741979322.706988 25782 session_lite_c_api.cc:37] Deleting ArSession...
D CameraStream destroyed
D meow delete tls: 0xb4000073237d4600
D meow delete tls: 0xb40000732382af00
D meow delete tls: 0xb400007342ada8c0
D Engine destroyed
I Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_IDLE for client myapp.bundle API Level 2 User Id 0
I 227607216 Detaching SV
I 227607216 Changes: creating=false format=false size=false visible=false alpha=false hint=false visible=false left=false top=false z=false attached=false lifecycleStrategy=false
I onDetachedFromWindow: tryReleaseSurfaces()
I releaseSurfaces: viewRoot = ViewRootImpl@7598a16[MainActivity]
I I0000 00:00:1741979322.802207 25378 session_lite_c_api.cc:37] Deleting ArSession...
I Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client myapp.bundle API Level 2 User Id 0
W Long monitor contention with owner DefaultDispatcher-worker-1 (25782) at void dbq.b()(PG:163) waiters=0 in void dbi.onImageAvailable(android.media.ImageReader) for 275ms
I I0000 00:00:1741979323.015976 25782 logger.h:28] DataSourceMetrics: kStopImageSubSystem: 292.728308ms
D meow new tls: 0xb40000737ae09c40
D applied 0 plugin for [myapp.bundle].
E eglMakeCurrentImpl:1061 error 3002 (EGL_BAD_ACCESS)
E E0000 00:00:1741979323.032258 25782 android_frame_manager_gl.cc:297] eglMakeCurrent failed. egl_error=12290
E E0000 00:00:1741979323.032319 25782 android_frame_manager_gl.cc:244] Failed to destroy egl image.
E validate_display:549 error 3008 (EGL_BAD_DISPLAY)
E E0000 00:00:1741979323.032392 25378 android_frame_manager_gl.cc:244] Failed to destroy egl image.
E E0000 00:00:1741979323.032416 25782 android_frame_manager_gl.cc:297] eglMakeCurrent failed. egl_error=12296
A F0000 00:00:1741979323.032461 25378 frame_manager.cc:456] Check failed: gpu_mode_ == kCopySurfaceTexture || gpu_mode_ == kHardwareBuffers
A terminating.
A F0000 00:00:1741979323.032461 25378 frame_manager.cc:456] Check failed: gpu_mode_ == kCopySurfaceTexture || gpu_mode_ == kHardwareBuffers
A terminating.
A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 25378 (myapp.bundle), pid 25378 (myapp.bundle)
I I0000 00:00:1741979323.080502 25759 jni_util.cc:91] Exiting thread. Detach thread.
Metadata
Metadata
Assignees
Labels
No labels