An IllegalStateException was thrown because an attempt was made to modify a camera session after it had already been closed. The session was closed, so further changes like setting a repeating request were illegal. This occurred when configuring the camera in the ZCameraTwoView class.
An IllegalStateException was thrown because an attempt was made to modify a camera session after it had already been closed. The session was closed, so further changes like setting a repeating request were illegal. This occurred when configuring the camera in the ZCameraTwoView class.
An IllegalStateException was thrown because an attempt was made to modify a camera session after it had already been closed. The session was closed, so further changes like setting a repeating request were illegal. This occurred when configuring the camera in the ZCameraTwoView class.
IllegalStateException: Session has been closed; further changes are
illegal. at android.hardware.camera2.impl.CameraCaptureSessionImpl.checkNotClosed(CameraCapture SessionImpl.java:834) at android.hardware.camera2.impl.CameraCaptureSessionImpl.setRepeatingRequest(CameraCa ptureSessionImpl.java:288) at com.zoho.scanner.cameratwo.ZCameraTwoView$5.onConfigured(Unknown Source:20) at android.hardware.camera2.impl.CallbackProxies$SessionStateCallbackProxy.lambda$onCo nfigured$0$CallbackProxies$SessionStateCallbackProxy(CallbackProxies.java:53) at android.hardware.camera2.impl.-$ $Lambda$CallbackProxies$SessionStateCallbackProxy$soW0qC12Osypoky6AfL3P2- TeDw.run(Unknown Source:4) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:237) at android.app.ActivityThread.main(ActivityThread.java:8107) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)