Open AshleyDeng opened 7 years ago
It has been more than two weeks and I wonder if anyone has more info on this issue yet?
Thanks!
@AshleyDeng sorry mate, this plugin isn't actively maintained, if you happen to find the source of the problem, please submit a PR and I'll try and push it through!
If that still doesn't work for you, maybe look at https://github.com/bitpay/cordova-plugin-qrscanner
Hi,
Thanks for building and sharing this plugin. I think this is the best scanner plugin available for Cordova by far. Awesome jobs guys!
I have been noticing a memory issue when scanning too many times. It will use up all the available memory of the device. Then the scanner will not be able to pickup any barcode or QR code after this point. If you navigate your app now, it will crash (since no more available memory).
To reproduce it, use a iPod Touch or iPhone 4 or 5 (devices that with smaller memory) and keep scanning until it stop recognizing barcodes.
Here's a screenshot from xCode that shows the memory issue:
And I also used Instrument from Mac OS to investigate it:
The memory usage keeps going up when scanning / recognizing barcodes. It ultimately stopped recognizing barcodes and so does the memory usage.
I have been studying the code as well. I could not find any insight that why it is causing the skyrocketed memory usage.
Anyone has any thoughts on this?
Thanks, Ash