Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 12 Camera issue - Front camera working fine, back camera not working #48

Open
prakashjaganathan opened this issue Mar 23, 2022 · 0 comments

Comments

@prakashjaganathan
Copy link

I am getting this error for Android 12 OS device.. Let me know once this issue is fixed...

D/Camera2BasicFragment(24827): ONCAPTURECOMPLETED
D/Camera2BasicFragment(24827): UNLOCK FOCUS
D/EGL_emulation(24827): app_time_stats: avg=187.77ms min=36.22ms max=552.19ms count=6
D/EGL_emulation(24827): app_time_stats: avg=176.55ms min=105.06ms max=243.99ms count=6
E/CameraCaptureSession(24827): Session 0: Exception while stopping repeating:
E/CameraCaptureSession(24827): android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): The camera device has encountered a serious error
E/CameraCaptureSession(24827): at android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInError(CameraDeviceImpl.java:2350)
E/CameraCaptureSession(24827): at android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating(CameraDeviceImpl.java:1277)
E/CameraCaptureSession(24827): at android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptureSessionImpl.java:579)
E/CameraCaptureSession(24827): at io.flutter.plugins.camera.Camera.closeCaptureSession(Camera.java:949)
E/CameraCaptureSession(24827): at io.flutter.plugins.camera.Camera.close(Camera.java:955)
E/CameraCaptureSession(24827): at io.flutter.plugins.camera.Camera$2.onError(Camera.java:291)
E/CameraCaptureSession(24827): at android.hardware.camera2.impl.CameraDeviceImpl.notifyError(CameraDeviceImpl.java:1748)
E/CameraCaptureSession(24827): at android.hardware.camera2.impl.CameraDeviceImpl.$r8$lambda$KBQCqQRdhVVn7uHI9Xdha6OqnsU(Unknown Source:0)
E/CameraCaptureSession(24827): at android.hardware.camera2.impl.CameraDeviceImpl$$ExternalSyntheticLambda0.accept(Unknown Source:8)
E/CameraCaptureSession(24827): at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:281)
E/CameraCaptureSession(24827): at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:204)
E/CameraCaptureSession(24827): at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:97)
E/CameraCaptureSession(24827): at android.os.Handler.handleCallback(Handler.java:938)
E/CameraCaptureSession(24827): at android.os.Handler.dispatchMessage(Handler.java:99)
E/CameraCaptureSession(24827): at android.os.Looper.loopOnce(Looper.java:201)
E/CameraCaptureSession(24827): at android.os.Looper.loop(Looper.java:288)
E/CameraCaptureSession(24827): at android.app.ActivityThread.main(ActivityThread.java:7839)
E/CameraCaptureSession(24827): at java.lang.reflect.Method.invoke(Native Method)
E/CameraCaptureSession(24827): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/CameraCaptureSession(24827): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant