Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal Exception: java.lang.NullPointerException (Android 11) #36

Open
shrini-getwasabi opened this issue Aug 9, 2021 · 1 comment
Open

Comments

@shrini-getwasabi
Copy link

Attempt to invoke virtual method 'int android.hardware.camera2.CameraCaptureSession.setRepeatingRequest(android.hardware.camera2.CaptureRequest, android.hardware.camera2.CameraCaptureSession$CaptureCallback, android.os.Handler)' on a null object reference
com.daasuu.camerarecorder.CameraThread.stopPreview (CameraThread.java:255)
com.daasuu.camerarecorder.CameraHandler.handleMessage (CameraHandler.java:86)

@shrini-getwasabi
Copy link
Author

Fatal Exception: java.lang.IllegalStateException
CameraDevice was already closed

android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInError (CameraDeviceImpl.java:2285)
android.hardware.camera2.impl.CameraDeviceImpl.submitCaptureRequest (CameraDeviceImpl.java:1163)
android.hardware.camera2.impl.CameraDeviceImpl.setRepeatingRequest (CameraDeviceImpl.java:1236)
android.hardware.camera2.impl.CameraCaptureSessionImpl.setRepeatingRequest (CameraCaptureSessionImpl.java:313)
com.daasuu.camerarecorder.CameraThread.updatePreview (CameraThread.java:132)
com.daasuu.camerarecorder.CameraThread.access$300 (CameraThread.java:31)
com.daasuu.camerarecorder.CameraThread$2.onConfigured (CameraThread.java:113)
android.hardware.camera2.impl.CallbackProxies$SessionStateCallbackProxy.lambda$onConfigured$0$CallbackProxies$SessionStateCallbackProxy (CallbackProxies.java:53)
android.hardware.camera2.impl.-$$Lambda$CallbackProxies$SessionStateCallbackProxy$soW0qC12Osypoky6AfL3P2-TeDw.run (-.java:4)
android.os.Handler.handleCallback (Handler.java:938)

@shrini-getwasabi shrini-getwasabi changed the title Fatal Exception: java.lang.NullPointerException Fatal Exception: java.lang.NullPointerException (Android 11) Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant