googlesamples / googlesamples/mlkit

[Bug report] ML Kit Document Scanner crashes on discard

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

Description

**Describe the bug**
After the implementation, app launching and document scanning working fine . But if discard the scanning by close button app crashes in specific device (Samsung Tab)

**To Reproduce**
Example Steps to reproduce the behavior in sample app:
1. Set page limit to any number(sample: 5)
2. Click on 'Scan'
3. Click on capture button
4. Discard scanning by clicking close button
5. Getting error:
`Failed to handle scanning result
java.lang.IllegalStateException: Failed to handle result
at com.google.mlkit.vision.documentscanner.internal.zzg.run(com.google.android.gms:play-services-mlkit-document-scanner@@16.0.0-beta1:12)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.os.HandlerThread.run(HandlerThread.java:67)`
6. With this error app crashes

If applicable, please include `code snippet` and `sample input(image, video, text, etc)`

**Expected behavior**
A clear and concise description of what you expected to happen.

**SDK Info:**
- 'com.google.android.gms:play-services-mlkit-document-scanner:16.0.0-beta1'

**Smartphone:**
- Device/Simulator: Samsung Galaxy Tab A
- Device/Simulator OS: Android 11 API 30

**Development Environment:**
*(For Android issue feel free to skip this section)*
- IDE Eversion: [e.g. Xcode 13.1, Android Studio 4.2]
- Laptop/Desktop: [e.g. iMac Pro (2017), HP Z840 Workstation]
- Laptop/Desktop OS/version: [e.g. macOS 12.0.1]

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.