Skip to content

Crashes in NSURLSession-delegate #37

@AndriiHanets

Description

@AndriiHanets

Found out some random crashes.
I'm not able to produce this every time, but it happens on real devices iPhone 11(iOS 14.2), iPhone X (iOS 14.6) as well as in simulators.
Here are some crashlogs from firebase crashlytics.

Crashed: com.apple.NSURLSession-delegate
0  libswiftCore.dylib                0x1a2fc39a4 swift_isUniquelyReferenced_nonNull_native + 34
1  AlamofireNetworkActivityLogger    0x10190f838 $s30AlamofireNetworkActivityLogger0bcD0C25networkRequestDidComplete33_C4DAE19DB50F7F6C893FBE4CEB3851D9LL12notificationy10Foundation12NotificationV_tF + 1864
2  AlamofireNetworkActivityLogger    0x10191072c $s30AlamofireNetworkActivityLogger0bcD0C22networkRequestDidStart33_C4DAE19DB50F7F6C893FBE4CEB3851D9LL12notificationy10Foundation12NotificationV_tFToTm + 120
3  CoreFoundation                    0x19f298e8c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
4  CoreFoundation                    0x19f298e4c ___CFXRegistrationPost_block_invoke + 48
5  CoreFoundation                    0x19f298438 _CFXRegistrationPost + 400
6  CoreFoundation                    0x19f297e30 _CFXNotificationPost + 696
7  Foundation                        0x1a050a934 -[NSNotificationCenter postNotificationName:object:userInfo:] + 60
8  Alamofire                         0x101808708 $s9Alamofire15SessionDelegateC03urlB0_4task20didCompleteWithErrorySo12NSURLSessionC_So0J4TaskCs0I0_pSgtFyAH_AjLtcfU_ + 964
9  Alamofire                         0x101808300 $s9Alamofire15SessionDelegateC03urlB0_4task20didCompleteWithErrorySo12NSURLSessionC_So0J4TaskCs0I0_pSgtF + 868
10 Alamofire                         0x1018093f0 $s9Alamofire15SessionDelegateC03urlB0_4task20didCompleteWithErrorySo12NSURLSessionC_So0J4TaskCs0I0_pSgtFTo + 108
11 CFNetwork                         0x19fadd4c8 _CFNetworkHTTPConnectionCacheSetLimit + 153352
12 libdispatch.dylib                 0x19ef6e2b0 _dispatch_call_block_and_release + 24
13 libdispatch.dylib                 0x19ef6f298 _dispatch_client_callout + 16
14 libdispatch.dylib                 0x19ef4b344 _dispatch_lane_serial_drain$VARIANT$armv81 + 568
15 libdispatch.dylib                 0x19ef4be60 _dispatch_lane_invoke$VARIANT$armv81 + 452
16 libdispatch.dylib                 0x19ef5566c _dispatch_workloop_worker_thread + 692
17 libsystem_pthread.dylib           0x1e76f55bc _pthread_wqthread + 272
18 libsystem_pthread.dylib           0x1e76f886c start_wqthread + 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions