Help required to identify the cause of the crash

Our app has been crashing in the CFNetwork Framework frequently, but the attached TestFlight crash logs do not help in identifying the possible root cause of the same. Any help would be greatly appreciated.

It seems you are using Alamofire. Have you checked the version is compatible with Xcode and iOS version you are using ?

Could you show GaugeLayer.draw(in:) function?

App Termination Reason: SIGNAL 5 Trace/BPT trap: 5

In case that may give a hint: https://forums.developer.apple.com/forums/thread/672555

Consider this:

Thread 13 Crashed:
0  CoreFoundation          … CF_IS_OBJC + 76 (CFRuntime.c:472)
1  CoreFoundation          … CFStringGetBytes + 100 (CFString.c:2606)
2  CoreFoundation          … CFURLGetByteRangeForComponent + 712 (CFURL.c:4048)
3  CFNetwork               … _createCanonicalURL + 116 (CFURLProtocolUtilities.cpp:199)
4  CFNetwork               … HTTPProtocol::_createCanonicalRequest(__CFAllocator const*, _CFURLRequest const*, …
5  CFNetwork               … +[_NSCFURLProtocol canonicalRequestForRequest:task:] + 60 (NSURLProtocol.mm:385)
6  CFNetwork               … -[__NSURLSessionLocal _createCanonicalRequestForTask:] + 92 (LocalSession.mm:1775)
7  CFNetwork               … -[__NSURLSessionLocal _onqueue_canonicalizeTaskAndCreateConnection:] + 52 (LocalSe…
8  CFNetwork               … -[__NSCFLocalSessionTask _onqueue_completeInitialization] + 96 (LocalSessionTask.m…
9  CFNetwork               … __26-[NSURLSessionTask resume]_block_invoke + 64 (SessionTask.mm:859)
10 libdispatch.dylib       … _dispatch_call_block_and_release + 32 (init.c:1530)
11 libdispatch.dylib       … _dispatch_client_callout + 20 (object.m:576)
12 libdispatch.dylib       … _dispatch_lane_serial_drain + 748 (queue.c:3900)
13 libdispatch.dylib       … _dispatch_lane_invoke + 432 (queue.c:3991)
14 libdispatch.dylib       … _dispatch_root_queue_drain_deferred_wlh + 288 (queue.c:6998)
15 libdispatch.dylib       … _dispatch_workloop_worker_thread + 404 (queue.c:6592)
16 libsystem_pthread.dylib … _pthread_wqthread + 288 (pthread.c:2696)
17 libsystem_pthread.dylib … start_wqthread + 8 (:-1)

Your app is trapping in CF_IS_OBJC. I talk about this in general in Crashes on the Toll-Free Bridge. In short, this suggests a memory management issue. This could be an Apple bug, or it could be that CFNetwork is just an innocent bystander to a memory management problem elsewhere in your app. My general advice in situations like this is to start with the standard memory debugging tools, to see if you can make the problem more reproducible.

Oh, and do you have a JSON crash report (.ips) this for? If so, please post it.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Help required to identify the cause of the crash
 
 
Q