android-vision icon indicating copy to clipboard operation
android-vision copied to clipboard

Library delays or fails on download

Open sgiatrakis opened this issue 6 years ago • 15 comments

On my app I use Google Mobile Vision in order to recognize faces. I use gms play library and it works fine on most devices :

'com.google.android.gms:play-services-vision:9.4.0+'

Here to note that I've tried also updated versions of gms vision like 15.0.0.

Recently I received many bad reviews and some users complained that app couldn't recognize their face.

So I found some devices that had this issue and it seems that problem is Google Play Services delay a lot(or just fail) to download GMS vision even if device has much free storage.

Android Studio log says :

I/Vision: Loading library libmobile_vision_face.so
I/Vision: libmobile_vision_face.so library load status: false
W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite not found.
I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:1702
I/DynamiteModule: Selected remote version of com.google.android.gms.vision.dynamite, version >= 1702

So it's going like this : The first attempts for using my app failing since GMS Vision hasn't been downloaded or working. But after some hours on most of the cases it seems that is working fine.

For understanding better why this happening I tried when app began to work well to clear Data of Google Play Services of device. It stopped working for a while and then after some hours its OK again without any user action.

So it seems that is a matter of Google Services.

Practically many devices would have problem using my app since they are very new enabled or user has recently wipe data etc or for any other random reason.

Can I do anything for that? Thank you for your awesome library and support.

sgiatrakis avatar May 07 '18 13:05 sgiatrakis

having the same problem !

LovingAndroid avatar May 07 '18 17:05 LovingAndroid

Maybe a way to import library on local project without need to download it? Unfortunately many users complain about that and they consider app is not working well.

Thank you.

sgiatrakis avatar May 08 '18 07:05 sgiatrakis

I have the same problem. Is there any solution?

liruiqaq avatar May 11 '18 06:05 liruiqaq

Same problem here

kata32 avatar May 11 '18 17:05 kata32

Same problem T.T

lupangsogood avatar May 20 '18 09:05 lupangsogood

I found solution i clear all data in app>google play service

And add this in AndroidMnifest.xml

<meta-data
    android:name="com.google.android.gms.vision.DEPENDENCIES"
    android:value="face" />

Try this

lupangsogood avatar May 20 '18 09:05 lupangsogood

@lupangsogood unfortunately this did not solve the problem for me.

With or without this setting, the time for library to be downloaded look the same. But something good is today I tried this, the time seems to be much less than previous week I did the same process. Random or something changed by developers?

Thank you for the response!

sgiatrakis avatar May 20 '18 18:05 sgiatrakis

having the same problem :(

SamatecDev avatar May 27 '18 09:05 SamatecDev

same problem but no update from google. There are no such issues with iOS library its android bad.

vrvmadan avatar May 29 '18 13:05 vrvmadan

Don't know if this is related, but I have a very similar problem with bar code detection using play services. What I could find out: All affected phones went through an update from play services 12.6.73 to 12.6.85. We can mimic this with manual installs from APK-mirror. Until 12.6.73 everything is fine, after update to 12.6.85 the preview screen is black and the logs says: I/Vision: Loading library libbarhopper.so I/Vision: libbarhopper.so library load status: false The phone has been reset before this, so space for download is not a problem. I think this is a bug striking while updating to the new version. We mostly we're not able to get barcode scans working again in this setting.

Things that sometimes seem to work:

  • Clear all data/cache from play services
  • switch from non-english language to english (duh) and back (our app is for the German market, so phones are usually set to German)

Things that reliably work:

  • factory reset the phone and have it install version 12.6.85 immediately (without a previous version)
  • uninstall all updates of play services and manually install 12.6.85

Fun part: This only affects Huawei phones.

DocEric avatar Jun 11 '18 09:06 DocEric

I have this issue also, I haven't managed to solve it with the above recommendations.

the-kenneth avatar Jun 14 '18 09:06 the-kenneth

This also affects Motorala E5

grillermo avatar Apr 16 '19 22:04 grillermo

And 2 years later today I faced the same issue. HAve all proper entries in Manifest. My logcat says this:

I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:2702
    Selected remote version of com.google.android.gms.vision.dynamite, version >= 2702
W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.face not found.
I/DynamiteModule: Considering local module com.google.android.gms.vision.face:0 and remote module com.google.android.gms.vision.face:0
E/Vision: Error loading module com.google.android.gms.vision.face optional module true: gm: No acceptable module found. Local version is 0 and remote version is 0.
I/Vision: Request download for engine face is a no-op because rate limiting
I/FaceDetectorCreator: Fallback loading v1 model while waiting for v2 model to download.
I/Vision: Loading library libmobile_vision_face.so
I/Vision: libmobile_vision_face.so library load status: false
    Request download for engine face is a no-op because rate limiting
I/Vision: Request download for engine face is a no-op because rate limiting

mainakbiswas avatar May 28 '20 14:05 mainakbiswas

5 year later... Any work-around?

Jose-Parente avatar Mar 02 '23 13:03 Jose-Parente

5 year later... Any work-around?

I suggest you migrate to ML kit

kata32 avatar Mar 02 '23 14:03 kata32