Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Crashes in http_request_nsurl.mm #2417

Description

@webventil

My iOS app often crashes in http_request_nsurl.mm. Unfortunately I can't say how to reproduce. Most of the times, it happens after going with the app back to foreground or dismissing a view controller with a map view.

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  39

Filtered syslog:
None found

Global Trace Buffer (reverse chronological seconds):
1.184214     CFNetwork                  0x000000018330d9a4 TCP Conn 0x14bd529b0 SSL Handshake DONE
1.404764     CFNetwork                  0x000000018330d8b4 TCP Conn 0x14bd529b0 starting SSL negotiation
1.405079     CFNetwork                  0x00000001833af760 TCP Conn 0x14bd529b0 complete. fd: 90, err: 0
1.405486     CFNetwork                  0x00000001833b0c8c TCP Conn 0x14bd529b0 event 1. err: 0
1.569433     CFNetwork                  0x00000001833b0d64 TCP Conn 0x14bd529b0 started
1.573233     CFNetwork                  0x000000018330d9a4 TCP Conn 0x14bbc2bd0 SSL Handshake DONE
1.652946     CFNetwork                  0x0000000183380f24 NSURLSessionTask finished with error - code: -999
1.653215     CFNetwork                  0x0000000183380f24 NSURLSessionTask finished with error - code: -999
1.920458     CFNetwork                  0x000000018330d8b4 TCP Conn 0x14bbc2bd0 starting SSL negotiation
1.920804     CFNetwork                  0x00000001833af760 TCP Conn 0x14bbc2bd0 complete. fd: 88, err: 0
1.922217     CFNetwork                  0x00000001833b0c8c TCP Conn 0x14bbc2bd0 event 1. err: 0
2.018634     CFNetwork                  0x00000001833b0d64 TCP Conn 0x14bbc2bd0 started
2.019849     CFNetwork                  0x0000000183380f24 NSURLSessionTask finished with error - code: -999
866.758107   CFNetwork                  0x000000018330d9a4 TCP Conn 0x14b8bf750 SSL Handshake DONE
867.026752   CFNetwork                  0x000000018330d8b4 TCP Conn 0x14b8bf750 starting SSL negotiation
867.027751   CFNetwork                  0x00000001833af760 TCP Conn 0x14b8bf750 complete. fd: 92, err: 0
867.028485   CFNetwork                  0x00000001833b0c8c TCP Conn 0x14b8bf750 event 1. err: 0
867.362534   CFNetwork                  0x00000001833b0d64 TCP Conn 0x14b8bf750 started
867.385020   CFNetwork                  0x000000018330d9a4 TCP Conn 0x14bb7b450 SSL Handshake DONE
867.416085   CFNetwork                  0x000000018330d8b4 TCP Conn 0x14bb7b450 starting SSL negotiation
867.416597   CFNetwork                  0x00000001833af760 TCP Conn 0x14bb7b450 complete. fd: 90, err: 0
867.416790   CFNetwork                  0x00000001833b0c8c TCP Conn 0x14bb7b450 event 1. err: 0
867.457173   CFNetwork                  0x00000001833b0d64 TCP Conn 0x14bb7b450 started
867.458879   CFNetwork                  0x000000018330d9a4 TCP Conn 0x14bb4fa80 SSL Handshake DONE
867.553220   CFNetwork                  0x000000018330d8b4 TCP Conn 0x14bb4fa80 starting SSL negotiation

Thread 39 name:  Dispatch queue: NSOperationQueue 0x14b958620 :: NSOperation 0x14bd72c10 (QOS: LEGACY)
Thread 39 Crashed:
0   libsystem_kernel.dylib          0x00000001991431e0 __pthread_kill + 8
1   libsystem_pthread.dylib         0x000000019920cf0c pthread_kill + 112
2   libsystem_c.dylib               0x00000001990b6b78 abort + 140
3   libsystem_malloc.dylib          0x0000000199170384 szone_size + 0
4   Mapbox                          0x000000010080dea8 mbgl::HTTPNSURLRequest::handleResult(NSData*, NSURLResponse*, NSError*) (in Mapbox) (http_request_nsurl.mm:256) + 1056424
5   CFNetwork                       0x000000018331749c __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 32
6   CFNetwork                       0x000000018332a454 __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 296
7   Foundation                      0x0000000184b2b82c __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
8   Foundation                      0x0000000184a7e6c0 -[NSBlockOperation main] + 96
9   Foundation                      0x0000000184a6e918 -[__NSOperationInternal _start:] + 604
10  Foundation                      0x0000000184b2dc20 __NSOQSchedule_f + 224
11  libdispatch.dylib               0x0000000198ff5770 _dispatch_client_callout + 16
12  libdispatch.dylib               0x000000019900175c _dispatch_queue_drain + 864
13  libdispatch.dylib               0x0000000198ff9274 _dispatch_queue_invoke + 464
14  libdispatch.dylib               0x000000019900362c _dispatch_root_queue_drain + 728
15  libdispatch.dylib               0x000000019900334c _dispatch_worker_thread3 + 112
16  libsystem_pthread.dylib         0x0000000199209478 _pthread_wqthread + 1092
17  libsystem_pthread.dylib         0x0000000199209028 start_wqthread + 4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashiOSMapbox Maps SDK for iOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions