-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GenericGF::multiply(int,int) BAD_ACCESS crash #12
Comments
@TimZaman What's GenericGF's size? I didn't write this code (it's awful 😉), 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: |
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
|
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:
|
Please try insert a conditional breakpoint in the constructor with
|
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?
The text was updated successfully, but these errors were encountered: