com.apple.NSURLSession-work EXC_BAD_ACCESS Crash debugging

Yes, it's probably an AFNetworking bug (fixed in 2.5.0), in all likelihood. Specifically, this one:

https://github.com/AFNetworking/AFNetworking/issues/1477

If not, then it is probably something similar—a key-value observer trying to observe some aspect of a URL session task has been deallocated and didn't stop observing that task prior to being deallocated.


I got the same issue and I found it is because I was using Firebase SDK and I upgraded it to 7.0.0,(Although this issue is reported by many developers from > 6.32.1 to 7.0.0) So the firebasePerformance is causing this issue in the first place, which later caused a crash while downloading images using SDWebImage. More information about this issue is here:

firebase/firebase-ios-sdk#6734

Firebase recently fixed this and released a new version for FirebasePerformance (7.0.1) After upgrading to version 7.0.1, I wasn't able to reproduce the crash any longer.

So upgrading of FirebasePerformance SDK to 7.0.1 version worked for me.