Invalid asm.js: Unexpected token. (In skeletonize.js)
See original GitHub issueWhen I am using the latest (1.6.0) version of Quagga2, I am getting a Invalid asm.js: Unexpected token
warning when starting Quagga.
The error seems to occur in skeletonize line 14, inImagePtr |= 0;
, at least thats what Chrome is telling me.
The parsing part of Quagga works, though, and I can scan barcodes just fine, what doesn’t work is using the onProcessed
function to draw bounding boxes around the barcodes, as is done in the example.
I tried using the same version of quagga as the example does, and it works as expected, no asm.js errors, so I kept on downgrading, and when I came to v1.1.0 the functionality started working again.
Furthermore, using the latest version and logging the result variable from onProcessed just gives me an empty array instead of the expcted result object.
Running in Chrome 100.0.4896.127
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
Settings are the default settings in the
live_w_locator.html
page, I didn’t change anything other than the version of the quagga library.Barcode image attached below.
so… on this particular barcode, i’m only able to actually decode it after i doctor the image by converting it to grayscale first, and then feeding these settings
it looks like it works. i’m not seeing issues with onProcessed … unless i just don’t understand the issue