Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google ML Kit Document Scanner - Android 15 Cancellation and Graphics Allocation Errors #764

Open
Ahclever2006 opened this issue Mar 23, 2025 · 0 comments

Comments

@Ahclever2006
Copy link

Describe your issue. If applicable, add screenshots to help explain your problem.

Dear Google ML Kit Team,

We are experiencing issues with the Google ML Kit Document Scanner on Android 15. The scanner activity is consistently being canceled with resultCode: 0, despite the Intent sender being obtained successfully and the activity starting.

Key Observations from Logcat:

E/GmsDocScanDelAct( 8220): Failed to handle scanning result
E/GmsDocScanDelAct( 8220): java.lang.IllegalStateException: Failed to handle result
Graphics allocation errors:
E/qdgralloc( 8220): GetGpuPixelFormat: No map for format: 0x38 and 0x3b
E/GraphicBufferAllocator( 8220): Failed to allocate (4 x 4) layerCount 1 format 56 usage b00: 7
These errors suggest an issue with the GmsDocumentScanningDelegateActivity and potential graphics allocation problems.

Environment:

Android 15 (Tested on redmi note 12 mobile)
Google ML Kit Document Scanner version: google_mlkit_document_scanner: ^0.4.0
Steps to Reproduce:

Observe the scanner activity starting.
The activity is canceled, returning resultCode: 0.
We have tried updating the Google ML Kit library and testing on multiple devices, but the issue persists.

Could you please investigate this issue? We would appreciate any guidance or updates on potential fixes.

Thank you for your time and assistance.

Sincerely,

Ahmed Maher

Steps to reproduce.

Start scan document

What is the expected result?

return to me scanned file

Did you try our example app?

Yes

Is it reproducible in the example app?

Yes

Reproducible in which OS?

Android

Flutter/Dart Version?

No response

Plugin Version?

google_mlkit_document_scanner: ^0.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant