Skip to content

Getting error in android 12 #82

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

Closed
udaysingh2 opened this issue Jan 12, 2022 · 3 comments
Closed

Getting error in android 12 #82

udaysingh2 opened this issue Jan 12, 2022 · 3 comments

Comments

@udaysingh2
Copy link

android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): The camera device has encountered a serious error
E/CameraCaptureSession(11409): at android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInError(CameraDeviceImpl.java:2405)
E/CameraCaptureSession(11409): at android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating(CameraDeviceImpl.java:1324)
E/CameraCaptureSession(11409): at android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptureSessionImpl.java:579)
E/CameraCaptureSession(11409): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
E/flutter (11409): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: CameraException(captureTimeout, Picture capture request timed out)
E/flutter (11409): #0 CameraController.takePicture
package:camera/src/camera_controller.dart:346
E/flutter (11409):
E/flutter (11409):
D/EGL_emulation(11409): app_time_stats: avg=2603.35ms min=9.02ms max=22912.86ms count=9

@kenguyenduc
Copy link

Same problem here

@iBelow
Copy link

iBelow commented Jun 23, 2022

E/CameraCaptureSession( 7675): 	at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:281)
E/CameraCaptureSession( 7675): 	at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:204)
E/CameraCaptureSession( 7675): 	at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:97)
E/CameraCaptureSession( 7675): 	at android.os.Handler.handleCallback(Handler.java:938)
E/CameraCaptureSession( 7675): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/CameraCaptureSession( 7675): 	at android.os.Looper.loopOnce(Looper.java:201)
E/CameraCaptureSession( 7675): 	at android.os.Looper.loop(Looper.java:288)
E/CameraCaptureSession( 7675): 	at android.app.ActivityThread.main(ActivityThread.java:7839)
E/CameraCaptureSession( 7675): 	at java.lang.reflect.Method.invoke(Native Method)
E/CameraCaptureSession( 7675): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/CameraCaptureSession( 7675): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

maybe u update a camera depends?
flutter/flutter#92762

flutter/flutter#92973

@gabuldev
Copy link
Owner

Try use the last version to camera_camera

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

4 participants