Open beruic opened 3 years ago
Ok, can you give us the barcode ? It may be in a specific format that Zxing is unable to decode.
You can find what formats can be decoded on the zxing-js github : https://github.com/zxing-js/library#supported-formats
As I wrote, I image googled "barcode". The issue is not with a specific barcode format, as it doesn't seem to get stuck on any specific barcode. You can scan the same few barcodes for some time, and that should reproduce the error.
I just verified it with this search: https://www.google.com/search?q=barcode&sxsrf=ALiCzsZicu4JzzmH0ZRNhZxj4lB3Px4R_Q:1653903481677&source=lnms&tbm=isch&sa=X&ved=2ahUKEwjIi5LM9ob4AhVOt6QKHfP-BzIQ_AUoAXoECAIQAw&biw=1920&bih=1127 , by just scanning through them, and at some point it got stuck on one code that is just keeps repeatedly firing events for that code at a rate of about 500 ms per code.
I should mention that the browser I am using is the newset Chrome.
To try out the demo at https://codesandbox.io/s/vue-barcode-reader-demo-guj3f, I image googled "barcode" to try put the demo on a bunch of barcodes.
After scanning a lot of barcodes it suddenly gets stuck on one of them and keeps scanning that. It can scan other codes, but it will keep adding messages to the console about scanning that one it has gotten stuck on.