'Flutter Camera checkIfCameraClosedOrInError - Mac M1

Im getting this error whenever im trying to capture on camera, i've ran flutter doctor and its all fine.

E/CameraCaptureSession( 5206): at android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating(CameraDeviceImpl.java:1277) E/CameraCaptureSession( 5206): at android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptureSessionImpl.java:579) E/CameraCaptureSession( 5206): at io.flutter.plugins.camera.Camera.closeCaptureSession(Camera.java:1171) E/CameraCaptureSession( 5206): at io.flutter.plugins.camera.Camera.close(Camera.java:1177) E/CameraCaptureSession( 5206): at io.flutter.plugins.camera.Camera$1.onError(Camera.java:252) E/CameraCaptureSession( 5206): at android.hardware.camera2.impl.CameraDeviceImpl.notifyError(CameraDeviceImpl.java:1748) E/CameraCaptureSession( 5206): at android.hardware.camera2.impl.CameraDeviceImpl.$r8$lambda$KBQCqQRdhVVn7uHI9Xdha6OqnsU(Unknown Source:0) E/CameraCaptureSession( 5206): at android.hardware.camera2.impl.CameraDeviceImpl$$ExternalSyntheticLambda0.accept(Unknown Source:8) E/CameraCaptureSession( 5206): at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:281) E/CameraCaptureSession( 5206): at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:204) E/CameraCaptureSession( 5206): at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:97) E/CameraCaptureSession( 5206): at android.os.Handler.handleCallback(Handler.java:938) E/CameraCaptureSession( 5206): at android.os.Handler.dispatchMessage(Handler.java:99) E/CameraCaptureSession( 5206): at android.os.Looper.loopOnce(Looper.java:201) E/CameraCaptureSession( 5206): at android.os.Looper.loop(Looper.java:288) E/CameraCaptureSession( 5206): at android.app.ActivityThread.main(ActivityThread.java:7839) E/CameraCaptureSession( 5206): at java.lang.reflect.Method.invoke(Native Method) E/CameraCaptureSession( 5206): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) E/CameraCaptureSession( 5206): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source