[英]Memory Leak on the phonegap-plugin-barcodescanner for Windows Phone 8.1 devices
this issue is not new, I know and there are different threats around the Internet although I still have the same issue where the App crashes after tried a few scans. 这个问题不是新问题,我知道并且Internet周围存在不同的威胁,尽管我仍然遇到相同的问题,即尝试几次扫描后应用程序崩溃。
Testing the App on: Lumia 625 and 520 在以下设备上测试应用程序:Lumia 625和520
I have a cordova project with the following: cordova 7.1.0 node 6.7.0 phonegap 7.0.1 我有一个具有以下内容的cordova项目:cordova 7.1.0节点6.7.0 phonegap 7.0.1
After created the project I add the plugin: cordova plugin add phonegap-plugin-barcodescanner@6.0.4 (6.0.4 seeems to be the more stable) 创建项目后,我添加插件:cordova插件添加phonegap-plugin-barcodescanner@6.0.4(6.0.4似乎更稳定)
and then I add the platform: cordova platform add windows 然后我添加平台:cordova平台添加Windows
when I go and try my app, as soon as I try to scan a QR code, the phone's screen became green and crashes eventually :( 当我尝试使用我的应用程序时,一旦我尝试扫描QR码,手机的屏幕就会变成绿色,并最终崩溃:(
I have tried to apply the changes mentioned here: https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/55 but no luck. 我试图应用此处提到的更改: https : //github.com/phonegap/phonegap-plugin-barcodescanner/issues/55但没有运气。
This is the code: 这是代码:
function runBarCodeScanner(){
$cordovaBarcodeScanner
.scan()
.then(barcodeScanComplete, barcodeScanError);
}
Any version of the barcodescanner above 6.0.4 will crash straight away although I was hoping the issue would have been fixed by then! 高于6.0.4的任何版本的条形码扫描器都将立即崩溃,尽管我希望此问题早已解决!
Any suggestions? 有什么建议么?
Please let me know if you need further details to help 如果您需要更多详细信息以帮助您,请告诉我
I have solved the problem at the end. 我终于解决了问题。 Using the knowledge shared under https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/55 after a few attempts is seems like the scanner stopped crashing my app :)
经过几次尝试后,使用https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/55下共享的知识似乎是扫描仪不再使我的应用程序崩溃:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.