UIImageScanlineFloodfill icon indicating copy to clipboard operation
UIImageScanlineFloodfill copied to clipboard

EXC BAD ACCESS in getColorCode method

Open izotx opened this issue 9 years ago • 7 comments

Quite often I am getting the EXC_BAD_ACCCESS exception in getColorCode method.

izotx avatar Jul 08 '15 19:07 izotx

Try this suggestion from https://github.com/Chintan-Dave/UIImageScanlineFloodfill/issues/23

Chintan-Dave avatar Jul 09 '15 05:07 Chintan-Dave

I also have getting same error, @izotx any solution ?

ramrcram avatar Nov 27 '15 10:11 ramrcram

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.

eraydiler avatar Jul 11 '16 13:07 eraydiler

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?

dmaulikr avatar Jul 25 '17 09:07 dmaulikr

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!

Cu-Toof avatar Dec 11 '17 08:12 Cu-Toof

Can anyone provide me the image and/or tolerance value for which you are getting crash so that I can reproduce the issue?

Chintan-Dave avatar Aug 31 '18 05:08 Chintan-Dave

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.

pessoa_15

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...

adrianorezena avatar Sep 03 '19 14:09 adrianorezena