Crash in Big Sur (com.apple.NSURLSession) (11.0 Beta (20A4300b))

We are having a crash in an application that worked just fine in Catalina, as soon as we log in.

Please check

We already raised a feedback (Nº 7979873) but as we did not have any response and we are looking for any kind of workaround since we need to release a beta for this application soon.

This crash is still reproducible using Big Sur beta 4 (20A5343i)

In addition, we have observed that the problem looks to be with the line:
Code Block
completionHandler(NSURLSessionAuthChallengeCancelAuthenticationChallenge, *nil*);

This completionHandler comes from

Code Block
(NSURLSessionDelegate)
- (void)URLSession:(NSURLSession *)session
task:(NSURLSessionTask *)task
didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge
completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler


Could it be that in MAC OS 11, NSURLSession changed and is causing this crash?
Is a different way/workaround to handle this issue?

Thank you in advance.
The report is pretty clear about thread 19, and frame 13
Code Block
com.avaya.Avaya-Equinox 0x000000010d26a64a 0x10ce40000 + 4367946
is unsymbolicated. That should indicate which part of the app is causing the issue
The crash report you posted shows that you’re using a third-party crash reporter. I recommend that you remove that before trying to debug a gnarly problem like this.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Hi eskimo, we've disabled crash reporter tool but we are still reproduce the crash. Below I've attached the logs running the application from xcode.


Accepted Answer
Indeed, but now I can look at your crash report with some confidence that it’s not telling me lies (-:

Is this crash easily reproducible? If so, I’d like to you run an experiment. For each session task you create, try setting the taskDescription property to some non-nil value (a constant string would be fine). Does that help?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Thank you so much eskimo!
This change resolved the crash.

This change resolved the crash.

Cool, but that’s still a horrible bug on our part. I’ve updated your bug report with my analysis.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Crash in Big Sur (com.apple.NSURLSession) (11.0 Beta (20A4300b))
 
 
Q