acktie / Acktie-Mobile-Android-QR-Reader

Acktie Mobile QR module is an easy to use yet powerful QR code reader.
Other
25 stars 12 forks source link

Module crashes app #6

Open beaur opened 9 years ago

beaur commented 9 years ago

Module will occasionally crash the app when closing the scanner.

Looks to possibly be related to https://github.com/acktie/Acktie-Mobile-Android-QR-Reader/issues/2 https://github.com/acktie/Acktie-Mobile-Android-QR-Reader/issues/4

Possibly some sort of race condition to do with the autofocus of the camera being interrupted or fired again after the scanner has closed.

And may be resolved by updating the the latest version of https://github.com/acktie/Acktie-Zbar-Android but I'm not sure how to compile that myself.

simplecoder commented 8 years ago

I've also had this issue and had to remove the QR code functionality entirely in the app because it was not acceptable. Were you able to solve this problem or find a work around?

simplecoder commented 8 years ago

I just fixed the cause in my app. The app opens another window after the QR reader, and in that window I had forgotten to unbind the alloy data bindings after my window was closed. Fixed by adding $.destroy() on that window closing event.