android / android/codelab-mlkit-android

Text recognition doesn't work on Xiaomi

Open
#39 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
186
Forks
104
PR merge metrics
No merged PRs in 30d

Description

Device model: Xiaomi MI 8 SE
Android version: 10 (MIUI 11.0.3)
Play Store version: 20.4.18
Google Play Services 20.21.17

```
2020-06-23 18:01:02.165 14211-14553/com.google.codelab.mlkit E/Vision: Error loading module com.google.android.gms.vision.ocr optional module true: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
2020-06-23 18:01:02.166 14211-14553/com.google.codelab.mlkit W/e.codelab.mlki: Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
2020-06-23 18:01:02.168 14211-14211/com.google.codelab.mlkit W/System.err: com.google.mlkit.common.MlKitException: Waiting for the text recognition model to be downloaded. Please wait.
2020-06-23 18:01:02.168 14211-14211/com.google.codelab.mlkit W/System.err: at com.google.mlkit.vision.text.internal.zzb.zza(com.google.android.gms:play-services-mlkit-text-recognition@@16.0.0:20)
2020-06-23 18:01:02.168 14211-14211/com.google.codelab.mlkit W/System.err: at com.google.mlkit.vision.text.internal.zzb.run(com.google.android.gms:play-services-mlkit-text-recognition@@16.0.0:51)
2020-06-23 18:01:02.168 14211-14211/com.google.codelab.mlkit W/System.err: at com.google.mlkit.vision.common.internal.MobileVisionBase.zza(com.google.mlkit:vision-common@@16.0.0:23)
2020-06-23 18:01:02.168 14211-14211/com.google.codelab.mlkit W/System.err: at com.google.mlkit.vision.common.internal.zzb.call(Unknown Source:4)
2020-06-23 18:01:02.168 14211-14211/com.google.codelab.mlkit W/System.err: at com.google.mlkit.common.sdkinternal.ModelResource.zza(com.google.mlkit:common@@16.0.0:26)
2020-06-23 18:01:02.168 14211-14211/com.google.codelab.mlkit W/System.err: at com.google.mlkit.common.sdkinternal.zzn.call(Unknown Source:6)
2020-06-23 18:01:02.168 14211-14211/com.google.codelab.mlkit W/System.err: at com.google.mlkit.common.sdkinternal.zzm.run(com.google.mlkit:common@@16.0.0:5)
2020-06-23 18:01:02.168 14211-14211/com.google.codelab.mlkit W/System.err: at com.google.mlkit.common.sdkinternal.zzq.run(com.google.mlkit:common@@16.0.0:3)
2020-06-23 18:01:02.168 14211-14211/com.google.codelab.mlkit W/System.err: at android.os.Handler.handleCallback(Handler.java:883)
2020-06-23 18:01:02.168 14211-14211/com.google.codelab.mlkit W/System.err: at android.os.Handler.dispatchMessage(Handler.java:100)
2020-06-23 18:01:02.169 14211-14211/com.google.codelab.mlkit W/System.err: at com.google.android.gms.internal.mlkit_common.zzb.dispatchMessage(com.google.mlkit:common@@16.0.0:6)
2020-06-23 18:01:02.169 14211-14211/com.google.codelab.mlkit W/System.err: at android.os.Looper.loop(Looper.java:224)
2020-06-23 18:01:02.169 14211-14211/com.google.codelab.mlkit W/System.err: at android.os.HandlerThread.run(HandlerThread.java:67)
```

Contributor guide

Open the contributing guide

Research direction

No source file or test is named; start by reviewing the text-recognition entry point and reproducing the reported failure on the Xiaomi MI 8 SE configuration. Use the ML Kit and Google Play Services errors in the report to investigate model availability, and consider the issue done when text recognition works on the stated setup or the supported-device limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
machine-learning, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.