cozmo / jsQR

A pure javascript QR code reading library. This library takes in raw images and will locate, extract and parse any QR code found within.
https://cozmo.github.io/jsQR/
Apache License 2.0
3.69k stars 607 forks source link

Camera picture Freeze when using Safari on iOS 13.4.x #176

Open stocklive opened 4 years ago

stocklive commented 4 years ago

For now I had tried 5-10 iPhones running 13.4.1, they all freeze at the moment the jsQR start. If the iOS is below 13.3.x, it still freeze sometimes but not that annoying.

Does Apple change anything may effect jsQR in 13.4.x ?

Please help. Thanks a lot!

milbertc commented 4 years ago

after several calls to jsQR(...); the call to scan(...) will throw an "Array size not a small enough positive integer" in "locator_1.locate(matrix)", then the next call to jsQR will throw this error no matter how you reload the video stream.

Only happens on iOS 13.4.1, seems that placing the phone facing down on a black surface triggers the error more often.