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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Crashing Android
    via GitHub by rafaelcorreiapoli
    ,
  • GitHub comment 7#262803869
    via GitHub by yanayzimran
    ,
  • Crash with camera
    via GitHub by teolemon
    ,
  • setPreviewTexture failed
    via GitHub by Carpetfizz
    ,
  • GitHub comment 208#238957208
    via GitHub by MegaMattMiller
    ,
    • java.lang.RuntimeException: Camera is being used after Camera.release() was called at android.hardware.Camera.native_cancelAutoFocus(Native Method) at android.hardware.Camera.cancelAutoFocus(Camera.java:1275) 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) at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3849)
    No Bugmate found.