AFURLSessionManagerTaskDelegate解除分配崩溃

时间:2018-08-07 09:16:38

标签: crash afnetworking dealloc

在AFNetworking中取消AFURLSessionManagerTaskDelegate分配时崩溃。这是当机报告:

Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: Namespace ASSERTIOND, Code 0xdead10cc
Triggered by Thread:  0

Thread 0 name:
Thread 0 Crashed:
0   CoreFoundation                  0x00000001838f0c8c _CFRelease + 296 (CFRuntime.c:2030)
1   CoreFoundation                  0x00000001838f0c3c _CFRelease + 216 (CFRuntime.c:2020)
2   imessage                        0x0000000100127460 __destroy_helper_block_.81 + 32 (XFPBBusiness.m:0)
3   libsystem_blocks.dylib          0x00000001832d8a5c _Block_release + 152 (runtime.c:175)
4   libsystem_blocks.dylib          0x00000001832d8a5c _Block_release + 152 (runtime.c:175)
5   imessage                        0x000000010007b294 -[AFURLSessionManagerTaskDelegate .cxx_destruct] + 36 (AFURLSessionManager.m:127)
6   libobjc.A.dylib                 0x0000000182afeef4 object_cxxDestructFromClass(objc_object*, objc_class*) + 148 (objc-class.mm:462)
7   libobjc.A.dylib                 0x0000000182b0c990 objc_destructInstance + 68 (objc-runtime-new.mm:6532)
8   libobjc.A.dylib                 0x0000000182b0c9f8 object_dispose + 16 (objc-runtime-new.mm:6551)
9   imessage                        0x0000000100079d14 -[AFURLSessionManagerTaskDelegate dealloc] + 240 (AFURLSessionManager.m:173)
10  imessage                        0x000000010007a5e8 __destroy_helper_block_.112 + 24 (AFURLSessionManager.m:0)
11  libsystem_blocks.dylib          0x00000001832d8a5c _Block_release + 152 (runtime.c:175)
12  libdispatch.dylib               0x0000000183238a60 _dispatch_client_callout + 16 (object.m:507)
13  libdispatch.dylib               0x000000018324549c _dispatch_main_queue_callback_4CF$VARIANT$mp + 564 (inline_internal.h:2486)
14  CoreFoundation                  0x00000001838ef070 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1815)
15  CoreFoundation                  0x00000001838ecbc8 __CFRunLoopRun + 2272 (CFRunLoop.c:3111)
16  CoreFoundation                  0x000000018380cda8 CFRunLoopRunSpecific + 552 (CFRunLoop.c:3245)
17  GraphicsServices                0x00000001857f1020 GSEventRunModal + 100 (GSEvent.c:2245)
18  UIKit                           0x000000018d829758 UIApplicationMain + 236 (UIApplication.m:3965)
19  libxpc.dylib                    0x00000001835b5b18 _xpc_objc_main + 556 (main.m:124)
20  libxpc.dylib                    0x00000001835b7bc4 xpc_main + 180 (init.c:1476)
21  Foundation                      0x00000001844b1fd4 -[NSXPCListener resume] + 180 (NSXPCListener.m:253)
22  PlugInKit                       0x0000000188fc0ec4 -[PKService run] + 712 (PKService.m:105)
23  PlugInKit                       0x0000000188fc0ab4 +[PKService main] + 56 (PKService.m:39)
24  PlugInKit                       0x0000000188fc0ee8 +[PKService _defaultRun:arguments:] + 20 (PKService.m:116)
25  Foundation                      0x0000000184498a98 NSExtensionMain + 64 (NSExtensionMain.m:23)
26  libdyld.dylib                   0x000000018329dfc0 start + 4
每次发布请求时都会创建

AFURLSessionManagerTaskDelegate。它位于AFURLSessionManager.m文件中。该文件中还有许多其他崩溃,当请求完成时,NSURLSessionTask在释放时会崩溃。有人有类似的崩溃吗?我曾使用Instrument Leaks进行调试,但没有用。AddressSanitizer和Zombie Objects也对我不起作用。期待您的帮助。

0 个答案:

没有答案