Getting crash when ice candidate delegate method called - ios

Please help what is the issue.???
webrtc library calling some internal method and getting excess_bad. and crashed
If needed any more information plz ask.
//code
let iceServer = RTCICEServer(uri:URL(string: resturi), username: “***”, password: “***”)
// Enable SSL globally for WebRTC in our app
let pcFactory:RTCPeerConnectionFactory = RTCPeerConnectionFactory()
let rtcConfiguration = RTCConfiguration()
rtcConfiguration.iceServers = [iceServer!]
let pair1 = RTCPair(key: "OfferToReceiveAudio", value: "true")
let pair2 = RTCPair(key: "OfferToReceiveVideo", value: "false")
let pair3 = RTCPair(key: "DtlsSrtpKeyAgreement", value: "true")
self.mediaConstraints = RTCMediaConstraints(mandatoryConstraints: [pair1!,pair2!], optionalConstraints:[pair3!])
// Create the peer connection using the ICE server list and the current class as the delegate
let localStream:RTCMediaStream = pcFactory.mediaStream(withLabel: “12345”)
let audioTrack:RTCAudioTrack = pcFactory.audioTrack(withID: “123456”)
audioTrack.delegate = self
let status = localStream.addAudioTrack(audioTrack)
self.peerConnection = pcFactory.peerConnection(with: rtcConfiguration, constraints: self.mediaConstraints!, delegate: self)
let pstatus = self.peerConnection!.add(localStream)
print(status)
print(pstatus)
//Let’s look at how the offer is created, which initiates the call.
self.peerConnection!.createOffer(with: self, constraints: self.mediaConstraints)
I am getting sip here.
public func peerConnection(_ peerConnection: RTCPeerConnection!, didCreateSessionDescription sdp: RTCSessionDescription!, error: Error!)
getting crash when this delegate called.
func peerConnection(_ peerConnection: RTCPeerConnection!, gotICECandidate candidate: RTCICECandidate!)
Crash Report
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x5000000000000038 Termination Signal:
Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0] Triggered by Thread: 9
Filtered syslog: None found
Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0: 0
libsystem_kernel.dylib 0x000000018f58816c mach_msg_trap + 8 1
libsystem_kernel.dylib 0x000000018f587fdc mach_msg + 72 2
CoreFoundation 0x0000000190585cec
__CFRunLoopServiceMachPort + 192 3 CoreFoundation 0x0000000190583908 __CFRunLoopRun + 1132 4 CoreFoundation
0x00000001904b2048 CFRunLoopRunSpecific + 444 5 GraphicsServices
0x0000000191f35198 GSEventRunModal + 180 6 UIKit
0x000000019648b818 -[UIApplication _run] + 684 7 UIKit
0x0000000196486550 UIApplicationMain + 208 8 Shukran
0x0000000100080a1c 0x10007c000 + 18972 9 libdyld.dylib
0x000000018f4945b8 start + 4
Thread 1 name: com.apple.uikit.eventfetch-thread Thread 1: 0
libsystem_kernel.dylib 0x000000018f58816c mach_msg_trap + 8 1
libsystem_kernel.dylib 0x000000018f587fdc mach_msg + 72 2
CoreFoundation 0x0000000190585cec
CFRunLoopServiceMachPort + 192 3 CoreFoundation 0x0000000190583908 __CFRunLoopRun + 1132 4 CoreFoundation
0x00000001904b2048 CFRunLoopRunSpecific + 444 5 Foundation
0x0000000190fc0b1c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x0000000190fe160c
-[NSRunLoop(NSRunLoop) runUntilDate:] + 96 7 UIKit 0x0000000196e00e6c -[UIEventFetcher threadMain] + 136 8 Foundation
0x00000001910be50c __NSThread__start + 1024 9
libsystem_pthread.dylib 0x000000018f66b860 _pthread_body + 240
10 libsystem_pthread.dylib 0x000000018f66b770 _pthread_body +
0 11 libsystem_pthread.dylib 0x000000018f668dbc thread_start +
4
Thread 2 name: AVAudioSession Notify Thread Thread 2: 0
libsystem_kernel.dylib 0x000000018f58816c mach_msg_trap + 8 1
libsystem_kernel.dylib 0x000000018f587fdc mach_msg + 72 2
CoreFoundation 0x0000000190585cec
__CFRunLoopServiceMachPort + 192 3 CoreFoundation 0x0000000190583908 __CFRunLoopRun + 1132 4 CoreFoundation
0x00000001904b2048 CFRunLoopRunSpecific + 444 5 AVFAudio
0x00000001a9baafe8 GenericRunLoopThread::Entry(void*) + 164 6
AVFAudio 0x00000001a9bd0f14
CAPThread::Entry(CAPThread*) + 84 7 libsystem_pthread.dylib
0x000000018f66b860 _pthread_body + 240 8 libsystem_pthread.dylib
0x000000018f66b770 _pthread_body + 0 9 libsystem_pthread.dylib
0x000000018f668dbc thread_start + 4
Thread 3 name: com.apple.NSURLConnectionLoader Thread 3: 0
libsystem_kernel.dylib 0x000000018f58816c mach_msg_trap + 8 1
libsystem_kernel.dylib 0x000000018f587fdc mach_msg + 72 2
CoreFoundation 0x0000000190585cec
CFRunLoopServiceMachPort + 192 3 CoreFoundation 0x0000000190583908 __CFRunLoopRun + 1132 4 CoreFoundation
0x00000001904b2048 CFRunLoopRunSpecific + 444 5 CFNetwork
0x0000000190c9fcec +[NSURLConnection(Loader) _resourceLoadLoop:] +
336 6 Foundation 0x00000001910be50c
__NSThread__start + 1024 7 libsystem_pthread.dylib 0x000000018f66b860 _pthread_body + 240 8 libsystem_pthread.dylib
0x000000018f66b770 _pthread_body + 0 9 libsystem_pthread.dylib
0x000000018f668dbc thread_start + 4
Thread 4: 0 libsystem_pthread.dylib 0x000000018f668db0
start_wqthread + 0
Thread 5: 0 libsystem_kernel.dylib 0x000000018f5a6a88
__workq_kernreturn + 8 1 libsystem_pthread.dylib 0x000000018f669188 _pthread_wqthread + 968 2
libsystem_pthread.dylib 0x000000018f668db4 start_wqthread + 4
Thread 6: 0 libsystem_pthread.dylib 0x000000018f668db0
start_wqthread + 0
Thread 7: 0 libsystem_kernel.dylib 0x000000018f5a5e1c
__psynch_cvwait + 8 1 libsystem_pthread.dylib 0x000000018f66a9d0 _pthread_cond_wait + 640 2 Shukran
0x000000010030009c 0x10007c000 + 2637980 3 libsystem_pthread.dylib
0x000000018f66b860 _pthread_body + 240 4 libsystem_pthread.dylib
0x000000018f66b770 _pthread_body + 0 5 libsystem_pthread.dylib
0x000000018f668dbc thread_start + 4
Thread 8: 0 libsystem_kernel.dylib 0x000000018f5a623c
__select + 8 1 Shukran 0x00000001003004d0 0x10007c000 + 2639056 2 libsystem_pthread.dylib
0x000000018f66b860 _pthread_body + 240 3 libsystem_pthread.dylib
0x000000018f66b770 _pthread_body + 0 4 libsystem_pthread.dylib
0x000000018f668dbc thread_start + 4
Thread 9 name: VoiceProcessThread Thread 9 Crashed: 0 Shukran
0x00000001001956ac 0x10007c000 + 1152684 1 Shukran
0x000000010019569c 0x10007c000 + 1152668 2 Shukran
0x0000000100168688 0x10007c000 + 968328 3 Shukran
0x0000000100191020 0x10007c000 + 1134624 4 Shukran
0x000000010033b1bc 0x10007c000 + 2879932 5 Shukran
0x00000001002d906c 0x10007c000 + 2478188 6 Shukran
0x00000001002d8670 0x10007c000 + 2475632 7 Shukran
0x00000001002ca330 0x10007c000 + 2417456 8 Shukran
0x00000001004293f0 0x10007c000 + 3855344 9 Shukran
0x00000001002fb010 0x10007c000 + 2617360 10 Shukran
0x00000001002faf94 0x10007c000 + 2617236 11 libsystem_pthread.dylib
0x000000018f66b860 _pthread_body + 240 12 libsystem_pthread.dylib
0x000000018f66b770 _pthread_body + 0 13 libsystem_pthread.dylib
0x000000018f668dbc thread_start + 4
Thread 10 name: PacerThread Thread 10: 0 libsystem_kernel.dylib
0x000000018f5a5e1c __psynch_cvwait + 8 1 libsystem_pthread.dylib
0x000000018f66a9d0 _pthread_cond_wait + 640 2 Shukran
0x000000010028548c 0x10007c000 + 2135180 3 Shukran
0x00000001002f7544 0x10007c000 + 2602308 4 Shukran
0x00000001004294f0 0x10007c000 + 3855600 5 Shukran
0x00000001002fb010 0x10007c000 + 2617360 6 Shukran
0x00000001002faf94 0x10007c000 + 2617236 7 libsystem_pthread.dylib
0x000000018f66b860 _pthread_body + 240 8 libsystem_pthread.dylib
0x000000018f66b770 _pthread_body + 0 9 libsystem_pthread.dylib
0x000000018f668dbc thread_start + 4
Thread 11 name: ModuleProcessThread Thread 11: 0
libsystem_kernel.dylib 0x000000018f5a5e1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x000000018f66a9d0
_pthread_cond_wait + 640 2 Shukran 0x000000010028548c 0x10007c000 + 2135180 3 Shukran
0x00000001002f7544 0x10007c000 + 2602308 4 Shukran
0x00000001004294f0 0x10007c000 + 3855600 5 Shukran
0x00000001002fb010 0x10007c000 + 2617360 6 Shukran
0x00000001002faf94 0x10007c000 + 2617236 7 libsystem_pthread.dylib
0x000000018f66b860 _pthread_body + 240 8 libsystem_pthread.dylib
0x000000018f66b770 _pthread_body + 0 9 libsystem_pthread.dylib
0x000000018f668dbc thread_start + 4
Thread 9 crashed with ARM Thread State (64-bit):
x0: 0x000000010303c100 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000001024694e8
x4: 0x0000000000000000 x5: 0x0000000000000010 x6: 0x0000000000000002 x7: 0x000000016e54a45c
x8: 0x5000000000000000 x9: 0x0000000000000000 x10: 0x000000016e54b818 x11: 0x0000000000000000 x12: 0x03e0fe0003e0fe00
x13: 0x000000018f66b770 x14: 0x000000018f668dbc x15:
0x0000000000000010 x16: 0x000000018f669ab8 x17: 0x0000000000000001
x18: 0x0000000000000000 x19: 0x0000000000000004 x20:
0x0000000104082e00 x21: 0x00000001702a42c0 x22: 0x000000016e54a278
x23: 0x00000001702a42e8 x24: 0x000000016e54a240 x25:
0x00000001702a42c8 x26: 0x00000001702a42e0 x27: 0xd96031967698005a
x28: 0x0000000000000000 fp: 0x000000016e54a1f0 lr:
0x000000010019569c
sp: 0x000000016e549b10 pc: 0x00000001001956ac cpsr: 0x60000000

