UIImageScanlineFloodfill
UIImageScanlineFloodfill copied to clipboard
EXC BAD ACCESS in getColorCode method
Quite often I am getting the EXC_BAD_ACCCESS exception in getColorCode method.
Try this suggestion from https://github.com/Chintan-Dave/UIImageScanlineFloodfill/issues/23
I also have getting same error, @izotx any solution ?
I'm having the same issue. Especially, it occurs when i changed tolerance value or according to input image. Does anyone have any idea about what can cause this?
Suggesion in #23 not worked at all.
I'm having the same issue. Its working fine on iPod and iPhone but when I switch to iPad it crashes at this point. Does anyone have any solution?
I have the same issue. I tried Suggestion in #23 and not worked. Could you please tell me any solution to this issue. Thank you!
Can anyone provide me the image and/or tolerance value for which you are getting crash so that I can reproduce the issue?
Hei @Chintan-Dave. I used this picture for test purpose with a tolerance of 20. After some time I had a EXC_BAD_ACCESS crash. Also tried #15 and #27 but not worked.
Looking closer, i saw that in the first occurrence of the line
byteIndex = (bytesPerRow * roundf(y)) + roundf(x) * bytesPerPixel;
the x value was a negative number...