Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random exception while scanning #75

Closed
vojkny opened this issue Mar 10, 2016 · 1 comment
Closed

Random exception while scanning #75

vojkny opened this issue Mar 10, 2016 · 1 comment

Comments

@vojkny
Copy link

vojkny commented Mar 10, 2016

I am randomly getting this exception which kills completely my application.

java.lang.IllegalArgumentException: Null image data supplied.
at com.google.android.gms.vision.Frame$Builder.setImageData(Unknown Source)
at com.google.android.gms.vision.CameraSource$zzb.run(Unknown Source)
at java.lang.Thread.run(Thread.java:838)

Would be great to handle the exception so I could work with it. But as it is in separate thread, I hardly know what to do with it.

@pm0733464
Copy link
Contributor

See also this issue, which may be what you are seeing.

There was a bug fix to the open source version of CameraSource which I believe fixed this issue. I suggest trying the open source version in your app:

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

@vojkny vojkny closed this as completed Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants