-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Crashed when use YYWebImage and Performance #1936
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
Comments
Thanks for the report. Tracking internally at b/117644780 |
Any updates on this. I am getting same crash on 5.9.0 |
I am getting same crash on ver5.10.0 SDK. When I commented out the line |
I'm getting the same assert on v5.11.0. The variables have classes initializing NSURLConnection. |
@paulb777 Any updates on this. I figured out one thing, this crash is only happens in debug mode. |
Can one of you share a stack trace of the crash? The one in the original issue is unsymbolicated. Thanks! |
@morganchen12 For example, the following view controller makes crash in debug mode. class ViewController: UIViewController {
@objc var urlConnection: NSURLConnection?
override func viewDidLoad() {
super.viewDidLoad()
addObserver(self, forKeyPath: #keyPath(urlConnection), options: [.new, .old], context: nil)
}
override func viewDidAppear(_ animated: Bool) {
let request = URLRequest(url: URL(string: "https://google.com")!)
urlConnection = NSURLConnection(request: request, delegate: self, startImmediately: false)
}
override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) {
}
}
extension ViewController: NSURLConnectionDelegate, NSURLConnectionDataDelegate {
} |
Could you tell me whether the assertion has a problem or not? |
@kazuhiro4949 can you share the stack trace of your repro example's crash? GoogleUtilities shouldn't be conflicting with NSURLConnection. |
@morganchen12
|
Fix planned to go out with GoogleUtilities 5.3.5 |
[READ] Step 1: Are you in the right place?
Yeah, I'm using in right place.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Crash log is below:
Steps to reproduce:
When using YYWebImage and Performance, it will reproduce.
Relevant Code:
The text was updated successfully, but these errors were encountered: