dm77 / barcodescanner

Barcode Scanner Libraries for Android
Other
5.46k stars 1.43k forks source link

Cancel Button throws Java Exception #536

Closed DaDummy closed 4 years ago

DaDummy commented 4 years ago

The following Exception is logged when tapping the "Cancel"-Button on Android with barcode_scanner version 3.0.1:

E/ZXingScannerView(10883): java.lang.RuntimeException: Camera is being used after Camera.release() was called
E/ZXingScannerView(10883): java.lang.RuntimeException: Camera is being used after Camera.release() was called
E/ZXingScannerView(10883):  at android.hardware.Camera.native_getParameters(Native Method)
E/ZXingScannerView(10883):  at android.hardware.Camera.getParameters(Camera.java:1910)
E/ZXingScannerView(10883):  at me.dm7.barcodescanner.core.BarcodeScannerView.getRotatedData(BarcodeScannerView.java:309)
E/ZXingScannerView(10883):  at me.dm7.barcodescanner.zxing.ZXingScannerView.onPreviewFrame(ZXingScannerView.java:116)
E/ZXingScannerView(10883):  at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1124)
E/ZXingScannerView(10883):  at android.os.Handler.dispatchMessage(Handler.java:105)
E/ZXingScannerView(10883):  at android.os.Looper.loop(Looper.java:164)
E/ZXingScannerView(10883):  at android.os.HandlerThread.run(HandlerThread.java:65)
DaDummy commented 4 years ago

Uh sorry wrong project.