Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

EXC BAD ACCESS in getColorCode method #24

Open
izotx opened this issue Jul 8, 2015 · 7 comments
Open

EXC BAD ACCESS in getColorCode method #24

izotx opened this issue Jul 8, 2015 · 7 comments

Comments

@izotx
Copy link

izotx commented Jul 8, 2015

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

@Chintan-Dave
Copy link
Owner

Try this suggestion from #23

@ramrcram
Copy link

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

@eraydiler
Copy link

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.

@dmaulikr
Copy link

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?

@Cu-Toof
Copy link

Cu-Toof commented Dec 11, 2017

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!

@Chintan-Dave
Copy link
Owner

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

@adrianorezena
Copy link

adrianorezena commented Sep 3, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants