Ionic barcodescanner App 清除内存占用
Ionic barcodescanner App clear memory usage
我在 iOS 上使用 ionic 条码扫描仪。在调试期间,我观察到内存使用量不断增长(我在 xcode 上看到了)当应用程序打开相机进行扫描并且在 5 次使用(5 次扫描)后应用程序崩溃并显示此消息:来自调试器的消息:由于内存问题而终止。
我搜索了很多都没有满意的结果。有人可以知道如何避免内存增加或在再次打开扫描仪之前清除内存吗?
我正在 iPhone 5 / iOS 10 上进行测试。
对于那些可能遇到这个问题的人,我在这里使用这个插件的分支解决了它 https://github.com/jlowe234/phonegap-plugin-barcodescanner。
我在此处包括了导致此问题的原因(取自此处:https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/312)
Hello guys, I investigated for this issue and i found the problem on the c++ class. A lot of objects are still in the memory also when barcode viewcontroller is closed (to see the picture below).
So we must delete those files because every time that we open the barcode viewcontroller it takes from 20 to 30 mb so it's a big problem.
I tried to investigate on the C++ code but i don't understand everything so i need of help.
我测试了叉子,它对我来说工作正常。我的应用程序停止崩溃并且内存无故停止增加。
我在 iOS 上使用 ionic 条码扫描仪。在调试期间,我观察到内存使用量不断增长(我在 xcode 上看到了)当应用程序打开相机进行扫描并且在 5 次使用(5 次扫描)后应用程序崩溃并显示此消息:来自调试器的消息:由于内存问题而终止。
我搜索了很多都没有满意的结果。有人可以知道如何避免内存增加或在再次打开扫描仪之前清除内存吗?
我正在 iPhone 5 / iOS 10 上进行测试。
对于那些可能遇到这个问题的人,我在这里使用这个插件的分支解决了它 https://github.com/jlowe234/phonegap-plugin-barcodescanner。 我在此处包括了导致此问题的原因(取自此处:https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/312)
Hello guys, I investigated for this issue and i found the problem on the c++ class. A lot of objects are still in the memory also when barcode viewcontroller is closed (to see the picture below).
So we must delete those files because every time that we open the barcode viewcontroller it takes from 20 to 30 mb so it's a big problem.
I tried to investigate on the C++ code but i don't understand everything so i need of help.
我测试了叉子,它对我来说工作正常。我的应用程序停止崩溃并且内存无故停止增加。