-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[SDWebImageCombinedOperation setCancelBlock:]: message sent to deallocated instance #798
Comments
Could you please provide a stack trace? Also, try using the Zombies Instrument to determine the object that is causing the crash and why |
The culprit seems to be : |
I managed to get a raw crash log, SDWebImagePrefetcher seems definitely at fault. I'll dig into this. Thread 0 Crashed: |
@kirualex we appreciate you working on this. I will take a look as soon as I have some time. |
What version of SDWebImage are you using? Does it reproduce with the latest master version? It might be an issue with the |
I am also getting this using latest when calling
|
Same problem.
|
Until we can figure out the exact cause, made a temp fix (e95224b) with the suggested |
|
This seems to do the trick for me, but I will have a definitive answer next week after more intensive testing. |
Great, please post the feedback as soon as you have it |
Well the fix did improve things but the issue still arise :/ I'm pulling directly from the git repo though. |
Just been looking into this as it's causing a significant number of crashes amongst users in the app I'm working on. Might it be a BAD_ACCESS in disguise (memory gets freed and repurposed into another class type resulting in the "cancel" or "setCancelBlock" to crash)? A bit of guesswork here but might this be a result of a stack overflow due to a circular loop here: ~L244
and ~L318
...ie Unfortunately, I can't recreate this error so I'm trying to come at it by following the code logic... |
You can try my PR: #1069 |
Let's see if this still happens with 4.0. It shouldn't |
I get this crash in my app. I'm doing a lot of prefetching, don't know if it's relevant to this issue.
The text was updated successfully, but these errors were encountered: