googlesamples / android-vision

Deprecated: The Mobile Vision API is now a part of ML Kit: Check out this repo:
https://github.com/firebase/quickstart-android/tree/master/mlkit
Apache License 2.0
2.93k stars 1.73k forks source link

Exception java.lang.RuntimeException: takePicture failed #361

Open abiemann opened 6 years ago

abiemann commented 6 years ago

stack trace:

android.hardware.Camera.native_takePicture (Camera.java) android.hardware.Camera.takePicture (Camera.java:1557) com.jennylife.jennylife.activities.vision.CameraSource.takePicture (CameraSource.java:502) com.jennylife.jennylife.activities.DriversLicenseBarcodeActivity.onTap (DriversLicenseBarcodeActivity.java:378)

the exact line with the exception:

mCamera.takePicture(startCallback, null, null, doneCallback);

file exhibiting the problem

https://raw.githubusercontent.com/googlesamples/android-vision/master/visionSamples/barcode-reader/app/src/main/java/com/google/android/gms/samples/vision/barcodereader/ui/camera/CameraSource.java

device details

Device Manufacturer: LGE Model: LG-M153 Board: Msm8909 Android API: 23 Android OS: 6.0.1 Brand: Lge RAM: 1.38GB Orientation: Portrait

abiemann commented 6 years ago

it looks like this PR will fix it https://github.com/googlesamples/android-vision/pull/222

However it hasn't been merged in a year