googlesamples / mlkit

A collection of sample apps to demonstrate how to use Google's ML Kit APIs on Android and iOS
Apache License 2.0
3.57k stars 2.93k forks source link

[Bug report] ML Kit Document Scanner crashes on discard #866

Open dprasath opened 2 months ago

dprasath commented 2 months ago

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:

Smartphone:

Development Environment: (For Android issue feel free to skip this section)

AntimKhel commented 1 month ago

Same for me. Android 14 Pixel 6