How to debug and resolve a crash in AFNetworking

My iOS application uses AFNetworking (2.6.1), and my highest rating is:

Crashed: com.apple.NSURLSession-work EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0004000128ab38a0 

This is what most stack traces in Crashlytics look like:

 Thread : Crashed: com.apple.NSURLSession-work 0 libobjc.A.dylib 0x180e29bc8 objc_msgSend + 8 1 CFNetwork 0x181df6518 SessionConnectionLoadable::_loaderClientEvent_DidReceiveConnectionCacheKey(HTTPConnectionCacheKey*) + 56 2 CFNetwork 0x181e75178 ___ZN19URLConnectionLoader36protocolDidReceiveConnectionCacheKeyEP22HTTPConnectionCacheKey_block_invoke + 40 3 libdispatch.dylib 0x1811fd630 _dispatch_call_block_and_release + 24 4 libdispatch.dylib 0x1811fd5f0 _dispatch_client_callout + 16 5 libdispatch.dylib 0x181209634 _dispatch_queue_drain + 864 6 libdispatch.dylib 0x1812010f4 _dispatch_queue_invoke + 464 7 libdispatch.dylib 0x18120b504 _dispatch_root_queue_drain + 728 8 libdispatch.dylib 0x18120b224 _dispatch_worker_thread3 + 112 9 libsystem_pthread.dylib 0x181411470 _pthread_wqthread + 1092 10 libsystem_pthread.dylib 0x181411020 start_wqthread + 4 

I do not use kvo, and my application constantly uses location and remains in the background.

Any ideas on how to debug / recreate (I cannot recreate the problem in the simulator or on the device)? Even the ploy of exception, not knowing where it is and how to handle it correctly, in this case will be enough ...

+7
ios objective-c exception afnetworking-2
source share

No one has answered this question yet.

See similar questions:

46
Xcode breakpoint exception
3
Crash: object_name objc_msgSend (): _didReceiveConnectionCacheKey

or similar:

3790
How can I safely create a subdirectory?
8
Strange NSInternalInconsistencyException and PKService exception in iOS Today Extension
6
Store service crashes for ios 11
3
Crash: object_name objc_msgSend (): _didReceiveConnectionCacheKey
3
Firebase random crash
one
Crash [RMMessageFormatter getFormatedStatusFromDisk] (IOS obj-c)
one
EXC_BAD_ACCESS KERN_INVALID_ADDRESS for class method
0
IPhone app crashes if it is downloaded from the app store but not from testflight
0
Failure: com.apple.NSURLSession-work EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x001a00015ed6be80
-2
NSUserDefaults setObject flow failure

All Articles