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

Crash on iOS when using Text Recognition and Barcode scanning #592

Open
Saad29 opened this issue Mar 18, 2024 · 0 comments
Open

Crash on iOS when using Text Recognition and Barcode scanning #592

Saad29 opened this issue Mar 18, 2024 · 0 comments
Labels
Barcode Scanning Issues corresponding to Barcode Scanning API Crash Crash reported Text Recognition Issues corresponding to Text Recognition API

Comments

@Saad29
Copy link

Saad29 commented Mar 18, 2024

Title: Memory

Describe the bug
I am using both google_mlkit_barcode_scanning: ^0.10.0 and google_mlkit_text_recognition: ^0.11.0 for a scanner app which scans both text and barcode/QR code. On my iphone 7, the app crashes with the following report. It only crashes on iphone 7, on higher devices it overheats but does not crash.

Initialized TensorFlow Lite runtime.
INFO: Initialized TensorFlow Lite runtime.
Created TensorFlow Lite XNNPACK delegate for CPU.
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
... tracking ...
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_RESOURCE (RESOURCE_TYPE_MEMORY: high watermark memory limit exceeded) (limit=1450 MB)
    frame #0: 0x00000001dc3d7884 libsystem_platform.dylib`_platform_memmove + 100
libsystem_platform.dylib`:
->  0x1dc3d7884 <+100>: stnp   x8, x9, [x3]
    0x1dc3d7888 <+104>: stnp   x10, x11, [x3, #0x10]
    0x1dc3d788c <+108>: add    x3, x3, #0x20
    0x1dc3d7890 <+112>: ldnp   x8, x9, [x1]
Target 0: (Runner) stopped.
Lost connection to device.
the Dart compiler exited unexpectedly.

Platform (please complete the following information):

  • OS: iOS
  • Device: iPhone7
  • OS: 17.4
  • Flutter/Dart Version : 3.19.0/3.3.0
  • Plugin version: ^0.10.0/^0.11.0

I have seen in previous issues like #393 some fixes were applied related to the selfie plugin, maybe something similar can be done for text recognition and barcode scanning?

@Saad29 Saad29 changed the title <short title here> Crash on iOS when using Text Recognition and Barcode scanning Crash on iOS when using Text Recognition and Barcode scanning Mar 18, 2024
@fbernaly fbernaly added Barcode Scanning Issues corresponding to Barcode Scanning API Text Recognition Issues corresponding to Text Recognition API Crash Crash reported labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Barcode Scanning Issues corresponding to Barcode Scanning API Crash Crash reported Text Recognition Issues corresponding to Text Recognition API
Projects
None yet
Development

No branches or pull requests

2 participants