java.lang.IllegalStateException: Session has been closed; further changes are illegal.

GitHub | vanniktech | 6 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

    Camera2 always crashes after Permission Dialog

    GitHub | 6 months ago | andhie
    java.lang.IllegalStateException: Session has been closed; further changes are illegal.
  2. 0

    java.lang.IllegalStateException: Session has been closed; further changes are illegal.

    GitHub | 6 months ago | vanniktech
    java.lang.IllegalStateException: Session has been closed; further changes are illegal.
  3. 0

    GitHub comment 11#247780077

    GitHub | 6 months ago | ungesehn
    java.lang.IllegalStateException: Session has been closed; further changes are illegal.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Demo using Fragment

    GitHub | 6 months ago | skywaydave
    java.lang.IllegalStateException: Session has been closed; further changes are illegal.
  6. 0

    E/Camera2: Failed to start camera preview.

    GitHub | 4 months ago | flatfisher
    java.lang.IllegalStateException: Session has been closed; further changes are illegal.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Session has been closed; further changes are illegal.

      at android.hardware.camera2.impl.CameraCaptureSessionImpl.checkNotClosed()
    2. Android
      CameraCaptureSessionImpl.setRepeatingRequest
      1. android.hardware.camera2.impl.CameraCaptureSessionImpl.checkNotClosed(CameraCaptureSessionImpl.java:606)
      2. android.hardware.camera2.impl.CameraCaptureSessionImpl.setRepeatingRequest(CameraCaptureSessionImpl.java:227)
      2 frames
    3. com.google.android
      Camera2$3.onConfigured
      1. com.google.android.cameraview.Camera2$3.onConfigured(Camera2.java:132)
      1 frame
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    5. Android
      HandlerDispatcher$1.run
      1. android.hardware.camera2.dispatch.InvokeDispatcher.dispatch(InvokeDispatcher.java:39)
      2. android.hardware.camera2.dispatch.HandlerDispatcher$1.run(HandlerDispatcher.java:65)
      2 frames
    6. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:751)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:154)
      4. android.app.ActivityThread.main(ActivityThread.java:6077)
      4 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
      2 frames