Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.84 KB | None | 0 0
  1. let params = [
  2. ApiParams.ACTION : "login",
  3. ApiParams.LoginParams.USER : user,
  4. ApiParams.LoginParams.PASSWORD : password,
  5. ]
  6.  
  7. Alamofire.request("http://(serverURL)/AppSrv", method: .get, parameters: params).responseJSON { response in
  8. switch response.result {
  9. case .success(let value):
  10. //JSON raiz
  11. let json = JSON(value)
  12.  
  13. for (key, value) in json.acceptingSigleValueAsArray {
  14. log("(key) : (value)")
  15. }
  16.  
  17.  
  18. if let successCallback = successCallback {
  19. successCallback(json)
  20. }
  21.  
  22.  
  23. case .failure(let error):
  24. log(error.localizedDescription)
  25. if let failureCallback = failureCallback {
  26. failureCallback(error)
  27. }
  28. }
  29. }
  30. }
  31.  
  32. Incident Identifier: ****
  33. CrashReporter Key: *****
  34. Hardware Model: iPad5,2
  35. Process: ****
  36. Path: ****
  37. Identifier: ****
  38. Version: 1.42 (1.2.3a)
  39. Code Type: ARM-64 (Native)
  40. Role: Foreground
  41. Parent Process: launchd [1]
  42. Coalition: ****
  43.  
  44.  
  45. Date/Time: 2016-10-21 10:16:08.9811 +0200
  46. Launch Time: 2016-10-21 10:16:06.2504 +0200
  47. OS Version: iPhone OS 10.0.2 (14A456)
  48. Report Version: 104
  49.  
  50. Exception Type: EXC_BAD_ACCESS (SIGSEGV)
  51. Exception Subtype: KERN_INVALID_ADDRESS at 0x000000059480bec8
  52. Termination Signal: Segmentation fault: 11
  53. Termination Reason: Namespace SIGNAL, Code 0xb
  54. Terminating Process: exc handler [0]
  55. Triggered by Thread: 0
  56.  
  57. Filtered syslog:
  58. None found
  59.  
  60. Thread 0 name: Dispatch queue: com.apple.main-thread
  61. Thread 0 Crashed:
  62. 0 libswiftCore.dylib 0x0000000100e19b6c 0x100c38000 + 1973100
  63. 1 myapp 0x00000001000c4d88 static ServerManager.(pingOnServerUrl(serverUrl : String, successCallback : (Int64) -> ()?, failureCallback : (Error) -> ()?) -> ()).(closure #1) (ServerManager.swift:0)
  64. 2 Alamofire 0x00000001003aca84 specialized DataRequest.(response<A where ...> (queue : DispatchQueue?, responseSerializer : A, completionHandler : (DataResponse<A.SerializedObject>) -> ()) -> Self).(closure #1).(closure #1) (ResponseSerialization.swift:0)
  65. 3 libdispatch.dylib 0x00000001889f1200 _dispatch_call_block_and_release + 24
  66. 4 libdispatch.dylib 0x00000001889f11c0 _dispatch_client_callout + 16
  67. 5 libdispatch.dylib 0x00000001889f5d6c _dispatch_main_queue_callback_4CF + 1000
  68. 6 CoreFoundation 0x0000000189b15f2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
  69. 7 CoreFoundation 0x0000000189b13b18 __CFRunLoopRun + 1660
  70. 8 CoreFoundation 0x0000000189a42048 CFRunLoopRunSpecific + 444
  71. 9 GraphicsServices 0x000000018b4c5198 GSEventRunModal + 180
  72. 10 UIKit 0x000000018fa15628 -[UIApplication _run] + 684
  73. 11 UIKit 0x000000018fa10360 UIApplicationMain + 208
  74. 12 myapp 0x00000001000bf024 main (AppDelegate.swift:16)
  75. 13 libdyld.dylib 0x0000000188a245b8 start + 4
  76.  
  77. Thread 1:
  78. 0 libsystem_kernel.dylib 0x0000000188b36a88 __workq_kernreturn + 8
  79. 1 libsystem_pthread.dylib 0x0000000188bf936c _pthread_wqthread + 1452
  80. 2 libsystem_pthread.dylib 0x0000000188bf8db4 start_wqthread + 4
  81.  
  82. Thread 2:
  83. 0 libsystem_kernel.dylib 0x0000000188b36a88 __workq_kernreturn + 8
  84. 1 libsystem_pthread.dylib 0x0000000188bf936c _pthread_wqthread + 1452
  85. 2 libsystem_pthread.dylib 0x0000000188bf8db4 start_wqthread + 4
  86.  
  87. Thread 3:
  88. 0 libsystem_pthread.dylib 0x0000000188bf8db0 start_wqthread + 0
  89.  
  90. Thread 4:
  91. 0 libsystem_pthread.dylib 0x0000000188bf8db0 start_wqthread + 0
  92.  
  93. Thread 5:
  94. 0 libsystem_kernel.dylib 0x0000000188b36a88 __workq_kernreturn + 8
  95. 1 libsystem_pthread.dylib 0x0000000188bf936c _pthread_wqthread + 1452
  96. 2 libsystem_pthread.dylib 0x0000000188bf8db4 start_wqthread + 4
  97.  
  98. Thread 6 name: com.apple.uikit.eventfetch-thread
  99. Thread 6:
  100. 0 libsystem_kernel.dylib 0x0000000188b1816c mach_msg_trap + 8
  101. 1 libsystem_kernel.dylib 0x0000000188b17fdc mach_msg + 72
  102. 2 CoreFoundation 0x0000000189b15cec __CFRunLoopServiceMachPort + 192
  103. 3 CoreFoundation 0x0000000189b13908 __CFRunLoopRun + 1132
  104. 4 CoreFoundation 0x0000000189a42048 CFRunLoopRunSpecific + 444
  105. 5 Foundation 0x000000018a550b1c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
  106. 6 Foundation 0x000000018a57160c -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
  107. 7 UIKit 0x000000019038ac7c -[UIEventFetcher threadMain] + 136
  108. 8 Foundation 0x000000018a64e50c __NSThread__start__ + 1024
  109. 9 libsystem_pthread.dylib 0x0000000188bfb860 _pthread_body + 240
  110. 10 libsystem_pthread.dylib 0x0000000188bfb770 _pthread_body + 0
  111. 11 libsystem_pthread.dylib 0x0000000188bf8dbc thread_start + 4
  112.  
  113. Thread 7 name: com.apple.NSURLConnectionLoader
  114. Thread 7:
  115. 0 libsystem_kernel.dylib 0x0000000188b1816c mach_msg_trap + 8
  116. 1 libsystem_kernel.dylib 0x0000000188b17fdc mach_msg + 72
  117. 2 CoreFoundation 0x0000000189b15cec __CFRunLoopServiceMachPort + 192
  118. 3 CoreFoundation 0x0000000189b13908 __CFRunLoopRun + 1132
  119. 4 CoreFoundation 0x0000000189a42048 CFRunLoopRunSpecific + 444
  120. 5 CFNetwork 0x000000018a22fcec +[NSURLConnection(Loader) _resourceLoadLoop:] + 336
  121. 6 Foundation 0x000000018a64e50c __NSThread__start__ + 1024
  122. 7 libsystem_pthread.dylib 0x0000000188bfb860 _pthread_body + 240
  123. 8 libsystem_pthread.dylib 0x0000000188bfb770 _pthread_body + 0
  124. 9 libsystem_pthread.dylib 0x0000000188bf8dbc thread_start + 4
  125.  
  126. Thread 0 crashed with ARM Thread State (64-bit):
  127. x0: 0x0000000170246c30 x1: 0x0000000170246c30 x2: 0x0000000000000008 x3: 0x0000000188b7c250
  128. x4: 0x0000000100e099a4 x5: 0x0000000100df14f8 x6: 0x0000000000000065 x7: 0x0000000170287c78
  129. x8: 0x000000059480bea8 x9: 0x0000000ffffffff8 x10: 0x0000000000000001 x11: 0xbaddc0dedeadbead
  130. x12: 0x0000000000000177 x13: 0x0000000000000177 x14: 0x0000000100be6a30 x15: 0x0000000000000000
  131. x16: 0x0000000100e19b54 x17: 0xb000000000000003 x18: 0x0000000000000000 x19: 0x0000000000000000
  132. x20: 0x0000000100e94060 x21: 0x00000001ae195ef8 x22: 0x000000017046cf40 x23: 0xb000000000000003
  133. x24: 0x0000000000000000 x25: 0x0000000000000000 x26: 0x0000000000000004 x27: 0x0000000100be6a30
  134. x28: 0x0000000170246c30 fp: 0x000000016fd46b60 lr: 0x00000001000c4d88
  135. sp: 0x000000016fd46870 pc: 0x0000000100e19b6c cpsr: 0x20000000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement