Error locator degree does not match number of roots. Probably a bug?

671 views
Skip to first unread message

FunMan

unread,
Jun 30, 2011, 6:34:15 PM6/30/11
to zxing
Hi,

I'm using zxing library (c# version) in order to have multibarcode
encode/decode functionality in a software I'm writing, migrating from
the "Open Source QRCode Library", that offer only qrcode encoding/
decoding, also because i find zxing better in decoding corrupted
qrcode and more versatile.

Now, all is working fine, but I noticed that sometimes zxing is not
able to decode some self generated qrcode, giving me the "Error
locator degree does not match number of roots" error message. I know
that this error is related to failure in Reed Solomon correction code,
but I'm able to read these qrcode with Open Source QRCode Library and
other software on android, so i think that probably there is a bug in
zxing, or in its c# porting.

These are a couple of generated qrcode on which i have the error

http://www.neowebsite.it/qrcode/a.jpg
http://www.neowebsite.it/qrcode/b.jpg

Thanks in advance
FunMan

Steven Parkes

unread,
Jun 30, 2011, 6:45:14 PM6/30/11
to FunMan, zxing

On Jun 30, 2011, at 3:34 PM, FunMan wrote:

> so i think that probably there is a bug in
> zxing, or in its c# porting

Probably the C# port. The C++ port has no trouble with these from an iPad.

Sean Owen

unread,
Jul 1, 2011, 3:46:54 AM7/1/11
to zx...@googlegroups.com
The error just means the error correction failed. It doesn't mean there's a bug; could be that the detection was too far off and there were too many errors. But I wouldn't rule out a bug either.

Daniele Buffa

unread,
Jul 1, 2011, 4:46:26 AM7/1/11
to zx...@googlegroups.com

Hi, if so I expect that also other qrcode decoding software will fail,while I'm able to decode with other software. With qrcode posted c# port of xzing fail ALWAYS, while other software decode problemless. If the problem is in data corruption, I expect that all software fail. For that I said that probably is a bug, with c# port...

Sean Owen

unread,
Jul 1, 2011, 6:29:14 AM7/1/11
to zx...@googlegroups.com
It's probably a bug then in the port. (Try the Java version for example to see that it works.) But my point was that it could be caused by mis-detection. If the sampled code is off, it will produce far too many errors. This can happen even if there's no bug. But, I suspect that here it is actually a problem in the port.

Daniele Buffa

unread,
Jul 1, 2011, 4:21:34 PM7/1/11
to zx...@googlegroups.com

Ok, i'll try ASAP. Thanks.

Daniele Buffa

unread,
Jul 4, 2011, 6:14:05 PM7/4/11
to zx...@googlegroups.com
I'm able to decode with no problem with android version. I think it's a problem with c# port. Do you think that could be solved? I'll really appreciate it...

Thanks
FunMan

2011/7/1 Daniele Buffa <d.bu...@gmail.com>
Reply all
Reply to author
Forward
0 new messages