Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

E/Camera2: Failed to start camera preview. #50

Open
flatfisher opened this issue Nov 16, 2016 · 1 comment
Open

E/Camera2: Failed to start camera preview. #50

flatfisher opened this issue Nov 16, 2016 · 1 comment
Labels

Comments

@flatfisher
Copy link

E/Camera2: Failed to start camera preview.
java.lang.IllegalStateException: Session has been closed; further changes are illegal.
at android.hardware.camera2.impl.CameraCaptureSessionImpl.checkNotClosed(CameraCaptureSessionImpl.java:606)
at android.hardware.camera2.impl.CameraCaptureSessionImpl.setRepeatingRequest(CameraCaptureSessionImpl.java:227)
at com.google.android.cameraview.Camera2$2.onConfigured(Camera2.java:98)
at java.lang.reflect.Method.invoke(Native Method)
at android.hardware.camera2.dispatch.InvokeDispatcher.dispatch(InvokeDispatcher.java:39)
at android.hardware.camera2.dispatch.HandlerDispatcher$1.run(HandlerDispatcher.java:65)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5422)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

@yaraki yaraki added the bug label Dec 7, 2016
@arriolac
Copy link

This is a duplicate of #11

ewolfox pushed a commit to ewolfox/cameraview that referenced this issue Apr 13, 2018
* Don't act on Camera if it is in the middle of a stop
* Ensure no issues if scheduled for stop
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants