Open TimZaman opened 9 years ago
@TimZaman What's GenericGF's size? I didn't write this code (it's awful :wink:), however just looking at the code in initialize the algorithm will only work if size is a power of two.
Yep quite horrid, seems to work 999.999 out of a million though. The 1/1.000.000 part doesnt work, sadly. Any ideas how i approach to debug this? Love some guidance
@TimZaman: Just guessing, maybe the fix of the GenericGF memory leak could help: https://github.com/SebGDev/zxing-cpp/commit/03c3fa63d1be4df9402b3a6a1eaec8c872af5f71
Tried to composeanols to certain key words - straight to 2606?? Im new part of a community, just wanna c shanna... maybe twice???
Thankyou jesus! I hope this works$#3 On May 15, 2015 2:20 AM, "Sebastian" notifications@github.com wrote:
@TimZaman https://github.com/TimZaman: Just guessing, maybe the fix of the GenericGF memory leak could help: SebGDev@03c3fa6 https://github.com/SebGDev/zxing-cpp/commit/03c3fa63d1be4df9402b3a6a1eaec8c872af5f71
— Reply to this email directly or view it on GitHub https://github.com/glassechidna/zxing-cpp/issues/12#issuecomment-102314503 .
Nope doesn't work with the latest update. Keep jesus out of this, Vidz.
On Fri, May 15, 2015 at 10:27 AM, Vidz1235 notifications@github.com wrote:
Thankyou jesus! I hope this works$#3 On May 15, 2015 2:20 AM, "Sebastian" notifications@github.com wrote:
@TimZaman https://github.com/TimZaman: Just guessing, maybe the fix of the GenericGF memory leak could help: SebGDev@03c3fa6 < https://github.com/SebGDev/zxing-cpp/commit/03c3fa63d1be4df9402b3a6a1eaec8c872af5f71
— Reply to this email directly or view it on GitHub < https://github.com/glassechidna/zxing-cpp/issues/12#issuecomment-102314503
.
— Reply to this email directly or view it on GitHub https://github.com/glassechidna/zxing-cpp/issues/12#issuecomment-102315430 .
Please try insert a conditional breakpoint in the constructor with condition:
(size & (size - 1)) != 0
Something like this, chief?
GenericGF::GenericGF(int primitive_, int size_, int b)
: size(size_), primitive(primitive_), generatorBase(b), initialized(false) {
if (size <= INITIALIZATION_THRESHOLD) {
initialize();
}
if ((size & (size - 1)) != 0){
throw IllegalArgumentException("(size & (size - 1)) != 0");
}
}
I meant using a debugger, but that should do the trick.
@TimZaman If you see any chance of resurrecting the datamatrix image content that caused this issue, I'd be very interested in getting my hands on that for testing. I recently removed a ton of temporary memory allocations that were ported from Java to this new c++ port in the GF-related code and also 'dehorrified' it a little ;).
Hi guys, i am doing some test on a huge barcode batch. It crashes often on multiply for some reason, see the trace below. Can't get my head around why, any ideas?