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( at android.hardware.camera2.impl.CameraDeviceImpl.submitCaptureRequest( at android.hardware.camera2.impl.CameraDeviceImpl.setRepeatingRequest( at android.hardware.camera2.impl.CameraCaptureSessionImpl.setRepeatingRequest( at com.afollestad.materialcamera.internal.Camera2Fragment.onPreferencesUpdated( at com.afollestad.materialcamera.internal.BaseCameraFragment.invalidateFlash( at com.afollestad.materialcamera.internal.BaseCameraFragment.onFlashModesLoaded( at com.afollestad.materialcamera.internal.Camera2Fragment.openCamera( at com.afollestad.materialcamera.internal.BaseCameraFragment.onClick( at com.afollestad.materialcamera.internal.Camera2Fragment.onClick( at android.view.View.performClick( at android.view.View$ at android.os.Handler.handleCallback( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at at java.lang.reflect.Method.invoke(Native Method) at$ at

    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