java.lang.IllegalStateException

CameraDevice was already closed

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web8400

  • via GitHub by msisinni
    , 1 year ago
    CameraDevice was already closed
  • via Stack Overflow by kobasek
    , 4 months ago
    CameraDevice was already closed
  • CameraDevice was already closed
  • Stack trace

    • java.lang.IllegalStateException: CameraDevice was already closed at android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInError(CameraDeviceImpl.java:1997) at android.hardware.camera2.impl.CameraDeviceImpl.submitCaptureRequest(CameraDeviceImpl.java:844) at android.hardware.camera2.impl.CameraDeviceImpl.setRepeatingRequest(CameraDeviceImpl.java:899) at android.hardware.camera2.impl.CameraCaptureSessionImpl.setRepeatingRequest(CameraCaptureSessionImpl.java:236) at com.afollestad.materialcamera.internal.Camera2Fragment.onPreferencesUpdated(Camera2Fragment.java:678) at com.afollestad.materialcamera.internal.BaseCameraFragment.invalidateFlash(BaseCameraFragment.java:422) at com.afollestad.materialcamera.internal.BaseCameraFragment.onFlashModesLoaded(BaseCameraFragment.java:165) at com.afollestad.materialcamera.internal.Camera2Fragment.openCamera(Camera2Fragment.java:631) at com.afollestad.materialcamera.internal.BaseCameraFragment.onClick(BaseCameraFragment.java:387) at com.afollestad.materialcamera.internal.Camera2Fragment.onClick(Camera2Fragment.java:73) at android.view.View.performClick(View.java:5204) at android.view.View$PerformClick.run(View.java:21153) 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:5417) 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 3 months ago
    18 times, 5 months ago
    6 times, 1 year ago