Please check your iceServer is Running fine or not, I have used Following iceServers and resolved the crash. Or you can build your own STUN server. It may be one of reason you are getting the crash.
let iceServer1:RTCICEServer = RTCICEServer.init(uri: URL.init(string: "stun:stun.l.google.com:19302"), username: "", password: "")
OR
let iceServer2:RTCICEServer = RTCICEServer.init(uri: URL.init(string: "turn:numb.viagenie.ca"), username: "webrtc#live.com", password: "muazkh")

Related

Crash log in Xcode

Apologies for my ignorance, I've tried searching around but couldn't find an answer.
I've recently tried uploading my app onto the app store but Apple came back saying the app crashes on launch and attached the crash log.
I've tried symbolicating the crash log by dragging the log into Xcode -> Windows -> Devices -> View Device Logs
Part of the snippet is returned as follows:
{"app_name":"WhoDat","timestamp":"2018-01-05 14:25:21.23 -0800","app_version":"1.14","slice_uuid":"dc778fa9-d896-3a05-8368-acb64cf12d9b","adam_id":1257412293,"build_version":"1","bundleID":"com.LemonIncLtd.WhoDat","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 11.2.1 (15C153)","incident_id":"E0FDE51B-95AB-45AA-B5EB-CB652E7E338C","name":"WhoDat"}
Incident Identifier: E0FDE51B-95AB-45AA-B5EB-CB652E7E338C
CrashReporter Key: d6f3d39997ded4731aaf57ef5f7fc62b95e6d3ca
Hardware Model: xxx1
Process: WhoDat [2944]
Path: /private/var/containers/Bundle/Application/1E7CF751-A823-421A-A987-FA889AAFBF97/WhoDat.app/WhoDat
Identifier: com.LemonIncLtd.WhoDat
Version: 1 (1.14)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.LemonIncLtd.WhoDat [1678]
Date/Time: 2018-01-05 14:25:21.1369 -0800
Launch Time: 2018-01-05 14:25:16.9867 -0800
OS Version: iPhone OS 11.2.1 (15C153)
Baseband Version: n/a
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000010446110c
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread: 10
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x00000001848e7568 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001848e73e0 mach_msg + 72
2 CoreFoundation 0x0000000184d9e308 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000184d9bed4 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000184cbbe58 CFRunLoopRunSpecific + 436
5 GraphicsServices 0x0000000186b68f84 GSEventRunModal + 100
6 UIKit 0x000000018e33b67c UIApplicationMain + 236
7 WhoDat 0x000000010445a70c 0x104454000 + 26380
8 libdyld.dylib 0x00000001847d856c start + 4
Thread 1:
0 libsystem_kernel.dylib 0x0000000184908d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000184a1aeec _pthread_wqthread + 884
2 libsystem_pthread.dylib 0x0000000184a1ab6c start_wqthread + 4
Thread 2:
0 libsystem_kernel.dylib 0x0000000184908d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000184a1aeec _pthread_wqthread + 884
2 libsystem_pthread.dylib 0x0000000184a1ab6c start_wqthread + 4
Thread 3:
0 libsystem_pthread.dylib 0x0000000184a1ab68 start_wqthread + 0
Thread 4 name: com.apple.uikit.eventfetch-thread
Thread 4:
0 libsystem_kernel.dylib 0x00000001848e7568 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001848e73e0 mach_msg + 72
2 CoreFoundation 0x0000000184d9e308 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000184d9bed4 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000184cbbe58 CFRunLoopRunSpecific + 436
5 Foundation 0x00000001856f1594 -[NSRunLoop+ 50580 (NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x00000001857109ac -[NSRunLoop+ 178604 (NSRunLoop) runUntilDate:] + 96
7 UIKit 0x000000018eea57b8 -[UIEventFetcher threadMain] + 136
8 Foundation 0x00000001857f30f4 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x0000000184a1c2b4 _pthread_body + 308
10 libsystem_pthread.dylib 0x0000000184a1c180 _pthread_body + 0
11 libsystem_pthread.dylib 0x0000000184a1ab74 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x0000000184908d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000184a1aeec _pthread_wqthread + 884
2 libsystem_pthread.dylib 0x0000000184a1ab6c start_wqthread + 4
Thread 6:
0 libsystem_pthread.dylib 0x0000000184a1ab68 start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x0000000184a1ab68 start_wqthread + 0
Thread 8 name: com.apple.NSURLConnectionLoader
Thread 8:
0 libsystem_kernel.dylib 0x00000001848e7568 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001848e73e0 mach_msg + 72
2 CoreFoundation 0x0000000184d9e308 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000184d9bed4 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000184cbbe58 CFRunLoopRunSpecific + 436
5 CFNetwork 0x00000001855ab128 -[__CoreSchedulingSetRunnable runForever] + 780
6 Foundation 0x00000001857f30f4 __NSThread__start__ + 996
7 libsystem_pthread.dylib 0x0000000184a1c2b4 _pthread_body + 308
8 libsystem_pthread.dylib 0x0000000184a1c180 _pthread_body + 0
9 libsystem_pthread.dylib 0x0000000184a1ab74 thread_start + 4
Thread 9 name: NetworkLoad
Thread 9:
0 libsystem_kernel.dylib 0x00000001848e7568 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001848e73e0 mach_msg + 72
2 CoreFoundation 0x0000000184d9e308 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000184d9bed4 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000184cbbe58 CFRunLoopRunSpecific + 436
5 GeoServices 0x000000018aeef0ec _runNetworkThread + 468
6 libsystem_pthread.dylib 0x0000000184a1c2b4 _pthread_body + 308
7 libsystem_pthread.dylib 0x0000000184a1c180 _pthread_body + 0
8 libsystem_pthread.dylib 0x0000000184a1ab74 thread_start + 4
Thread 10 name: Dispatch queue: com.apple.root.background-qos
Thread 10 Crashed:
0 WhoDat 0x000000010446110c 0x104454000 + 53516
1 WhoDat 0x000000010446e230 0x104454000 + 107056
2 libdispatch.dylib 0x0000000184772a54 _dispatch_call_block_and_release + 24
3 libdispatch.dylib 0x0000000184772a14 _dispatch_client_callout + 16
4 libdispatch.dylib 0x000000018477fea4 _dispatch_root_queue_drain + 1032
5 libdispatch.dylib 0x000000018477fa38 _dispatch_worker_thread3 + 120
6 libsystem_pthread.dylib 0x0000000184a1b06c _pthread_wqthread + 1268
7 libsystem_pthread.dylib 0x0000000184a1ab6c start_wqthread + 4
Thread 11 name: com.apple.vectorkit.dispatch.layoutqueue
Thread 11:
0 libsystem_kernel.dylib 0x00000001848e75bc semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x0000000184775000 _dispatch_sema4_timedwait$VARIANT$mp + 84
2 libdispatch.dylib 0x0000000184775870 _dispatch_semaphore_wait_slow + 72
3 libdispatch.dylib 0x00000001847811d8 _dispatch_worker_thread + 256
4 libsystem_pthread.dylib 0x0000000184a1c2b4 _pthread_body + 308
5 libsystem_pthread.dylib 0x0000000184a1c180 _pthread_body + 0
6 libsystem_pthread.dylib 0x0000000184a1ab74 thread_start + 4
Thread 12:
0 libsystem_kernel.dylib 0x00000001848e75bc semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x0000000184775000 _dispatch_sema4_timedwait$VARIANT$mp + 84
2 libdispatch.dylib 0x0000000184775870 _dispatch_semaphore_wait_slow + 72
3 libdispatch.dylib 0x00000001847811d8 _dispatch_worker_thread + 256
4 libsystem_pthread.dylib 0x0000000184a1c2b4 _pthread_body + 308
5 libsystem_pthread.dylib 0x0000000184a1c180 _pthread_body + 0
6 libsystem_pthread.dylib 0x0000000184a1ab74 thread_start + 4
Thread 13:
0 libsystem_kernel.dylib 0x0000000184908d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000184a1aeec _pthread_wqthread + 884
2 libsystem_pthread.dylib 0x0000000184a1ab6c start_wqthread + 4
Thread 14 name: com.squareup.SocketRocket.NetworkThread
Thread 14:
0 libsystem_kernel.dylib 0x00000001848e7568 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001848e73e0 mach_msg + 72
2 CoreFoundation 0x0000000184d9e308 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000184d9bed4 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000184cbbe58 CFRunLoopRunSpecific + 436
5 Foundation 0x00000001856f1594 -[NSRunLoop+ 50580 (NSRunLoop) runMode:beforeDate:] + 304
6 WhoDat 0x0000000104560028 0x104454000 + 1097768
7 Foundation 0x00000001857f30f4 __NSThread__start__ + 996
8 libsystem_pthread.dylib 0x0000000184a1c2b4 _pthread_body + 308
9 libsystem_pthread.dylib 0x0000000184a1c180 _pthread_body + 0
10 libsystem_pthread.dylib 0x0000000184a1ab74 thread_start + 4
Thread 15:
0 libsystem_pthread.dylib 0x0000000184a1ab68 start_wqthread + 0
Thread 16 name: com.apple.CFSocket.private
Thread 16:
0 libsystem_kernel.dylib 0x0000000184908534 __select + 8
1 CoreFoundation 0x0000000184da6840 __CFSocketManager + 644
2 libsystem_pthread.dylib 0x0000000184a1c2b4 _pthread_body + 308
3 libsystem_pthread.dylib 0x0000000184a1c180 _pthread_body + 0
4 libsystem_pthread.dylib 0x0000000184a1ab74 thread_start + 4
Thread 17 name: com.apple.mapdisplay.iconrenderqueue
Thread 17:
0 libsystem_kernel.dylib 0x00000001848e75bc semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x0000000184775000 _dispatch_sema4_timedwait$VARIANT$mp + 84
2 libdispatch.dylib 0x0000000184775870 _dispatch_semaphore_wait_slow + 72
3 libdispatch.dylib 0x00000001847811d8 _dispatch_worker_thread + 256
4 libsystem_pthread.dylib 0x0000000184a1c2b4 _pthread_body + 308
5 libsystem_pthread.dylib 0x0000000184a1c180 _pthread_body + 0
6 libsystem_pthread.dylib 0x0000000184a1ab74 thread_start + 4
Thread 10 crashed with ARM Thread State (64-bit):
x0: 0x0000000105630380 x1: 0x000000018f06a470 x2: 0x0000000000000000 x3: 0x0000000000000001
x4: 0x0000000000000001 x5: 0x0000000000000001 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000001 x9: 0x0000000000000000 x10: 0x0000000000000000 x11: 0x000000a7000000ff
x12: 0x00000001058faf00 x13: 0x000005a104a8700f x14: 0x0000000000000004 x15: 0x0000000000000000
x16: 0x0000000104a87008 x17: 0x000000018ee01ea8 x18: 0xfffffff01609925c x19: 0x00000001c042cfe0
x20: 0x0000000000000000 x21: 0x0000000105630380 x22: 0x0000000000000001 x23: 0x0000000000000000
x24: 0xffffffffffffffff x25: 0x0000000fffffc0c0 x26: 0x00000000ff00ffff x27: 0x00000001b5927ab0
x28: 0x00000001b5927ad0 fp: 0x000000016bf1edb0 lr: 0x00000001044610b4
sp: 0x000000016bf1ed90 pc: 0x000000010446110c cpsr: 0x20000000
Could someone direct me and tell me how to read the above and find where the issue is occuring?
Thanks in advance!

iOS app crashes on opening login page Swift (TestFlight Only)

My app is crashing at my login with Facebook/Google page only in TestFlight. This error doesn't appear when using the Xcode simulator. I am very baffled by this problem and don't know how to fix it.
Here is my full crash log:
Incident Identifier: CBEBA3B7-51CE-461F-AA78-B154009714E2
Beta Identifier: C75146BB-6780-4080-845E-720DC1B395E0
Hardware Model: iPhone8,1
Process: App [2033]
Path: /private/var/containers/Bundle/Application/3E55D2B2-866D-43BD-9ECE-A15250AF09A1/app.app/app
Identifier: co.app.app
Version: 1.0.6 (1.0)
Beta: YES
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2016-08-07 14:10:51.51 -0700
Launch Time: 2016-08-07 14:10:49.49 -0700
OS Version: iOS 9.3.3 (13G34)
Report Version: 105
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001000cf698
Triggered by Thread: 0
Global Trace Buffer (reverse chronological seconds):
0.232099 CFNetwork 0x00000001832617f0 TCP Conn 0x15eadb6b0 starting SSL negotiation
0.233291 CFNetwork 0x0000000183303e7c TCP Conn 0x15eadb6b0 complete. fd: 7, err: 0
0.234212 CFNetwork 0x00000001833053a8 TCP Conn 0x15eadb6b0 event 1. err: 0
Thread 0 name:
Thread 0 Crashed:
0 AppName 0x00000001000cf698 0x1000bc000 + 79512
1 AppName 0x00000001000cde14 0x1000bc000 + 73236
2 FBSDKCoreKit 0x0000000100a3029c 0x100a08000 + 164508
3 FBSDKCoreKit 0x0000000100a2ded0 0x100a08000 + 155344
4 FBSDKCoreKit 0x0000000100a2dd20 0x100a08000 + 154912
5 FBSDKCoreKit 0x0000000100a2d7c8 0x100a08000 + 153544
6 CoreFoundation 0x0000000182b6f944 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 132 (NSArray.m:479)
7 CoreFoundation 0x0000000182b6f7b4 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 172 (NSArray.m:496)
8 FBSDKCoreKit 0x0000000100a2d584 0x100a08000 + 152964
9 FBSDKCoreKit 0x0000000100a2ca40 0x100a08000 + 150080
10 FBSDKCoreKit 0x0000000100a2ac0c 0x100a08000 + 142348
11 FBSDKCoreKit 0x0000000100a454bc 0x100a08000 + 251068
12 FBSDKCoreKit 0x0000000100a45414 0x100a08000 + 250900
13 FBSDKCoreKit 0x0000000100a45888 0x100a08000 + 252040
14 CFNetwork 0x00000001833f96a0 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 80 (NSURLConnectionInternal.mm:124)
15 CFNetwork 0x00000001833f9630 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 200 (NSURLConnectionInternal.mm:121)
16 CFNetwork 0x00000001833f97a4 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56 (NSURLConnectionInternal.mm:139)
17 CFNetwork 0x000000018325f39c ___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke + 100 (URLConnectionClient.cpp:2132)
18 CFNetwork 0x000000018335341c ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 108 (URLConnectionClient.cpp:1896)
19 libdispatch.dylib 0x00000001826c947c _dispatch_client_callout + 16 (object.m:506)
20 libdispatch.dylib 0x00000001826d27b8 _dispatch_block_invoke + 540 (queue.c:2171)
21 CFNetwork 0x000000018324bac0 RunloopBlockContext::_invoke_block(void const*, void*) + 36 (CoreSchedulingSet.mm:363)
22 CoreFoundation 0x0000000182b5c67c CFArrayApplyFunction + 68 (CFArray.c:707)
23 CFNetwork 0x000000018324b9a4 RunloopBlockContext::perform() + 136 (CoreSchedulingSet.mm:317)
24 CFNetwork 0x000000018324b864 MultiplexerSource::perform() + 312 (CFNRunLoopMultiplexer.c:282)
25 CFNetwork 0x000000018324b690 MultiplexerSource::_perform(void*) + 68 (CFNRunLoopMultiplexer.c:47)
26 CoreFoundation 0x0000000182c3509c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1761)
27 CoreFoundation 0x0000000182c34b30 __CFRunLoopDoSources0 + 540 (CFRunLoop.c:1807)
28 CoreFoundation 0x0000000182c32830 __CFRunLoopRun + 724 (CFRunLoop.c:2536)
29 CoreFoundation 0x0000000182b5cc50 CFRunLoopRunSpecific + 384 (CFRunLoop.c:2814)
30 GraphicsServices 0x0000000184444088 GSEventRunModal + 180 (GSEvent.c:2245)
31 UIKit 0x0000000187e46088 UIApplicationMain + 204 (UIApplication.m:3772)
32 AppName 0x00000001000d5244 0x1000bc000 + 102980
33 libdyld.dylib 0x00000001826fa8b8 start + 4 (start_glue.s:78)
Thread 1:
0 libsystem_kernel.dylib 0x0000000182818b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001828e1530 _pthread_wqthread + 1284 (pthread.c:1999)
2 libsystem_pthread.dylib 0x00000001828e1020 start_wqthread + 4 (pthread_asm.s:190)
Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x00000001828194d8 kevent_qos + 8
1 libdispatch.dylib 0x00000001826dc7d8 _dispatch_mgr_invoke + 232 (source.c:2542)
2 libdispatch.dylib 0x00000001826cb648 _dispatch_mgr_thread + 52 (source.c:2573)
Thread 3:
0 libsystem_kernel.dylib 0x0000000182818b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001828e1530 _pthread_wqthread + 1284 (pthread.c:1999)
2 libsystem_pthread.dylib 0x00000001828e1020 start_wqthread + 4 (pthread_asm.s:190)
Thread 4:
0 libsystem_kernel.dylib 0x0000000182818b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001828e1530 _pthread_wqthread + 1284 (pthread.c:1999)
2 libsystem_pthread.dylib 0x00000001828e1020 start_wqthread + 4 (pthread_asm.s:190)
Thread 5:
0 libsystem_kernel.dylib 0x0000000182818b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001828e1530 _pthread_wqthread + 1284 (pthread.c:1999)
2 libsystem_pthread.dylib 0x00000001828e1020 start_wqthread + 4 (pthread_asm.s:190)
Thread 6 name:
Thread 6:
0 libsystem_kernel.dylib 0x00000001827fcfd8 mach_msg_trap + 8 (syscall_sw.h:105)
1 libsystem_kernel.dylib 0x00000001827fce54 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x0000000182c34c60 __CFRunLoopServiceMachPort + 196 (CFRunLoop.c:2345)
3 CoreFoundation 0x0000000182c32964 __CFRunLoopRun + 1032 (CFRunLoop.c:2607)
4 CoreFoundation 0x0000000182b5cc50 CFRunLoopRunSpecific + 384 (CFRunLoop.c:2814)
5 CFNetwork 0x00000001832ddbcc +[NSURLConnection(Loader) _resourceLoadLoop:] + 412 (NSURLConnection.mm:325)
6 Foundation 0x0000000183653e4c __NSThread__start__ + 1000 (NSThread.m:1134)
7 libsystem_pthread.dylib 0x00000001828e3b28 _pthread_body + 156 (pthread.c:656)
8 libsystem_pthread.dylib 0x00000001828e3a8c _pthread_start + 156 (pthread.c:692)
9 libsystem_pthread.dylib 0x00000001828e1028 thread_start + 4 (pthread_asm.s:197)
Thread 7:
0 libsystem_kernel.dylib 0x0000000182818b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001828e1530 _pthread_wqthread + 1284 (pthread.c:1999)
2 libsystem_pthread.dylib 0x00000001828e1020 start_wqthread + 4 (pthread_asm.s:190)
Thread 8:
0 libsystem_kernel.dylib 0x0000000182818b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001828e1530 _pthread_wqthread + 1284 (pthread.c:1999)
2 libsystem_pthread.dylib 0x00000001828e1020 start_wqthread + 4 (pthread_asm.s:190)
Thread 9 name:
Thread 9:
0 libsystem_kernel.dylib 0x0000000182818344 __select + 8
1 CoreFoundation 0x0000000182c3b1c8 __CFSocketManager + 648 (CFSocket.c:2128)
2 libsystem_pthread.dylib 0x00000001828e3b28 _pthread_body + 156 (pthread.c:656)
3 libsystem_pthread.dylib 0x00000001828e3a8c _pthread_start + 156 (pthread.c:692)
4 libsystem_pthread.dylib 0x00000001828e1028 thread_start + 4 (pthread_asm.s:197)
Thread 10:
0 libsystem_kernel.dylib 0x0000000182818b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001828e1530 _pthread_wqthread + 1284 (pthread.c:1999)
2 libsystem_pthread.dylib 0x00000001828e1020 start_wqthread + 4 (pthread_asm.s:190)
Thread 11:
0 libsystem_kernel.dylib 0x0000000182818b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001828e1530 _pthread_wqthread + 1284 (pthread.c:1999)
2 libsystem_pthread.dylib 0x00000001828e1020 start_wqthread + 4 (pthread_asm.s:190)
Thread 12:
0 libsystem_kernel.dylib 0x0000000182818b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001828e1530 _pthread_wqthread + 1284 (pthread.c:1999)
2 libsystem_pthread.dylib 0x00000001828e1020 start_wqthread + 4 (pthread_asm.s:190)
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x00000001828da8f4 x2: 0x000000015d7e38d0 x3: 0x0000000000000006
x4: 0x000000015e925ec0 x5: 0x0000000000000000 x6: 0x0000000000000064 x7: 0x0000000000000000
x8: 0x0000000000000001 x9: 0x00000001a167e0e0 x10: 0x000000015d7e4000 x11: 0x0000000000003fff
x12: 0x000000015d7e0000 x13: 0x0000000000003fff x14: 0xffffffffffffc000 x15: 0x0000000000003fff
x16: 0x00000001822fdef0 x17: 0x00000001822fea74 x18: 0x0000000000000000 x19: 0x000000015e859770
x20: 0x0000000100f03a66 x21: 0x000000015d792070 x22: 0x0000000000000000 x23: 0xc000000000000004
x24: 0x000000015d7f94e0 x25: 0x0000000000000000 x26: 0x000000015e9b5cf0 x27: 0x800000000000000a
x28: 0x000000015ea565a0 fp: 0x000000016fd42040 lr: 0x00000001000cf264
sp: 0x000000016fd41e50 pc: 0x00000001000cf698 cpsr: 0x60000000
Hope you all can help! Thanks!

IOS Swift App crash when login with facebook

I had my iOS app rejected by the Apple review team. They report the app crashes when they Login. When I do testing on my own devices everything works fine.
full crash log
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000100138fe8
Triggered by Thread: 0
Filtered syslog:
None found
Global Trace Buffer (reverse chronological seconds):
8.902161 CFNetwork 0x0000000183111a18 TCP Conn 0x15fe913a0 SSL Handshake DONE
8.922797 CFNetwork 0x0000000183111928 TCP Conn 0x15fe913a0 starting SSL negotiation
8.923048 CFNetwork 0x00000001831b3a30 TCP Conn 0x15fe913a0 complete. fd: 6, err: 0
8.924045 CFNetwork 0x00000001831b4f5c TCP Conn 0x15fe913a0 event 1. err: 0
14.702718 AppleJPEG 0x000000018aceeb64 [0x1601cba00] Releasing session
14.765290 AppleJPEG 0x000000018acee348 [0x1601cba00] Created session
18.109961 CFNetwork 0x00000001831b3a30 TCP Conn 0x1618cbc30 complete. fd: 6, err: 0
18.110646 CFNetwork 0x00000001831b4f5c TCP Conn 0x1618cbc30 event 1. err: 0
18.317944 CFNetwork 0x00000001831b5034 TCP Conn 0x1618cbc30 started
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 CC DOUBLE O 0x0000000100138fe8 LoginViewController.(returnUserData(LoginViewController) -> () -> ()).(closure #1) (LoginViewController.swift:228)
1 FBSDKCoreKit 0x00000001006f68a8 0x1006d0000 + 157864
2 FBSDKCoreKit 0x00000001006f4594 0x1006d0000 + 148884
3 FBSDKCoreKit 0x00000001006f4364 0x1006d0000 + 148324
4 FBSDKCoreKit 0x00000001006f3e18 0x1006d0000 + 146968
5 CoreFoundation 0x0000000183907990 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 132
6 CoreFoundation 0x0000000183907800 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 172
7 FBSDKCoreKit 0x00000001006f3bd4 0x1006d0000 + 146388
8 FBSDKCoreKit 0x00000001006f30d4 0x1006d0000 + 143572
9 FBSDKCoreKit 0x00000001006f12a8 0x1006d0000 + 135848
10 FBSDKCoreKit 0x000000010070a0dc 0x1006d0000 + 237788
11 FBSDKCoreKit 0x000000010070a034 0x1006d0000 + 237620
12 FBSDKCoreKit 0x000000010070a4ac 0x1006d0000 + 238764
13 CFNetwork 0x00000001832a36a8 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 80
14 CFNetwork 0x00000001832a3638 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 200
15 CFNetwork 0x00000001832a37ac -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56
16 CFNetwork 0x000000018310f4fc ___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke + 100
17 CFNetwork 0x00000001831fdb38 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 108
18 libdispatch.dylib 0x00000001990756a8 _dispatch_client_callout + 16
19 libdispatch.dylib 0x000000019907e9e4 _dispatch_block_invoke + 540
20 CFNetwork 0x00000001830fbce4 RunloopBlockContext::_invoke_block(void const*, void*) + 36
21 CoreFoundation 0x00000001838f46cc CFArrayApplyFunction + 68
22 CFNetwork 0x00000001830fbbc8 RunloopBlockContext::perform() + 136
23 CFNetwork 0x00000001830fba88 MultiplexerSource::perform() + 312
24 CFNetwork 0x00000001830fb8b4 MultiplexerSource::_perform(void*) + 68
25 CoreFoundation 0x00000001839c8544 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
26 CoreFoundation 0x00000001839c7fd8 __CFRunLoopDoSources0 + 540
27 CoreFoundation 0x00000001839c5cd8 __CFRunLoopRun + 724
28 CoreFoundation 0x00000001838f4ca0 CFRunLoopRunSpecific + 384
29 GraphicsServices 0x000000018e988088 GSEventRunModal + 180
30 UIKit 0x000000018900cffc UIApplicationMain + 204
31 CC DOUBLE O 0x0000000100100940 main (AppDelegate.swift:19)
32 libdyld.dylib 0x00000001990a68b8 start + 4
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x00000001991c44fc kevent_qos + 8
1 libdispatch.dylib 0x0000000199088a04 _dispatch_mgr_invoke + 232
2 libdispatch.dylib 0x0000000199077874 _dispatch_source_invoke + 0
Thread 2:
0 libsystem_kernel.dylib 0x00000001991c3b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000199289530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000199289020 start_wqthread + 4
Thread 3 name: com.twitter.crashlytics.ios.MachExceptionServer
Thread 3:
0 libsystem_kernel.dylib 0x00000001991aa598 write + 8
1 CC DOUBLE O 0x000000010019f08c CLSSDKFileLog + 444
2 CC DOUBLE O 0x000000010018e810 CLSMachExceptionServer + 180
3 libsystem_pthread.dylib 0x000000019928bb28 _pthread_body + 156
4 libsystem_pthread.dylib 0x000000019928ba8c _pthread_body + 0
5 libsystem_pthread.dylib 0x0000000199289028 thread_start + 4
Thread 4 name: com.apple.NSURLConnectionLoader
Thread 4:
0 libsystem_kernel.dylib 0x00000001991a8a40 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001991a88bc mach_msg + 72
2 CoreFoundation 0x00000001839c8108 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x00000001839c5e0c __CFRunLoopRun + 1032
4 CoreFoundation 0x00000001838f4ca0 CFRunLoopRunSpecific + 384
5 CFNetwork 0x000000018318db84 +[NSURLConnection(Loader) _resourceLoadLoop:] + 412
6 Foundation 0x0000000184953c80 __NSThread__start__ + 1000
7 libsystem_pthread.dylib 0x000000019928bb28 _pthread_body + 156
8 libsystem_pthread.dylib 0x000000019928ba8c _pthread_body + 0
9 libsystem_pthread.dylib 0x0000000199289028 thread_start + 4
Thread 5 name: GAIThread
Thread 5:
0 libsystem_kernel.dylib 0x00000001991a8a40 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001991a88bc mach_msg + 72
2 CoreFoundation 0x00000001839c8108 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x00000001839c5e0c __CFRunLoopRun + 1032
4 CoreFoundation 0x00000001838f4ca0 CFRunLoopRunSpecific + 384
5 Foundation 0x000000018486d2bc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 308
6 Foundation 0x00000001848c28f4 -[NSRunLoop(NSRunLoop) run] + 88
7 CC DOUBLE O 0x000000010016d45c +[GAI threadMain:] + 72
8 Foundation 0x0000000184953c80 __NSThread__start__ + 1000
9 libsystem_pthread.dylib 0x000000019928bb28 _pthread_body + 156
10 libsystem_pthread.dylib 0x000000019928ba8c _pthread_body + 0
11 libsystem_pthread.dylib 0x0000000199289028 thread_start + 4
Thread 6 name: com.apple.CFSocket.private
Thread 6:
0 libsystem_kernel.dylib 0x00000001991c3368 __select + 8
1 CoreFoundation 0x00000001839ce670 __CFSocketManager + 648
2 libsystem_pthread.dylib 0x000000019928bb28 _pthread_body + 156
3 libsystem_pthread.dylib 0x000000019928ba8c _pthread_body + 0
4 libsystem_pthread.dylib 0x0000000199289028 thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x00000001991c3b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000199289530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000199289020 start_wqthread + 4
Thread 8:
0 libsystem_kernel.dylib 0x00000001991c3b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000199289530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000199289020 start_wqthread + 4
Thread 9:
0 libsystem_kernel.dylib 0x00000001991c3b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000199289530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000199289020 start_wqthread + 4
Thread 10:
0 libsystem_kernel.dylib 0x00000001991c3b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000199289530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000199289020 start_wqthread + 4
Thread 11:
0 libsystem_kernel.dylib 0x00000001991c3b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000199289530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000199289020 start_wqthread + 4
Thread 12:
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x00000001618a1441 x1: 0x40000000000000e6 x2: 0x00000001618a1430 x3: 0x0000000000000000
x4: 0x0000000000000007 x5: 0x0000000000000010 x6: 0x0000000000000001 x7: 0x0000000000000000
x8: 0x0000000ffffffff8 x9: 0x00000000000003b8 x10: 0x000000015ff323a8 x11: 0x0000000000000001
x12: 0x00000001600b8e10 x13: 0x000001a19fa8fac1 x14: 0x00000000ffffffff x15: 0x00000000fffffffd
x16: 0x0000000189976aa1 x17: 0x0000000183913e34 x18: 0x0000000000000000 x19: 0x400000000000000f
x20: 0x0000000161872480 x21: 0x0000000000000000 x22: 0x000000015ff31ff0 x23: 0x0000000161872480
x24: 0x00000001618a1441 x25: 0x0000000161865c40 x26: 0x000000015fef7fb0 x27: 0x00000001618a1430
x28: 0x000000010139e3b0 fp: 0x000000016fd36080 lr: 0x0000000100138e38
sp: 0x000000016fd35f80 pc: 0x0000000100138fe8 cpsr: 0x60000000
line 228 is do self.login("fb", id: self.dict.valueForKey("id") as!
String, access: FBSDKAccessToken.currentAccessToken().tokenString)
func returnUserData()
{
if((FBSDKAccessToken.currentAccessToken()) != nil){
FBSDKGraphRequest(graphPath: "me", parameters: ["fields": "id, name, first_name, last_name, email"]).startWithCompletionHandler({ (connection, result, error) -> Void in
if (error == nil){
self.dict = result as! NSDictionary
print(self.dict)
// print(self.dict.objectForKey("email") as! String)
(line 228) self.login("fb", id: self.dict.valueForKey("id") as! String, access: FBSDKAccessToken.currentAccessToken().tokenString)
}
})
}
}
func login(type:String,id:String,access:String){
self.apiService.requestLogin(type ,id: id, access: access, deviceToken: self.deviceToken, completionHandler: { (obj, success) -> Void in
self.handlerLoginResponse(obj!)
})
}
func handlerLoginResponse(obj:AnyObject){
let json = JSON(obj)
let status = json["status"].intValue
let errmessage = json["error"]["message"].stringValue
switch status {
case 1:
let userId = json["data"]["id"].stringValue
let userToken = json["data"]["token"].stringValue
self.defaults.setObject(userId, forKey: UserDefaultsContracts.KEY_USER_ID)
self.defaults.setObject(userToken, forKey: UserDefaultsContracts.KEY_TOKEN)
self.defaults.synchronize()
self.performSegueWithIdentifier("ToRootView", sender: nil)
case -5:
print(errmessage)
self.performSegueWithIdentifier("CreateAccountViewController", sender: nil)
default:
print(errmessage)
}
}

App crashes when loading UIWebView in new devices

I am some days with a problem I can't understand.
My hybrid app communicates with a webservice that returns an encrypted text with the html to render. Then the app decrypt this text and render the WebView with the html. This html use a css file that is embedded in app.
What happend is when I debug by XCode nothing happen, but when I download the same version from App Store, the app crashes when the WebView will load. This happen only in new devices, like iPhone 6 and iPad Mini 3. In oldest devices works fine.
I'm debugging in Simulator and iPhone 6 and any problems occurs.
I tried don't use the css local file but the problem continues.
Another WebView that don't use crypted html works fine.
Do you have any idea what can be?
Should I developer a native way?
Log from device:
Incident Identifier: E614B8C5-69FC-4E29-AACE-FEF75D187EA7
CrashReporter Key: 9127443b5b7e252b878fc8c29923f969d5107916
Hardware Model: iPhone7,2
Process: process
Path: /private/var/mobile/Containers/Bundle/Application/C22501DB-99F8-463D-BD49-1D1E8829E1BA/
Identifier: br.mycompany.app
Version: 1.8.4 (1.8.4)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-08-12 10:20:01.561 -0300
Launch Time: 2015-08-12 10:19:52.189 -0300
OS Version: iOS 8.4 (12H143)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 ??? 000000000000000000 0 + 0
1 libdispatch.dylib 0x0000000194f4220c _dispatch_main_queue_callback_4CF + 1608
2 CoreFoundation 0x0000000182bab7f8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
3 CoreFoundation 0x0000000182ba98a0 __CFRunLoopRun + 1492
4 CoreFoundation 0x0000000182ad52d4 CFRunLoopRunSpecific + 396
5 GraphicsServices 0x000000018c52b6fc GSEventRunModal + 168
6 UIKit 0x00000001876d2f40 UIApplicationMain + 1488
7 FAAP 0x00000001000bf098 main (main.m:16)
8 libdyld.dylib 0x0000000194f6aa08 start + 4
9 ??? 000000000000000000 0 + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000195068c24 kevent64 + 8
1 libdispatch.dylib 0x0000000194f4de6c _dispatch_mgr_invoke + 272
2 libdispatch.dylib 0x0000000194f3f998 _dispatch_mgr_thread + 48
Thread 2:
0 libsystem_kernel.dylib 0x0000000195083c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019511d2d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x000000019511ceec start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x0000000195083c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019511d2d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x000000019511ceec start_wqthread + 0
Thread 4:
0 libsystem_kernel.dylib 0x0000000195083c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019511d2d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x000000019511ceec start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x0000000195083c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019511d2d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x000000019511ceec start_wqthread + 0
Thread 6 name: WebThread
Thread 6:
0 libsystem_kernel.dylib 0x0000000195083078 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x000000019511ef28 _pthread_cond_wait + 620
2 WebCore 0x000000019196f984 SendDelegateMessage(NSInvocation*) + 612
3 CoreFoundation 0x0000000182bf7f68 ___forwarding___ + 436
4 CoreFoundation 0x0000000182afacc8 _CF_forwarding_prep_0 + 88
5 WebKitLegacy 0x000000019282b0b0 WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction(WebCore::NavigationAction const&, WebCore::ResourceRequest const&, WTF::PassRefPtr<WebCore::FormState>, std::__1::function<void (WebCore::PolicyAction)>) + 324
6 WebCore 0x0000000192343448 WebCore::PolicyChecker::checkNavigationPolicy(WebCore::ResourceRequest const&, WebCore::DocumentLoader*, WTF::PassRefPtr<WebCore::FormState>, std::__1::function<void (WebCore::ResourceRequest const&, WTF::PassRefPtr<WebCore::FormState>, bool)>) + 1616
7 WebCore 0x0000000191979fa4 WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader*, WebCore::FrameLoadType, WTF::PassRefPtr<WebCore::FormState>) + 992
8 WebCore 0x00000001919aef64 WebCore::FrameLoader::load(WebCore::DocumentLoader*) + 268
9 WebCore 0x00000001919aedf0 WebCore::FrameLoader::load(WebCore::FrameLoadRequest const&) + 1624
10 WebKitLegacy 0x000000019282938c -[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:] + 1712
11 WebCore 0x000000019262b824 HandleRunSource(void*) + 364
12 CoreFoundation 0x0000000182bac23c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 20
13 CoreFoundation 0x0000000182bab4e0 __CFRunLoopDoSources0 + 260
14 CoreFoundation 0x0000000182ba9590 __CFRunLoopRun + 708
15 CoreFoundation 0x0000000182ad52d0 CFRunLoopRunSpecific + 392
16 WebCore 0x00000001919542e0 RunWebThread(void*) + 464
17 libsystem_pthread.dylib 0x000000019511fdc4 _pthread_body + 160
18 libsystem_pthread.dylib 0x000000019511fd20 _pthread_start + 156
19 libsystem_pthread.dylib 0x000000019511cef4 thread_start + 0
Thread 7:
0 libsystem_kernel.dylib 0x0000000195083c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019511d2d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x000000019511ceec start_wqthread + 0
Thread 8:
0 libsystem_kernel.dylib 0x0000000195083c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019511d2d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x000000019511ceec start_wqthread + 0
Thread 9 name: AFNetworking
Thread 9:
0 libsystem_kernel.dylib 0x0000000195068e0c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000195068c84 mach_msg + 68
2 CoreFoundation 0x0000000182bab720 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000182ba9674 __CFRunLoopRun + 936
4 CoreFoundation 0x0000000182ad52d0 CFRunLoopRunSpecific + 392
5 Foundation 0x0000000183a0d4c4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 312
6 Foundation 0x0000000183a6780c -[NSRunLoop(NSRunLoop) run] + 92
7 FAAP 0x00000001000e12c8 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:171)
8 Foundation 0x0000000183af5db4 __NSThread__main__ + 1068
9 libsystem_pthread.dylib 0x000000019511fdc4 _pthread_body + 160
10 libsystem_pthread.dylib 0x000000019511fd20 _pthread_start + 156
11 libsystem_pthread.dylib 0x000000019511cef4 thread_start + 0
Thread 10 name: com.apple.NSURLConnectionLoader
Thread 10:
0 libsystem_kernel.dylib 0x0000000195068e0c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000195068c84 mach_msg + 68
2 CoreFoundation 0x0000000182bab720 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000182ba9674 __CFRunLoopRun + 936
4 CoreFoundation 0x0000000182ad52d0 CFRunLoopRunSpecific + 392
5 CFNetwork 0x00000001825b2590 +[NSURLConnection(Loader) _resourceLoadLoop:] + 436
6 Foundation 0x0000000183af5db4 __NSThread__main__ + 1068
7 libsystem_pthread.dylib 0x000000019511fdc4 _pthread_body + 160
8 libsystem_pthread.dylib 0x000000019511fd20 _pthread_start + 156
9 libsystem_pthread.dylib 0x000000019511cef4 thread_start + 0
Thread 11 name: JavaScriptCore::BlockFree
Thread 11:
0 libsystem_kernel.dylib 0x0000000195083078 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x000000019511ef28 _pthread_cond_wait + 620
2 libc++.1.dylib 0x000000019403cd5c std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 136
3 JavaScriptCore 0x0000000184232574 JSC::BlockAllocator::waitForDuration(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000l> >) + 176
4 JavaScriptCore 0x00000001840c9588 JSC::BlockAllocator::blockFreeingThreadMain() + 76
5 JavaScriptCore 0x00000001840c4b9c WTF::wtfThreadEntryPoint(void*) + 20
6 libsystem_pthread.dylib 0x000000019511fdc4 _pthread_body + 160
7 libsystem_pthread.dylib 0x000000019511fd20 _pthread_start + 156
8 libsystem_pthread.dylib 0x000000019511cef4 thread_start + 0
Thread 12 name: JavaScriptCore::Marking
Thread 12:
0 libsystem_kernel.dylib 0x0000000195083078 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x000000019511ef28 _pthread_cond_wait + 620
2 libc++.1.dylib 0x000000019403ccac std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 52
3 JavaScriptCore 0x0000000184372edc JSC::GCThread::waitForNextPhase() + 152
4 JavaScriptCore 0x0000000184372f80 JSC::GCThread::gcThreadMain() + 88
5 JavaScriptCore 0x00000001840c4b9c WTF::wtfThreadEntryPoint(void*) + 20
6 libsystem_pthread.dylib 0x000000019511fdc4 _pthread_body + 160
7 libsystem_pthread.dylib 0x000000019511fd20 _pthread_start + 156
8 libsystem_pthread.dylib 0x000000019511cef4 thread_start + 0
Thread 13 name: com.apple.CFSocket.private
Thread 13:
0 libsystem_kernel.dylib 0x0000000195083498 __select + 8
1 CoreFoundation 0x0000000182bb1124 __CFSocketManager + 668
2 libsystem_pthread.dylib 0x000000019511fdc4 _pthread_body + 160
3 libsystem_pthread.dylib 0x000000019511fd20 _pthread_start + 156
4 libsystem_pthread.dylib 0x000000019511cef4 thread_start + 0
Thread 14 name: WebCore: CFNetwork Loader
Thread 14:
0 libsystem_kernel.dylib 0x0000000195068e0c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000195068c84 mach_msg + 68
2 CoreFoundation 0x0000000182bab720 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000182ba9674 __CFRunLoopRun + 936
4 CoreFoundation 0x0000000182ad52d0 CFRunLoopRunSpecific + 392
5 WebCore 0x00000001919884ec WebCore::runLoaderThread(void*) + 284
6 JavaScriptCore 0x00000001840c4b9c WTF::wtfThreadEntryPoint(void*) + 20
7 libsystem_pthread.dylib 0x000000019511fdc4 _pthread_body + 160
8 libsystem_pthread.dylib 0x000000019511fd20 _pthread_start + 156
9 libsystem_pthread.dylib 0x000000019511cef4 thread_start + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x00000000000084aa x3: 0x00000001950bda74
x4: 0x000000016fd666e8 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000000 x9: 0x00000001702a66c8 x10: 0x0000000000000000 x11: 0x0000000000000000
x12: 0x0000000000000023 x13: 0x0000000000000023 x14: 0x0000000000003fff x15: 0x0000000000000000
x16: 0xffffffffffffffc3 x17: 0x00000001948da6b8 x18: 0x0000000000000000 x19: 0x0000000044000000
x20: 0x000000016fd66b3b x21: 0x0000000000000000 x22: 0x0000000000000000 x23: 0x00000001701439d0
x24: 0x00000001990b0780 x25: 0x000000016fd66b40 x26: 0x00000001990b07c0 x27: 0x0000000000000000
x28: 0x46b2400000000000 fp: 0x000000016fd66b00 lr: 0x0000000194f3d954
sp: 0x000000016fd66af0 pc: 0x0000000000000000 cpsr: 0x80000000

