IOS app crash with CFNetwork, but can not find the problem - ios

can anyone help me with my app crash, here is the crash log, I can not find the problem, thanks very much.
Thread 8 name:
Thread 8 Crashed:
0 libobjc.A.dylib 0x00000001c852f6f0 objc_retain + 16 (objc-object.h:441)
1 CFNetwork 0x00000001c99594d0 formEventCallback(__CFReadStream*, unsigned long, void*) + 128 (FormDataStream.c:246)
2 CoreFoundation 0x00000001c92bd950 _signalEventSync + 220 (CFStream.c:653)
3 CoreFoundation 0x00000001c92bcf0c _cfstream_shared_signalEventSync + 348 (CFStream.c:784)
4 CoreFoundation 0x00000001c92aa6c4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1980)
5 CoreFoundation 0x00000001c92aa640 __CFRunLoopDoSource0 + 92 (CFRunLoop.c:2015)
6 CoreFoundation 0x00000001c92a9ef8 __CFRunLoopDoSources0 + 180 (CFRunLoop.c:2051)
7 CoreFoundation 0x00000001c92a4bd8 __CFRunLoopRun + 1032 (CFRunLoop.c:2922)
8 CoreFoundation 0x00000001c92a44b8 CFRunLoopRunSpecific + 452 (CFRunLoop.c:3247)
9 CFNetwork 0x00000001c98cd63c -[__CoreSchedulingSetRunnable runForever] + 216 (CoreSchedulingSet.mm:1365)
10 Foundation 0x00000001c9ca5fc0 -[NSThread main] + 72 (NSThread.m:1212)
11 Foundation 0x00000001c9de2c44 __NSThread__start__ + 1044 (NSThread.m:1175)
12 libsystem_pthread.dylib 0x00000001c8f1f974 _pthread_body + 132 (pthread.c:857)
13 libsystem_pthread.dylib 0x00000001c8f1f8d0 _pthread_start + 52 (pthread.c:884)
14 libsystem_pthread.dylib 0x00000001c8f27ddc thread_start + 4

As per your question, you need to install fabric or firebase crashlytics in your app. It will help you to debug the crash issue.
Here is the link for fabric: https://fabric.io/kits/ios/crashlytics/install

Related

Unable to reproduce CoreFoundation CFSetRemoveAllValues

I am Getting CoreFoundation CFSetRemoveAllValues and crash report as following on crashlytics. Seems like this crash never appeared before, because could not find any solution. Can anyone help me, please? Thanks in advance!
Crashed: Thread
0 CoreFoundation 0x1b5a16cf8 CFSetRemoveAllValues + 52
1 CoreFoundation 0x1b5a0dff0 __CFRunLoopKillOneTimer + 36
2 CoreFoundation 0x1b59aa1e0 CFArrayApplyFunction + 80
3 CoreFoundation 0x1b5a0dfb0 __CFRunLoopDeallocateTimers + 64
4 CoreFoundation 0x1b5a16888 __CFSetApplyFunction_block_invoke + 24
5 CoreFoundation 0x1b5ab10fc CFBasicHashApply + 132
6 CoreFoundation 0x1b5a16864 CFSetApplyFunction + 172
7 CoreFoundation 0x1b5a07784 __CFRunLoopDeallocate + 212
8 CoreFoundation 0x1b5a10290 _CFRelease + 224
9 CoreFoundation 0x1b59f5a08 __CFTSDFinalize + 124
10 libsystem_pthread.dylib 0x1b57a9f8c _pthread_tsd_cleanup + 580
11 libsystem_pthread.dylib 0x1b57a6df4 _pthread_exit + 80
12 libsystem_pthread.dylib 0x1b57a7e64 _pthread_wqthread_legacy_worker_wrap + 94
13 libsystem_pthread.dylib 0x1b57a7c04 _pthread_wqthread + 416
14 libsystem_pthread.dylib 0x1b57aa740 start_wqthread + 8

App crashde when NO Internet connection. Crashed: com.squareup.SocketRocket.NetworkThread

