Skip to content

Decoding an apparently fine QRCode leads to "failed to read version" exception. #270

@rderimay

Description

@rderimay

Describe the bug or unexpected behaviour

A QRCode recognition fails with the error "failed to read version" even if the QRCode can be decoded with a phone for example.

Steps to reproduce the behavior

(new QRCode)->readFromFile($imagePath);

with imagePath being a good resolution jpg file.

It fails in file src/Decoder/BitMatrix.php, line 345

If you provide me with a way to send you the file privately or a way to track down the problem I would be happy to help. The QRCode contains personal information of someone else, so I cannot post the file in public here.

Environment (please complete the following information):

  • PHP version/OS: PHP 8.3, MacOS or Debian buster, makes no difference.
  • Library version: 5.0.2

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