iOS 8 crash log (AVPlayer)

I am unable to diagnose this crash log, which occurs when using the AVPlayer class-- sometimes it happens right away, and sometimes it happens when trying to play the 2nd or 3rd video..
Incident Identifier: 4E82E665-228D-4A97-8B85-6F5B65E2B457
CrashReporter Key: 46be3f0cd4d380b2ce08823fedd6d6d22c38df2f
Hardware Model: iPad4,2
Process: App [2433]
Path: /private/var/mobile/Containers/Bundle/Application/66E1EFE7-1BD0-4CE3-8FEF-47D58C36ADF7/App.app/App
Identifier: SXX.app
Version: 1.3 (1.3)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-03-31 15:59:07.361 -0700
Launch Time: 2015-03-31 15:57:50.272 -0700
OS Version: iOS 8.2 (12D508)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 6
Last Exception Backtrace:
0 CoreFoundation 0x18530a530 __exceptionPreprocess + 132
1 libobjc.A.dylib 0x1964280e4 objc_exception_throw + 60
2 CoreFoundation 0x18530a470 +[NSException raise:format:] + 128
3 Foundation 0x1861865e0 NSKVODeallocate + 340
4 AVFoundation 0x183b27b38 __destroy_helper_block_1474 + 28
5 libsystem_blocks.dylib 0x196ad1910 _Block_release + 256
6 libdispatch.dylib 0x196a79954 _dispatch_client_callout + 16
7 libdispatch.dylib 0x196a7e20c _dispatch_main_queue_callback_4CF + 1608
8 CoreFoundation 0x1852c22ec __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
9 CoreFoundation 0x1852c0394 __CFRunLoopRun + 1492
10 CoreFoundation 0x1851ed1f4 CFRunLoopRunSpecific + 396
11 GraphicsServices 0x18e51f6fc GSEventRunModal + 168
12 UIKit 0x189b7e10c UIApplicationMain + 1488
13 App 0x10001d4ac main (main.m:8)
14 libdyld.dylib 0x196aa6a08 start + 4
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x0000000196bbf594 __semwait_signal_nocancel + 8
1 libsystem_c.dylib 0x0000000196aef1a0 nanosleep$NOCANCEL + 200
2 libsystem_c.dylib 0x0000000196b142b8 usleep$NOCANCEL + 64
3 libsystem_c.dylib 0x0000000196b36b1c abort + 116
4 App 0x0000000100042b50 uncaught_exception_handler + 32
5 CoreFoundation 0x000000018530a8ec __handleUncaughtException + 688
6 libobjc.A.dylib 0x00000001964283b0 _objc_terminate() + 112
7 libc++abi.dylib 0x0000000195c25bb0 std::__terminate(void (*)()) + 12
8 libc++abi.dylib 0x0000000195c25474 __cxa_throw + 132
9 libobjc.A.dylib 0x0000000196428200 objc_exception_throw + 344
10 CoreFoundation 0x000000018530a46c +[NSException raise:format:] + 124
11 Foundation 0x00000001861865dc NSKVODeallocate + 336
12 AVFoundation 0x0000000183b27b34 __destroy_helper_block_1474 + 24
13 libsystem_blocks.dylib 0x0000000196ad190c _Block_release + 252
14 libdispatch.dylib 0x0000000196a79950 _dispatch_client_callout + 12
15 libdispatch.dylib 0x0000000196a7e208 _dispatch_main_queue_callback_4CF + 1604
16 CoreFoundation 0x00000001852c22e8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
17 CoreFoundation 0x00000001852c0390 __CFRunLoopRun + 1488
18 CoreFoundation 0x00000001851ed1f0 CFRunLoopRunSpecific + 392
19 GraphicsServices 0x000000018e51f6f8 GSEventRunModal + 164
20 UIKit 0x0000000189b7e108 UIApplicationMain + 1484
21 App 0x000000010001d4a8 main (main.m:8)
22 libdyld.dylib 0x0000000196aa6a04 start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000196ba4c24 kevent64 + 8
1 libdispatch.dylib 0x0000000196a89e6c _dispatch_mgr_invoke + 272
2 libdispatch.dylib 0x0000000196a7b998 _dispatch_mgr_thread + 48
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x0000000196ba4e0c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000196ba4c84 mach_msg + 68
2 CoreFoundation 0x00000001852c2214 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x00000001852c0168 __CFRunLoopRun + 936
4 CoreFoundation 0x00000001851ed1f0 CFRunLoopRunSpecific + 392
5 CFNetwork 0x0000000184cee2a0 +[NSURLConnection(Loader) _resourceLoadLoop:] + 436
6 Foundation 0x0000000186202304 __NSThread__main__ + 1068
7 libsystem_pthread.dylib 0x0000000196c5bdc4 _pthread_body + 160
8 libsystem_pthread.dylib 0x0000000196c5bd20 _pthread_start + 156
9 libsystem_pthread.dylib 0x0000000196c58ef4 thread_start + 0
Thread 3:
0 libsystem_kernel.dylib 0x0000000196bbfc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000196c592d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000196c58eec start_wqthread + 0
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x0000000196bbf498 __select + 8
1 CoreFoundation 0x00000001852c7c0c __CFSocketManager + 656
2 libsystem_pthread.dylib 0x0000000196c5bdc4 _pthread_body + 160
3 libsystem_pthread.dylib 0x0000000196c5bd20 _pthread_start + 156
4 libsystem_pthread.dylib 0x0000000196c58ef4 thread_start + 0
Thread 5 name: com.apple.coremedia.player.remote
Thread 5:
0 libsystem_kernel.dylib 0x0000000196ba4e0c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000196ba4c84 mach_msg + 68
2 MediaToolbox 0x00000001876efe7c FigExpressNotificationThread + 100
3 CoreMedia 0x0000000185b22028 figThreadMain + 244
4 libsystem_pthread.dylib 0x0000000196c5bdc4 _pthread_body + 160
5 libsystem_pthread.dylib 0x0000000196c5bd20 _pthread_start + 156
6 libsystem_pthread.dylib 0x0000000196c58ef4 thread_start + 0
Thread 6 Crashed:
0 libsystem_kernel.dylib 0x0000000196bbfc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000196c592d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000196c58eec start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x0000000196bbfc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000196c592d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000196c58eec start_wqthread + 0
Thread 8 name: com.apple.coremedia.player.async
Thread 8:
0 libsystem_kernel.dylib 0x0000000196ba4e48 semaphore_wait_trap + 8
1 libdispatch.dylib 0x0000000196a87f3c _dispatch_semaphore_wait_slow + 252
2 MediaToolbox 0x00000001876e95bc fpa_AsyncMovieControlThread + 1952
3 CoreMedia 0x0000000185b22028 figThreadMain + 244
4 libsystem_pthread.dylib 0x0000000196c5bdc4 _pthread_body + 160
5 libsystem_pthread.dylib 0x0000000196c5bd20 _pthread_start + 156
6 libsystem_pthread.dylib 0x0000000196c58ef4 thread_start + 0
Thread 9 name: com.apple.coremedia.player.async
Thread 9:
0 libsystem_kernel.dylib 0x0000000196ba4e48 semaphore_wait_trap + 8
1 libdispatch.dylib 0x0000000196a87f3c _dispatch_semaphore_wait_slow + 252
2 MediaToolbox 0x00000001876e95bc fpa_AsyncMovieControlThread + 1952
3 CoreMedia 0x0000000185b22028 figThreadMain + 244
4 libsystem_pthread.dylib 0x0000000196c5bdc4 _pthread_body + 160
5 libsystem_pthread.dylib 0x0000000196c5bd20 _pthread_start + 156
6 libsystem_pthread.dylib 0x0000000196c58ef4 thread_start + 0
Thread 10:
0 libsystem_kernel.dylib 0x0000000196bbfc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000196c592d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000196c58eec start_wqthread + 0
Thread 11:
0 libsystem_kernel.dylib 0x0000000196bbfc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000196c592d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000196c58eec start_wqthread + 0
Thread 6 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000004 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000002d1f x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000000 x9: 0x6800a3c4679d3eb0 x10: 0x0000000000000015 x11: 0x0000000000000000
x12: 0x000000012d0ea200 x13: 0x000000019ab850d8 x14: 0x0000000000000000 x15: 0x0000000000000001
x16: 0x0000000000000170 x17: 0x00000001964426b8 x18: 0x0000000000000000 x19: 0x000000010469c000
x20: 0x0000000000000009 x21: 0x00000000800002ff x22: 0x0000000000009f0f x23: 0x0000000000010000
x24: 0x000000019abab000 x25: 0x0000000000000000 x26: 0x0000000000000000 x27: 0x0000000000000000
x28: 0x0000000000000000 fp: 0x000000010469bf70 lr: 0x0000000196c592dc
sp: 0x000000010469bf10 pc: 0x0000000196bbfc78 cpsr: 0x40000000
Crash logs like this can be unhelpful. The most likely culprit is a nil pointer somewhere in your code. You may have no option but to step through your code with a debugger making sure that all your variables have the values you expect them to have.

Resources