iOS App crashed when the no internet connection available and refresh the app several times.
Crashed: com.squareup.SocketRocket.NetworkThread
0 libobjc.A.dylib 0x18332c910 objc_msgSend + 16
1 CoreFoundation 0x184097b34 _signalEventSync + 212
2 CoreFoundation 0x184097a40 _cfstream_shared_signalEventSync + 460
3 CoreFoundation 0x184107404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
4 CoreFoundation 0x184106c2c __CFRunLoopDoSources0 + 276
5 CoreFoundation 0x18410479c __CFRunLoopRun + 1204
6 CoreFoundation 0x184024da8 CFRunLoopRunSpecific + 552
7 Foundation 0x184a99674 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
8 SocketRocket 0x101563560 -[_SRRunLoopThread main] (SRWebSocket.m:1742)
9 Foundation 0x184ba9efc __NSThread__start__ + 1040
10 libsystem_pthread.dylib 0x183d85220 _pthread_body + 272
11 libsystem_pthread.dylib 0x183d85110 _pthread_body + 290
12 libsystem_pthread.dylib 0x183d83b10 thread_start + 4

SIGSEGV ERROR causing wierd crash on app launch and few api calls

From the breadcrumbs , I figured out that the app crashes right after launch and few api calls. What seems to be the issue here? Can't paste any relevant code here as this crash is not reproducible. Following is the stack trace:
Crashed Thread
1 CFNetwork 0x2da6bf95 _ZN8CFObject8AllocateEmRK7CFClassPK13__CFAllocator + 105
2 CFNetwork 0x2da82bd3 _ZN19HTTPConnectionCache21createEmptyCacheEntryEv + 20
3 CFNetwork 0x2da82a43 _ZN19HTTPConnectionCache34_onqueue_enqueueRequestForProtocolEP12HTTPProtocolP15__CFHTTPMessage + 64
4 CFNetwork 0x2dada00d ___ZN19HTTPConnectionCache25enqueueRequestForProtocolEP12HTTPProtocolP15__CFHTTPMessage_block_invoke + 14
5 CoreFoundation 0x2ddb68f1 CFArrayApplyFunction + 34
6 CFNetwork 0x2da7f6bb _ZN19RunloopBlockContext7performEv + 180
7 CFNetwork 0x2da7f579 _ZN17MultiplexerSource7performEv + 218
8 CFNetwork 0x2da7f40d _ZN17MultiplexerSource8_performEPv + 46
9 CoreFoundation 0x2de4e20b __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
10 CoreFoundation 0x2de4d6db __CFRunLoopDoSources0 + 204
11 CoreFoundation 0x2de4becf __CFRunLoopRun + 620
12 CoreFoundation 0x2ddb6ebf CFRunLoopRunSpecific + 520
13 CoreFoundation 0x2ddb6ca3 CFRunLoopRunInMode + 104
14 Foundation 0x2e7f7087 +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
15 Foundation 0x2e86ca5f __NSThread__main__ + 1060
16 libsystem_pthread.dylib 0x38d29919 _pthread_body + 138
17 libsystem_pthread.dylib 0x38d2988b _pthread_start + 100
18 libsystem_pthread.dylib 0x38d27aa4 thread_start + 6

Strange CFNetwork crash in iOS7.1 - possibly AFNetworking Related

I have started receiving details of a crash that I have not seen before, and it only appears to have started happening since the 7.1 update.
The exact line from the stack is :
CFNetwork
___ZN14CoreStreamBase34_streamSetEventAndScheduleDeliveryEmh_block_invoke + 30
and the entire trace is here:
Thread : Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x3a1b81f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x3a222797 pthread_kill + 58
2 libsystem_c.dylib 0x3a168fdd abort + 76
3 libc++abi.dylib 0x39497cd7 abort_message + 74
4 libc++abi.dylib 0x394af6f3 __cxa_pure_virtual + 18
5 CFNetwork 0x2ec994bf ___ZN14CoreStreamBase34_streamSetEventAndScheduleDeliveryEmh_block_invoke + 30
6 CoreFoundation 0x2ef37981 CFArrayApplyFunction + 36
7 CFNetwork 0x2ec007fb RunloopBlockContext::perform() + 182
8 CFNetwork 0x2ec006b9 MultiplexerSource::perform() + 220
9 CFNetwork 0x2ec0054d MultiplexerSource::_perform(void*) + 48
10 CoreFoundation 0x2efcf25b __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
11 CoreFoundation 0x2efce72b __CFRunLoopDoSources0 + 206
12 CoreFoundation 0x2efccf1f __CFRunLoopRun + 622
13 CoreFoundation 0x2ef37f4f CFRunLoopRunSpecific + 522
14 CoreFoundation 0x2ef37d33 CFRunLoopRunInMode + 106
15 GraphicsServices 0x33e3e663 GSEventRunModal + 138
16 UIKit 0x3188316d UIApplicationMain + 1136
The only other thread i can see that is running is from AFNetworking, as this would be the only thing I would imagine is using CFNetworking:
Thread : AFNetworking (com.apple.main-thread)
0 libsystem_kernel.dylib 0x3a1a5a58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a1a5859 mach_msg + 48
2 CoreFoundation 0x2efce89b __CFRunLoopServiceMachPort + 154
3 CoreFoundation 0x2efccfc1 __CFRunLoopRun + 784
4 CoreFoundation 0x2ef37f4f CFRunLoopRunSpecific + 522
5 CoreFoundation 0x2ef37d33 CFRunLoopRunInMode + 106
6 Foundation 0x2f92a1eb -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 254
7 Foundation 0x2f97b0a1 -[NSRunLoop(NSRunLoop) run] + 80
8 **** 0x0011d35f +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:148)
9 Foundation 0x2f9eca5f __NSThread__main__ + 1062
10 libsystem_pthread.dylib 0x3a221919 _pthread_body + 140
11 libsystem_pthread.dylib 0x3a22188b _pthread_start + 102
Has anyone else experienced issues with this? I have been over to the AFN github but cant see anyone else reporting this issue.
Thanks

