question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Quagga not working anymore on Galaxy S10 / Android 10 / Chrome 86.0.4240.198

See original GitHub issue

Quagga seems not to suddenly no longer work on the Galaxy S10, running latest Android 10 (QP1A.190711.020) and Chrome 86.0.4240.198 (seems like this could be the likely culprit).

Quaga.init completes successfully, the video stream is displayed, but no codes can be scanned. All I see in the log is an Invalid asm.js: unexpected token error message in the console, which I know from other projects is mostly harmless.

Screenshot 2020-11-12 at 19 16 21

I tried with the latest 1.2.6 release, and tried also downgrading to 1.2.5, neither of which helped.

Any advice on how to debug this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ericbladecommented, Nov 25, 2020

In my app, I currently just use a drop-down selector that I have the user tell me which one works. I suspect that intelligently selecting would be down to providing some constraints to the quagga config object (and i have a note here somewhere that we need to be able to pass constraints to the enumerateVideoDevices function if possible)… if you can figure out what the aspect ratio is for the wide-angle that we don’t want to select, we could try to eliminate that range from the aspect { min, max } parameters in constraints. I’d like to know the answer to that one too 😄 so we could provide that as a sane default, and it would catch more error cases.

and thank you so much for the contribution. You might have no idea how much that is appreciated right now.

1reaction
ericbladecommented, Nov 24, 2020

This leads me to think of one of my first experiences with my LG G6 – on my G6 there are multiple cameras, one of which is a wide-angle lens, which doesn’t work at all to try to locate barcodes with, because everything is fish-eyed.

Before just resetting everything, I would check to see if there are any other logical camera devices with Quagga.CameraAccess.enumerateVideoDevices and try those out to see if your results are any better?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android 11 Hanging Chrome Fix: Call `stop()` on LiveStream ...
On Android 11 we started experiencing a behavior where calling quaggaInstance.stop() causes the video element to freeze Chrome rendering. Touch ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found