khoren93 / flutter_zxing

Flutter plugin for scanning and generating QR codes using the ZXing library, supporting Android, iOS, and desktop platforms
https://pub.dev/packages/flutter_zxing
MIT License
98 stars 56 forks source link

Gives Out Of Memory Exception on Android devices when left on scanning screen for long time #60

Closed Ashutosh-Spark closed 1 year ago

Ashutosh-Spark commented 1 year ago

The SDK is giving Out of memory exception when left on the scanning screen for long time

lucasnsa commented 1 year ago

@Ashutosh-Spark Hi! Please can you provide us with more information? For example android version and flutter version, how long scanning, etc?

Thanks

Ashutosh-Spark commented 1 year ago

Hello @lucasnsa We are trying this on Android 10 i.e API level 29 And are using below versions Flutter 3.0.5 Dart 2.17.6 Dev tools 2.12.2

If we leave the device for more than 2 minutes it crashes and gives OOM

lucasnsa commented 1 year ago

I successfully simulated only using scanDelay with zero duration but I can't debug with my current environment. The problem happens after many minutes.

@khoren93 can you help us?

khoren93 commented 1 year ago

Hi everyone,

I just released a new version of the project v0.9.1. This new version includes the fix for a memory leak.

Please also feel free to suggest any new features or improvements that you would like to see in future releases.

Thank you for your help and for your continued support!

Ashutosh-Spark commented 1 year ago

Thanks @lucasnsa and @khoren93 We will update our version and check