SDWebImage crash randomly

Im using SDImage in my project, when checking the crash log, this SDImage crashed at
[SDWebImageDownloaderOperation start] func, here are logs, pls help, it wastes my 2 days.
Thread 12:
0 libsystem_kernel.dylib 0x3c383eb4 mach_msg_trap + 20
1 CoreFoundation 0x34143045 __CFRunLoopServiceMachPort + 129
2 CoreFoundation 0x34141da3 __CFRunLoopRun + 883
3 CoreFoundation 0x340b4ebd CFRunLoopRunSpecific + 357
4 CoreFoundation 0x340b4d49 CFRunLoopRunInMode + 105
5 demo 0x0022a683 -[SDWebImageDownloaderOperation start] + 471
6 Foundation 0x34a73be3 __block_global_6 + 103
7 libdispatch.dylib 0x3c2ae11f _dispatch_call_block_and_release + 11
8 libdispatch.dylib 0x3c2b2961 _dispatch_root_queue_drain + 253
9 libdispatch.dylib 0x3c2b2ac1 _dispatch_worker_thread2 + 85
10 libsystem_c.dylib 0x3c2e2a11 _pthread_wqthread + 361
another log
Thread 9 Crashed:
0 CoreFoundation 0x35418b9c CFEqual + 24
1 CFNetwork 0x34d60469 URLConnectionClient::getRequestForTransmission(unsigned char, CFURLResponse*, _CFURLRequest const*, __CFError**) + 205
2 CFNetwork 0x34cc666d URLConnectionClient::_clientWillSendRequest(_CFURLRequest const*, _CFURLResponse*, URLConnectionClient::ClientConnectionEventQueue*) + 157
3 CFNetwork 0x34cc64c5 URLConnectionClient::ClientConnectionEventQueue::processAllEventsAndConsumePayload(XConnectionEventInfo*, long) + 457
4 CFNetwork 0x34cc61a3 URLConnectionClient::processEvents() + 107
5 CFNetwork 0x34cc60d9 MultiplexerSource::perform() + 157
6 CoreFoundation 0x354a3ad3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_ + 15
7 CoreFoundation 0x354a329f __CFRunLoopDoSources0 + 215
8 CoreFoundation 0x354a2045 __CFRunLoopRun + 653
9 CoreFoundation 0x354254a5 CFRunLoopRunSpecific + 301
10 CoreFoundation 0x3542536d CFRunLoopRunInMode + 105
11 demo 0x001d1683 -[SDWebImageDownloaderOperation start] + 471
12 Foundation 0x34fe2793 __block_global_6 + 103
13 libdispatch.dylib 0x3435cc59 _dispatch_call_block_and_release + 13
14 libdispatch.dylib 0x3435f817 _dispatch_worker_thread2 + 259
15 libsystem_c.dylib 0x3288cdfb _pthread_wqthread + 295
another crash on cancel
Thread 0 Crashed:
0 demo 0x001a58f2 -[SDWebImageDownloaderOperation cancel] + 130
1 demo 0x001a88df -[SDWebImageCombinedOperation cancel] + 179
2 demo 0x001aaf71 -[UIImageView(WebCache) cancelCurrentImageLoad] + 49
my log help~

Resources