java.lang.RuntimeException: Camera is being used after Camera.release() was called

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by rafaelcorreiapoli
, 1 year ago
Camera is being used after Camera.release() was called
java.lang.RuntimeException: Camera is being used after Camera.release() was called
at android.hardware.Camera.native_cancelAutoFocus(Native Method)
at com.eguma.barcodescanner.CameraPreview.stopCameraPreview(CameraPreview.java:89)
at com.eguma.barcodescanner.CameraPreview.stopCamera(CameraPreview.java:52)
at com.eguma.barcodescanner.BarcodeScannerView.stopCamera(BarcodeScannerView.java:55)
at com.eguma.barcodescanner.BarcodeScannerManager.onHostDestroy(BarcodeScannerManager.java:63)
at com.facebook.react.bridge.ReactContext.onHostDestroy(ReactContext.java:182)
at com.facebook.react.ReactInstanceManagerImpl.moveToBeforeCreateLifecycleState(ReactInstanceManagerImpl.java:599)
at com.facebook.react.ReactInstanceManagerImpl.destroy(ReactInstanceManagerImpl.java:552)
at com.facebook.react.ReactActivity.onDestroy(ReactActivity.java:177)
at android.app.Activity.performDestroy(Activity.java:6407)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1142)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3818)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.