-
Notifications
You must be signed in to change notification settings - Fork 754
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
App crash with google_mlkit_barcode_scanning: ^0.8.0 #493
Comments
Podfile
|
|
Crash not happening on iPhone 14 pro max(16.5.1(c)) |
@bibash28 : is it crashing when scanning the QR code? could you share the QR code as well |
No, it is not crashing while scanning. App is crashing after sometime. There is not specific qr code. @fbernaly |
@bibash28 : have you try our example app? could you reproduce with our example app? if yes, share detailed steps to reproduce. |
Experienced this also. Crash happens after continuously open and close scanner after some 5-8times. google_mlkit_barcode_scanning: ^0.9.0
`**Melchors-MacBook-Pro-2 mobile-external-flutter % flutter doctor ! Doctor found issues in 1 category. |
Tried doing steps on sample codes, experienced it also. Just suddenly stop the app, crashed. Full log:
|
I believe something is wrong with using Here's my OPPO Reno 5 Pro 5G memory profile on It hover around 390MB-450MB but never more than this. Very stable. No crash at all. The detection is a little janky however. Now here's my test on Note that the memory remain 1.2GB even after i navigated to different page. And the app will crash shortly after on high preset. Clearly there are some kind of memory leak going on here. |
Thanks @famasf1 for debugging this. Now that you have narrow down the issue I think you (or any other volunteer) can look at how the image is passed from |
@fbernaly I can help with this (see #536). |
The Flutter source for ImageLabeler.processImage(InputImage) is the following: Beyond this point, it is not possible to get access to the source code and hence it is not possible to investigate what's being done with InputImage instances.
|
@andynewman10: what do you mean with beyond that point? That method uses Flutter Method Channels to call native API depending on the platform, this is what is next after calling that method:
Here is more info about Flutter Method Channels: https://docs.flutter.dev/platform-integration/platform-channels |
@bibash28 can you please set the camera resolutions to low because as per the camera package, image streaming work smoothly on low resolution. Thank you |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Tested on iOS(iPhone X- 16.5.1)
[✓] Flutter (Channel stable, 3.10.3, on macOS 13.0.1 22A400 darwin-arm64, locale en-NP)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc3)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.80.1)
The text was updated successfully, but these errors were encountered: