android.hardware.camera2.CameraAccessException: The camera device has encountered a serious error

Stack Overflow | Aerrow | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Camera not re initialize second time in 5.1.1

    GitHub | 8 months ago | alphaDroid89
    android.hardware.camera2.CameraAccessException: The camera device has encountered a serious error
  2. 0

    Camera not re initialize second time in 5.1.1

    Stack Overflow | 8 months ago | Aerrow
    android.hardware.camera2.CameraAccessException: The camera device has encountered a serious error

    Root Cause Analysis

    1. android.hardware.camera2.CameraAccessException

      The camera device has encountered a serious error

      at android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInError()
    2. Android
      CameraCaptureSessionImpl.close
      1. android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInError(CameraDeviceImpl.java:1478)
      2. android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating(CameraDeviceImpl.java:677)
      3. android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptureSessionImpl.java:328)
      3 frames
    3. com.test.video
      VideoContentRecording.onInfo
      1. com.test.video.fragments.VideoContentRecording.closePreviewSession(VideoContentRecording.java:871)
      2. com.test.video.fragments.VideoContentRecording.startRecordingVideo(VideoContentRecording.java:812)
      3. com.test.video.fragments.VideoContentRecording.onInfo(VideoContentRecording.java:941)
      3 frames
    4. Android Platform
      ActivityThread.main
      1. android.media.MediaRecorder$EventHandler.handleMessage(MediaRecorder.java:1033)
      2. android.os.Handler.dispatchMessage(Handler.java:102)
      3. android.os.Looper.loop(Looper.java:211)
      4. android.app.ActivityThread.main(ActivityThread.java:5389)
      4 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)
      2 frames