Skip to content

MultiFormatReader logs NotFoundException while scanning #648

Description

@motabass

Describe the bug
I use @zxing/ngx-scanner and see the following console warning on every scan attempt not detecting a qr-code:

chunk-IMDIBY5Y.js:63 MultiFormatReader: non-ReaderException from reader: NotFoundException2
    at FinderPatternFinder2.selectBestPatterns (FinderPatternFinder.js:574:19)
    at FinderPatternFinder2.find (FinderPatternFinder.js:168:32)
    at Detector5.detect (Detector.js:66:27)
    at QRCodeReader2.decode (QRCodeReader.js:63:71)
    at MultiFormatReader2.decodeInternal (MultiFormatReader.js:199:35)
    at MultiFormatReader2.decodeWithState (MultiFormatReader.js:95:21)
    at BrowserMultiFormatReader2.decodeBitmap (BrowserMultiFormatReader.js:41:28)
    at BrowserCodeReader2.decodeFromCanvas (BrowserCodeReader.js:595:21)
    at loop (BrowserCodeReader.js:1120:36)
    at BrowserCodeReader2.scan (BrowserCodeReader.js:1142:9)

I think this warning should not be logged or NotFoundException should really be a ReaderException, i'm not sure. The console.warn was introduced by this commit: f9a638b

  • OS: Windows
  • Browser: chrome
  • Versions:
    • "@zxing/browser": "0.2.1"
    • "@zxing/library": "0.23.0"
    • "@zxing/ngx-scanner": "22.0.1"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions