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

barcodeDetector.isOperational() always false + no low storage + good network #46

Open
loutry opened this issue Nov 13, 2015 · 6 comments

Comments

@loutry
Copy link

loutry commented Nov 13, 2015

Hello!

I always get barcodeDetector.isOperational() at false on a nexus 4 with PlayServices 8.3, 633Mo free on 12,92Go (so low storage isn't fired) and a good network connection.

Here are some logs:

I/Vision﹕ Supported ABIS: [armeabi-v7a, armeabi]
I/Vision﹕ Requesting barcode detector download.
W/ScanActivity: Detector dependencies are not yet available.

I also cleared the PlayServices cash and uninstall/reinstall the demo app and my app and it still doesn't download the dependencies :(

Any idea what could prevent those dependencies to get downloaded ?

please

@pm0733464
Copy link
Contributor

The "low storage" condition on many devices is set to be "10% of total storage". So a Nexus 4 with 16 GB total storage may need about 1.6 GB free to not be considered low on storage.

UPDATE:
The Google Play Services 8.4 release lowers the amount of free storage required in order to enable the download. This is now 500 MB or 10% of total storage, whichever is less. See the release notes:

https://developers.google.com/vision/release-notes?hl=en

@loutry
Copy link
Author

loutry commented Nov 17, 2015

Ok thanks! I thought the check to download the library when low storage occurred was different because on this nexus 4 the registerReceiver(null, lowstorageFilter) sent me back a null intent. I just triple check this result and that's why I thought somethings was strange and open an issue.
Any idea how this could happen ? Even if the user did a trick via its settings (he said me that he didn't), the PlayServices should also benefit it and download the library, doesn't it ?

@mitchross
Copy link

@loutry you can you this as a work around for now https://gist.github.com/mitchross/b012bd72a9cd3b1f92c7

@loutry
Copy link
Author

loutry commented Nov 18, 2015

thanks @mitchross :)

@ggirard07
Copy link

Is this the "serious bug" mentioned in v9.0 release notes?

@rajeshsubramanian
Copy link

I am seeing this issue running the ocr-reader sample on a Samsung S4 running Lollipop. I have a 16GB device with about 1.2GB free space. Any ideas what could be causing this?

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

5 participants