java.lang.RuntimeException

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 208#238957208
    via GitHub by MegaMattMiller
    ,
  • GitHub comment 7#262803869
    via GitHub by yanayzimran
    ,
  • Crash with camera
    via GitHub by teolemon
    ,
  • setPreviewTexture failed
    via GitHub by Carpetfizz
    ,
    • 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:1348) at com.eguma.barcodescanner.CameraPreview.stopCameraPreview(CameraPreview.java:89) at com.eguma.barcodescanner.CameraPreview.stopCamera(CameraPreview.java:52) at com.eguma.barcodescanner.BarcodeScannerView.onPause(BarcodeScannerView.java:43) at com.eguma.barcodescanner.BarcodeScannerManager.onHostPause(BarcodeScannerManager.java:58) at com.facebook.react.bridge.ReactContext.onHostPause(ReactContext.java:179) at com.facebook.react.XReactInstanceManagerImpl.moveToBeforeResumeLifecycleState(XReactInstanceManagerImpl.java:573) at com.facebook.react.XReactInstanceManagerImpl.onHostPause(XReactInstanceManagerImpl.java:489) at com.facebook.react.ReactActivity.onPause(ReactActivity.java:120) at android.app.Activity.performPause(Activity.java:6765) at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1338) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4418) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4391) at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:4366) at android.app.ActivityThread.access$1200(ActivityThread.java:219) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1746) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:6939) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
    No Bugmate found.