After the page is closed and exited, the camera keeps printing and remains idle without being closed。
Expected behavior
Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.samsung.adaptivebrightnessgo API Level 2
Version
haishin_kit: ^0.13.0
dart: ">=3.4.3 <4.0.0"
flutter: ">=3.22.0"
Smartphone info.
No response
Additional context
No response
Screenshots
No response
Relevant log output
I/CameraManagerGlobal(19085): Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_IDLE for client com.samsung.adaptivebrightnessgo API Level 2
I/CameraManagerGlobal(19085): Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.samsung.adaptivebrightnessgo API Level 2
I/CameraManagerGlobal(19085): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_OPEN for client com.moyou.flutter_pet_community API Level 2
I/CameraManagerGlobal(19085): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_ACTIVE for client com.moyou.flutter_pet_community API Level 2
I/CameraManagerGlobal(19085): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_IDLE for client com.moyou.flutter_pet_community API Level 2
I/CameraManagerGlobal(19085): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client com.moyou.flutter_pet_community API Level 2
E/CameraCaptureSession(19085): Session 0: Exception while stopping repeating:
E/CameraCaptureSession(19085): android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): cancelRequest:688: Camera 0: Error clearing streaming request: Function not implemented (-38)
E/CameraCaptureSession(19085): at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:1731)
E/CameraCaptureSession(19085): at android.hardware.camera2.impl.ICameraDeviceUserWrapper.cancelRequest(ICameraDeviceUserWrapper.java:99)
E/CameraCaptureSession(19085): at android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating(CameraDeviceImpl.java:1371)
E/CameraCaptureSession(19085): at android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptureSessionImpl.java:579)
E/CameraCaptureSession(19085): at android.hardware.camera2.impl.CameraCaptureSessionImpl$2.onDisconnected(CameraCaptureSessionImpl.java:790)
E/CameraCaptureSession(19085): at android.hardware.camera2.impl.CameraDeviceImpl$7.run(CameraDeviceImpl.java:267)
E/CameraCaptureSession(19085): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
E/CameraCaptureSession(19085): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
E/CameraCaptureSession(19085): at java.lang.Thread.run(Thread.java:1012)
E/CameraCaptureSession(19085): Caused by: android.os.ServiceSpecificException: cancelRequest:688: Camera 0: Error clearing streaming request: Function not implemented (-38) (code 10)
E/CameraCaptureSession(19085): at android.os.Parcel.createExceptionOrNull(Parcel.java:3037)
E/CameraCaptureSession(19085): at android.os.Parcel.createException(Parcel.java:3007)
E/CameraCaptureSession(19085): at android.os.Parcel.readException(Parcel.java:2990)
E/CameraCaptureSession(19085): at android.os.Parcel.readException(Parcel.java:2932)
E/CameraCaptureSession(19085): at android.hardware.camera2.ICameraDeviceUser$Stub$Proxy.cancelRequest(ICameraDeviceUser.java:666)
E/CameraCaptureSession(19085): at android.hardware.camera2.impl.ICameraDeviceUserWrapper.cancelRequest(ICameraDeviceUserWrapper.java:97)
E/CameraCaptureSession(19085): ... 7 more
I/CameraManagerGlobal(19085): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_OPEN for client com.moyou.flutter_pet_community API Level 2
I/CameraManagerGlobal(19085): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_ACTIVE for client com.moyou.flutter_pet_community API Level 2
W/System (19085): A resource failed to call Surface.release.
W/System (19085): A resource failed to call Surface.release.
I/CameraManagerGlobal(19085): Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_OPEN for client com.samsung.adaptivebrightnessgo API Level 2
I/CameraManagerGlobal(19085): Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_ACTIVE for client com.samsung.adaptivebrightnessgo API Level 2
I/CameraManagerGlobal(19085): Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_IDLE for client com.samsung.adaptivebrightnessgo API Level 2
I/CameraManagerGlobal(19085): Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.samsung.adaptivebrightnessgo API Level 2
D/BufferPoolAccessor2.0(19085): evictor expired: 1, evicted: 0
D/BufferPoolAccessor2.0(19085): bufferpool2 0xb400007bd4232c28 : 0(0 size) total buffers - 0(0 size) used buffers - 112/117 (recycle/alloc) - 6/224 (fetch/transfer)
D/BufferPoolAccessor2.0(19085): evictor expired: 1, evicted: 1
I/CameraManagerGlobal(19085): Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_OPEN for client com.samsung.adaptivebrightnessgo API Level 2
I/CameraManagerGlobal(19085): Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_ACTIVE for client com.samsung.adaptivebrightnessgo API Level 2
I/CameraManagerGlobal(19085): Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_IDLE for client com.samsung.adaptivebrightnessgo API Level 2
I/CameraManagerGlobal(19085): Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.samsung.adaptivebrightnessgo API Level 2
Describe the bug
To Reproduce
After the page is closed and exited, the camera keeps printing and remains idle without being closed。
Expected behavior
Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.samsung.adaptivebrightnessgo API Level 2
Version
haishin_kit: ^0.13.0
dart: ">=3.4.3 <4.0.0" flutter: ">=3.22.0"
Smartphone info.
No response
Additional context
No response
Screenshots
No response
Relevant log output