googlesamples / googlesamples/mlkit

[Bug report] MlKit Translate - IllegalStateException

Open
#664 3 comments 0 reactions 1 assignee Claimed by @zhouyiself View on GitHub
Dominant language
Kotlin
Stars
4.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
I'm seeing this error appear in my Crash logs in the Google Play Console. I haven't been able to reproduce it yet, and I'm not sure which Language model they are selecting when the error appears. It's only affecting 0.03% of the total users of my app.

```
Exception java.lang.IllegalStateException:
at com.google.mlkit.nl.translate.internal.zzi.zzb (com.google.mlkit:translate@@17.0.1:66)
at com.google.mlkit.nl.translate.internal.zzi.zzg (com.google.mlkit:translate@@17.0.1:4)
at com.google.mlkit.nl.translate.internal.zzf.run (com.google.mlkit:translate@@17.0.1)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:263)
at android.os.HandlerThread.run (HandlerThread.java:67)
```

**To Reproduce**
I haven't been able to reproduce it yet. I'm receiving the error in Crashes and ANRs logs inside Google Play Console. My code is pretty much identical to the [the sample app](https://github.com/googlesamples/mlkit/tree/master/android/translate)

**Expected behavior**
No error

**SDK Info:**
com.google.mlkit:translate:17.0.1

**Smartphone:**
- OPPO OP4EFDL1 (Qualcomm SM4250)
- Redmi angelica (Mediatek MT6765)
- Redmi dandelion (Mediatek MT6762)

**Android Version:**
- Android 10 (SDK 29)
- Android 11 (SDK 30)
- Android 12 (SDK 31)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.