My app crashes at line 4 in URLSession:dataTask:didReceiveResponse:completionHandler of AFURLSessionManager.m,it looks like the self object is launched:
- (void)URLSession:(NSURLSession *)session
dataTask:(NSURLSessionDataTask *)dataTask
didReceiveResponse:(NSURLResponse *)response
completionHandler:(void (^)(NSURLSessionResponseDisposition disposition))completionHandler
{
1 NSURLSessionResponseDisposition disposition = NSURLSessionResponseAllow;
2
3 if (self.dataTaskDidReceiveResponse) {
4 disposition = self.dataTaskDidReceiveResponse(session, dataTask, response);(line 1115 of unique m file)
5 }
6
7 if (completionHandler) {
8 completionHandler(disposition);
9 }
10 }
crash stack:
Exception Sort: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x58fe10485d20
Thread 13 Crashed:
0 libobjc.A.dylib 0x000000019d5f9c20 objc_msgSend
1 APPInfo 0x0000000105204e0c -[AFURLSessionManager URLSession:dataTask:didReceiveResponse:completionHandler:] at AFURLSessionManager.m:1115:28
2 CFNetwork 0x00000001a54c9934 CFURLConnectionCreateWithProperties
3 Basis 0x19e75f2f0 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__
4 Basis 0x19e7334a0 -[NSBlockOperation main]
5 Basis 0x19e733430 __NSOPERATION_IS_INVOKING_MAIN__
6 Basis 0x19e6f47d8 -[NSOperation start]
7 Basis 0x19e6f450c __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__
8 Basis 0x19e6f9c20 __NSOQSchedule_f
9 libdispatch.dylib 0x1ab8c1114 _dispatch_block_async_invoke2
10 libdispatch.dylib 0x1ab8b1fdc _dispatch_client_callout
11 libdispatch.dylib 0x1ab8b546c _dispatch_continuation_pop
12 libdispatch.dylib 0x1ab8b4ad4 _dispatch_async_redirect_invoke
13 libdispatch.dylib 0x1ab8c3a6c _dispatch_root_queue_drain
14 libdispatch.dylib 0x1ab8c4284 _dispatch_worker_thread2
15 libsystem_pthread.dylib 0x1f133bdbc _pthread_wqthread
16 libsystem_pthread.dylib 0x1f133bb98 start_wqthread