-
Notifications
You must be signed in to change notification settings - Fork 512
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
Add KVO to NSURLSessionTask may cause crash. #390
Comments
@zjmdp well that's just… terrible :( How frequently are you seeing this crash? |
Ok, it'll probably be a bit before I can look at this, but if you decide to jump in before then, happy to review a pull request! |
I just come back to beta.9 for work round. Maybe I need sometime to learn the code before attempting to fix it. |
@garrettmoon Same problem happens on my app, the top 1 crash. |
@zjmdp, We use 3.0.0-beta.11 has this problem, Does 3.0.0-beta.9 has this problem? |
@xilin Thank you for your heroic efforts attempting to fix this! It's really too bad this bug exists. Does anyone have confirmation it still exists in iOS 11? |
It only happens on iOS 10.x, no iOS 9 or iOS 11. |
@hovox same as us |
Aweeeeesome! I think I may suggest we wait this one out then 😬 |
Got same issue on iOS 11, see detail here |
@garrettmoon Is there any way to use Texture, but not use PINRemoteImage? |
@workhardupc yes, I wrote the integration into Texture to be entirely pluggable. |
Hopefully the PR I put up addresses this. It's a pretty significant change but removes the need for KVO with the limitation that iOS 9 users and below don't get the benefits of knowing time to first byte. |
@garrettmoon which PR? Would you mind to provide the URL? |
@luohui8891 See PR#410 |
@xilin got it, thanks. |
The crashes are here: http://crashes.to/s/45830cf8ec3
I found the same issue discussed about AFNetworking. https://github.com/AFNetworking/AFNetworking/issues/1477
I searched all the code in my project that the category
NSURLSessionTask+Timing
with the observer on the property ofNSURLSessionTask
may cause the crash.The text was updated successfully, but these errors were encountered: