#719013 zbar-tools: zbarimg fail to decode structured qr code

Package:
zbar-tools
Source:
zbar
Description:
QR code / bar code scanner and decoder (utilities)
Submitter:
simon
Date:
2019-11-26 10:42:03 UTC
Severity:
important
#719013#5
Date:
2013-08-07 18:45:28 UTC
From:
To:
Dear Maintainer,

I encoutered a problem for decoding structured qrcode

consider the following script :

$ yes | dd bs=1 count=3000 | qrencode -S -v 32 -o /tmp/foo.png
$ zbarimg /tmp/foo-0*
zbarimg: /tmp/buildd/zbar-0.10+doc/zbar/qrcode/qrdectxt.c:368:
qr_code_data_list_extract_text: Assertion `next > syms->datalen' failed.
Abandon (core dumped)

Regards,
Simon

#719013#10
Date:
2016-11-29 16:25:35 UTC
From:
To:
I have experienced the same problem. Has this been resolved?
#719013#15
Date:
2019-05-09 07:23:13 UTC
From:
To:
version 0.22-1 says:

$ yes | dd bs=1 count=3000 | qrencode -S -v 32 -o /tmp/foo.png
3000+0 records in
3000+0 records out
3000 bytes (3.0 kB, 2.9 KiB) copied, 0.0111603 s, 269 kB/s

$ zbarimg /tmp/foo-0*
scanned 0 barcode symbols from 2 images in 0.3 seconds


WARNING: barcode data was not detected in some image(s)
Things to check:
   - is the barcode type supported? Currently supported symbologies are:
     . EAN/UPC (EAN-13, EAN-8, EAN-2, EAN-5, UPC-A, UPC-E, ISBN-10,
ISBN-13)
     . DataBar, DataBar Expanded
     . Code 128
     . Code 93
     . Code 39
     . Codabar
     . Interleaved 2 of 5
     . QR code
     . SQ code
   - is the barcode large enough in the image?
   - is the barcode mostly in focus?
   - is there sufficient contrast/illumination?
   - If the symbol is split in several barcodes, are they combined in one
image?
   - Did you enable the barcode type?
     some EAN/UPC codes are disabled by default. To enable all, use:
     $ zbarimg -S*.enable <files>
     Please also notice that some variants take precedence over others.
     Due to that, if you want, for example, ISBN-10, you should do:
     $ zbarimg -Sisbn10.enable <files>

#719013#20
Date:
2019-11-26 10:39:01 UTC
From:
To:
I reported the problem to the upstream developer, in the hope that it
could be fixed there.