{"action":"created","issue":{"url":"https://api.github.com/repos/west0r/SwiftyVK/issues/81","repository_url":"https://api.github.com/repos/west0r/SwiftyVK","labels_url":"https://api.github.com/repos/west0r/SwiftyVK/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/west0r/SwiftyVK/issues/81/comments","events_url":"https://api.github.com/repos/west0r/SwiftyVK/issues/81/events","html_url":"https://github.com/west0r/SwiftyVK/issues/81","id":250036373,"number":81,"title":"Crash when calling cancel() on RequestExecution","user":{"login":"ilyakooo0","id":6209627,"avatar_url":"https://avatars3.githubusercontent.com/u/6209627?v=4","gravatar_id":"","url":"https://api.github.com/users/ilyakooo0","html_url":"https://github.com/ilyakooo0","followers_url":"https://api.github.com/users/ilyakooo0/followers","following_url":"https://api.github.com/users/ilyakooo0/following{/other_user}","gists_url":"https://api.github.com/users/ilyakooo0/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyakooo0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyakooo0/subscriptions","organizations_url":"https://api.github.com/users/ilyakooo0/orgs","repos_url":"https://api.github.com/users/ilyakooo0/repos","events_url":"https://api.github.com/users/ilyakooo0/events{/privacy}","received_events_url":"https://api.github.com/users/ilyakooo0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-14T13:49:21Z","updated_at":"2017-08-15T05:40:21Z","closed_at":null,"body":"last call stack element: SendTask.swift:\r\n![screen shot 2017-08-14 at 4 40 48 pm](https://user-images.githubusercontent.com/6209627/29274133-653da746-810f-11e7-9472-943e26a22375.png)\r\n\r\nSendTask instance:\r\n\r\n```\r\n(SwiftyVK.SendTask) $R1 = 0x00000001c4158aa0 {\r\n  Foundation.Operation = {\r\n    baseNSObject@0 = {\r\n      isa = SwiftyVK.SendTask\r\n    }\r\n    _private = 0x00000001c41ee500\r\n    _private1 = 0\r\n    _private1b = 0\r\n  }\r\n  delegate = 0x00000001c400e3e1 {\r\n    Foundation.Operation = {\r\n      ObjectiveC.NSObject = {}\r\n    }\r\n    id = -5980780305118396192\r\n    log = {\r\n      _buffer = {\r\n        _storage = (rawValue = 0x00baddaf309da4be)\r\n      }\r\n    }\r\n    config = {\r\n      timeout = 1.4916681560515179E-154\r\n      maxAttempts = 17535685\r\n      httpMethod = GET\r\n      parameters = {}\r\n      catchErrors = false\r\n      logToConsole = false\r\n      nextRequest = 0x2d6c393574647563\r\n      method = unable to read data\r\n      customUrl = unable to read data\r\n      media = 0 values {}\r\n    }\r\n    semaphore = 0x0200000100000000 {\r\n      Dispatch.DispatchObject = {\r\n        os_object.OS_object = {\r\n          ObjectiveC.NSObject = {}\r\n        }\r\n      }\r\n    }\r\n    sendAttempts = 12904\r\n    currentSend = \"\"\r\n    result = some {\r\n      request = 0x80baddaf309da4be\r\n      error = (instance_type = 0x0000000001c40108) {\r\n        instance_type = 0x0000000001c40108\r\n      }\r\n      response = some {\r\n        rawArray = {\r\n          _buffer = {\r\n            _storage = (rawValue = 0x0000000001c626a5)\r\n          }\r\n        }\r\n        rawDictionary = {}\r\n        rawString = \"\"\r\n        rawNumber = 0x0000000100000000 {\r\n          Foundation.NSValue = {\r\n            ObjectiveC.NSObject = {}\r\n          }\r\n        }\r\n        rawNull = <uninitialized>\r\n        rawBool = false\r\n        _type = number\r\n        _error = nil\r\n      }\r\n    }\r\n    successBlock = 0xad00000100000000\r\n    errorBlock = 0x0000000001c400f7\r\n    progressBlock = 0x0000000100000000 {...}\r\n    state = <invalid> (0x0)\r\n  }\r\n  config = {\r\n    timeout = 10\r\n    maxAttempts = 3\r\n    httpMethod = GET\r\n    parameters = 2 key/value pairs {\r\n      [0] = {\r\n        key = useSsl\r\n        value = \"\"\r\n      }\r\n      [1] = {\r\n        key = needPts\r\n        value = \"\"\r\n      }\r\n    }\r\n    catchErrors = true\r\n    logToConsole = false\r\n    nextRequest = nil\r\n    method = \"messages.getLongPollServer\"\r\n    customUrl = \"\"\r\n    media = 0 values {}\r\n  }\r\n  task = nil\r\n  id = 1\r\n  reqId = 32\r\n}\r\n```\r\n\r\nRequest instance:\r\n\r\n```\r\n(SwiftyVK.RequestInstance) $R2 = 0x000000010792b430 {\r\n  Foundation.Operation = {\r\n    ObjectiveC.NSObject = {}\r\n  }\r\n  id = 32\r\n  log = 2 values {\r\n    [0] = \"14/8, 16:34:25: started\"\r\n    [1] = \"14/8, 16:34:25: send 1 of 3 times\"\r\n  }\r\n  config = {\r\n    timeout = 10\r\n    maxAttempts = 3\r\n    httpMethod = GET\r\n    parameters = 2 key/value pairs {\r\n      [0] = {\r\n        key = useSsl\r\n        value = \"\"\r\n      }\r\n      [1] = {\r\n        key = needPts\r\n        value = \"\"\r\n      }\r\n    }\r\n    catchErrors = true\r\n    logToConsole = false\r\n    nextRequest = nil\r\n    method = \"messages.getLongPollServer\"\r\n    customUrl = \"\"\r\n    media = 0 values {}\r\n  }\r\n  semaphore = 0x00000001c02895b0 {\r\n    Dispatch.DispatchObject = {\r\n      os_object.OS_object = {\r\n        ObjectiveC.NSObject = {}\r\n      }\r\n    }\r\n  }\r\n  sendAttempts = 1\r\n  currentSend = 0x00000001c4158aa0 {\r\n    Foundation.Operation = {\r\n      ObjectiveC.NSObject = {}\r\n    }\r\n    delegate = 0x00000001c400e3e1 {\r\n      Foundation.Operation = {\r\n        ObjectiveC.NSObject = {}\r\n      }\r\n      id = -5980780305118396192\r\n      log = {\r\n        _buffer = {\r\n          _storage = (rawValue = 0x00baddaf309da4be)\r\n        }\r\n      }\r\n      config = {\r\n        timeout = 1.4916681560515179E-154\r\n        maxAttempts = 17535685\r\n        httpMethod = GET\r\n        parameters = {}\r\n        catchErrors = false\r\n        logToConsole = false\r\n        nextRequest = 0x2d6c393574647563\r\n        method = unable to read data\r\n        customUrl = unable to read data\r\n        media = 0 values {}\r\n      }\r\n      semaphore = 0x0200000100000000 {\r\n        Dispatch.DispatchObject = {\r\n          os_object.OS_object = {\r\n            ObjectiveC.NSObject = {}\r\n          }\r\n        }\r\n      }\r\n      sendAttempts = 12904\r\n      currentSend = \"\"\r\n      result = some {\r\n        request = 0x80baddaf309da4be\r\n        error = (instance_type = 0x0000000001c40108) {\r\n          instance_type = 0x0000000001c40108\r\n        }\r\n        response = some {\r\n          rawArray = {\r\n            _buffer = {\r\n              _storage = (rawValue = 0x0000000001c626a5)\r\n            }\r\n          }\r\n          rawDictionary = {}\r\n          rawString = \"\"\r\n          rawNumber = 0x0000000100000000 {\r\n            Foundation.NSValue = {\r\n              ObjectiveC.NSObject = {}\r\n            }\r\n          }\r\n          rawNull = <uninitialized>\r\n          rawBool = false\r\n          _type = number\r\n          _error = nil\r\n        }\r\n      }\r\n      successBlock = 0xad00000100000000\r\n      errorBlock = 0x0000000001c400f7\r\n      progressBlock = 0x0000000100000000 {...}\r\n      state = <invalid> (0x0)\r\n    }\r\n    config = {\r\n      timeout = 10\r\n      maxAttempts = 3\r\n      httpMethod = GET\r\n      parameters = 2 key/value pairs {\r\n        [0] = {\r\n          key = useSsl\r\n          value = \"\"\r\n        }\r\n        [1] = {\r\n          key = needPts\r\n          value = \"\"\r\n        }\r\n      }\r\n      catchErrors = true\r\n      logToConsole = false\r\n      nextRequest = nil\r\n      method = \"messages.getLongPollServer\"\r\n      customUrl = \"\"\r\n      media = 0 values {}\r\n    }\r\n    task = nil\r\n    id = 1\r\n    reqId = 32\r\n  }\r\n  result = some {\r\n    request = 0x00000001c000d411 {\r\n      Foundation.Operation = {\r\n        ObjectiveC.NSObject = {}\r\n      }\r\n      id = 29360341\r\n      log = {\r\n        _buffer = {\r\n          _storage = (rawValue = 0x0000000001c02c77)\r\n        }\r\n      }\r\n      config = {\r\n        timeout = -0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000061363668316221582\r\n        maxAttempts = 8123048622420763838\r\n        httpMethod = <invalid> (0xcb)\r\n        parameters = {}\r\n        catchErrors = true\r\n        logToConsole = false\r\n        nextRequest = 0x0000000001c02c77\r\n        method = unable to read data\r\n        customUrl = unable to read data\r\n        media = {\r\n          _buffer = {\r\n            _storage = (rawValue = Builtin.BridgeObject @ )\r\n          }\r\n        }\r\n      }\r\n      semaphore = 0x6900000001c000df {\r\n        Dispatch.DispatchObject = {\r\n          os_object.OS_object = {\r\n            ObjectiveC.NSObject = {}\r\n          }\r\n        }\r\n      }\r\n      sendAttempts = 7146767814009058925\r\n      currentSend = 0x8000000000006d6f {}\r\n      result = some {\r\n        request = 0x0000000001c02c73 {\r\n          Foundation.Operation = {\r\n            ObjectiveC.NSObject = {}\r\n          }\r\n          id = <read memory from 0x1c02c8b failed (0 of 8 bytes read)>\r\n\r\n          log = <read memory from 0x1c02c93 failed (0 of 8 bytes read)>\r\n\r\n          config = {\r\n            timeout = <read memory from 0x1c02c9b failed (0 of 8 bytes read)>\r\n\r\n            maxAttempts = <read memory from 0x1c02ca3 failed (0 of 8 bytes read)>\r\n\r\n            httpMethod = <read memory from 0x1c02cab failed (0 of 1 bytes read)>\r\n\r\n            parameters = <read memory from 0x1c02cb3 failed (0 of 8 bytes read)>\r\n\r\n            catchErrors = true\r\n            logToConsole = true\r\n            nextRequest = <read memory from 0x1c02cc3 failed (0 of 16 bytes read)>\r\n\r\n            method = {\r\n              _core = {\r\n                _baseAddress = <read memory from 0x1c02cd3 failed (0 of 8 bytes read)>\r\n\r\n                _countAndFlags = <read memory from 0x1c02cdb failed (0 of 8 bytes read)>\r\n\r\n                _owner = <read memory from 0x1c02ce3 failed (0 of 8 bytes read)>\r\n\r\n              }\r\n            }\r\n            customUrl = {\r\n              _core = {\r\n                _baseAddress = <read memory from 0x1c02ceb failed (0 of 8 bytes read)>\r\n\r\n                _countAndFlags = <read memory from 0x1c02cf3 failed (0 of 8 bytes read)>\r\n\r\n                _owner = <read memory from 0x1c02cfb failed (0 of 8 bytes read)>\r\n\r\n              }\r\n            }\r\n            media = <read memory from 0x1c02d03 failed (0 of 8 bytes read)>\r\n\r\n          }\r\n          semaphore = <read memory from 0x1c02d0b failed (0 of 8 bytes read)>\r\n\r\n          sendAttempts = <read memory from 0x1c02d13 failed (0 of 8 bytes read)>\r\n\r\n          currentSend = <read memory from 0x1c02d1b failed (0 of 8 bytes read)>\r\n\r\n          result = <read memory from 0x1c02d23 failed (0 of 88 bytes read)>\r\n\r\n          successBlock = <read memory from 0x1c02d7b failed (0 of 16 bytes read)>\r\n\r\n          errorBlock = <read memory from 0x1c02d8b failed (0 of 16 bytes read)>\r\n\r\n          progressBlock = <read memory from 0x1c02d9b failed (0 of 16 bytes read)>\r\n\r\n          state = <read memory from 0x1c02dab failed (0 of 72 bytes read)>\r\n\r\n        }\r\n        error = (instance_type = 0x9000000000000000) {\r\n          instance_type = 0x9000000000000000\r\n        }\r\n        response = some {\r\n          rawArray = {\r\n            _buffer = {\r\n              _storage = (rawValue = 0x0000000001c02c76)\r\n            }\r\n          }\r\n          rawDictionary = {}\r\n          rawString = \"\"\r\n          rawNumber = <uninitialized>\r\n          rawNull = 0x0000000001c02c70 {\r\n            ObjectiveC.NSObject = {}\r\n          }\r\n          rawBool = false\r\n          _type = number\r\n          _error = 0x00000000ff010103 {\r\n            ObjectiveC.NSObject = {}\r\n          }\r\n        }\r\n      }\r\n      successBlock = 0x2a00000000000000\r\n      errorBlock = 0x3000000000000000\r\n      progressBlock = 0xc000000000000000\r\n      state = successed {\r\n        successed = {\r\n          rawArray = {\r\n            _buffer = {\r\n              _storage = (rawValue = 0x5000000000000000)\r\n            }\r\n          }\r\n          rawDictionary = {}\r\n          rawString = unable to read data\r\n          rawNumber = 0x30baddaf309da4be {\r\n            Foundation.NSValue = {\r\n              ObjectiveC.NSObject = {}\r\n            }\r\n          }\r\n          rawNull = 0xad00000001c000c7 \"\f\"\r\n          rawBool = false\r\n          _type = <invalid> (0xa4)\r\n          _error = \"\"\r\n        }\r\n      }\r\n    }\r\n    error = nil\r\n    response = nil\r\n  }\r\n  successBlock = 0x0000000103b1632c golos`partial apply forwarder for closure #1 (SwiftyVK.JSON) -> () in golos.LongPollServices.(getServer in _C2E2D6568FA4F50DD9510FEBE406375F)() -> () at LongPollServices.swift\r\n  errorBlock = nil\r\n  progressBlock = nil\r\n  state = sended\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/west0r/SwiftyVK/issues/comments/322381879","html_url":"https://github.com/west0r/SwiftyVK/issues/81#issuecomment-322381879","issue_url":"https://api.github.com/repos/west0r/SwiftyVK/issues/81","id":322381879,"user":{"login":"west0r","id":8268115,"avatar_url":"https://avatars1.githubusercontent.com/u/8268115?v=4","gravatar_id":"","url":"https://api.github.com/users/west0r","html_url":"https://github.com/west0r","followers_url":"https://api.github.com/users/west0r/followers","following_url":"https://api.github.com/users/west0r/following{/other_user}","gists_url":"https://api.github.com/users/west0r/gists{/gist_id}","starred_url":"https://api.github.com/users/west0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/west0r/subscriptions","organizations_url":"https://api.github.com/users/west0r/orgs","repos_url":"https://api.github.com/users/west0r/repos","events_url":"https://api.github.com/users/west0r/events{/privacy}","received_events_url":"https://api.github.com/users/west0r/received_events","type":"User","site_admin":false},"created_at":"2017-08-15T05:40:21Z","updated_at":"2017-08-15T05:40:21Z","body":"Try v2.0.10"}}
{"actor":{"display_login":"west0r"}}