{"action":"created","issue":{"url":"https://api.github.com/repos/virl/underdark-ios/issues/1","labels_url":"https://api.github.com/repos/virl/underdark-ios/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/virl/underdark-ios/issues/1/comments","events_url":"https://api.github.com/repos/virl/underdark-ios/issues/1/events","html_url":"https://github.com/virl/underdark-ios/issues/1","id":114986954,"number":1,"title":"Crashed","user":{"login":"kelvinji2009","id":881201,"avatar_url":"https://avatars.githubusercontent.com/u/881201?v=3","gravatar_id":"","url":"https://api.github.com/users/kelvinji2009","html_url":"https://github.com/kelvinji2009","followers_url":"https://api.github.com/users/kelvinji2009/followers","following_url":"https://api.github.com/users/kelvinji2009/following{/other_user}","gists_url":"https://api.github.com/users/kelvinji2009/gists{/gist_id}","starred_url":"https://api.github.com/users/kelvinji2009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelvinji2009/subscriptions","organizations_url":"https://api.github.com/users/kelvinji2009/orgs","repos_url":"https://api.github.com/users/kelvinji2009/repos","events_url":"https://api.github.com/users/kelvinji2009/events{/privacy}","received_events_url":"https://api.github.com/users/kelvinji2009/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-11-04T07:06:03Z","updated_at":"2015-11-17T03:40:37Z","closed_at":null,"body":"#How to reproduce the bug\r\n\r\n//run android app and iOS app, auto discovery and auto connect properly\r\n\r\n//make android phone suspended and keep iOS app run foreground->iOS app `Terminating app due to uncaught exception 'NSInvalidArgumentException'`\r\n\r\n2015-11-04 14:49:38.637 UDApp[712:253935] -[__NSArrayM repeats]: unrecognized selector sent to instance 0x144580920\r\n2015-11-04 14:49:38.644 UDApp[712:253935] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM repeats]: unrecognized selector sent to instance 0x144580920'\r\n*** First throw call stack:\r\n(0x185c48f48 0x19a70bf80 0x185c4fc5c 0x185c4cc00 0x185b50cac 0x100148048 0x100147e64 0x1000fcf1c 0x100127ca8 0x101345ca8 0x101345c68 0x101352780 0x101349958 0x101354898 0x101354590 0x19b13d470 0x19b13d020)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException\r\n(lldb) \r\n\r\n//revoke android app to foreground, rerun iOS app->the iOS app goes to dead connection loop and then crashed\r\n\r\n//log\r\nnodeId=4334988448390341065\r\ntransport started.\r\n\r\nlink connected.\r\n++++nodeId=7491551514539095048\r\nlink connected.\r\n++++nodeId=1432052332777346693\r\nlink disconnected.\r\n----nodeId=7491551514539095048\r\nlink connected.\r\n++++nodeId=6085572795618208438\r\nlink disconnected.\r\n----nodeId=6085572795618208438\r\nlink connected.\r\n++++nodeId=7491551514539095048\r\nlink connected.\r\n++++nodeId=6085572795618208438\r\nlink disconnected.\r\n----nodeId=7491551514539095048\r\nlink disconnected.\r\n----nodeId=6085572795618208438\r\nlink connected.\r\n++++nodeId=6085572795618208438\r\nlink connected.\r\n++++nodeId=7491551514539095048\r\nlink disconnected.\r\n----nodeId=6085572795618208438\r\nlink disconnected.\r\n----nodeId=7491551514539095048\r\nlink connected.\r\n++++nodeId=6085572795618208438\r\nlink disconnected.\r\n----nodeId=6085572795618208438\r\nlink connected.\r\n++++nodeId=7491551514539095048\r\nlink disconnected.\r\n----nodeId=7491551514539095048\r\nlink connected.\r\n++++nodeId=6085572795618208438\r\nlink disconnected.\r\n----nodeId=6085572795618208438\r\nlink connected.\r\n++++nodeId=7491551514539095048\r\nlink disconnected.\r\n----nodeId=7491551514539095048\r\nlink connected.\r\n++++nodeId=7491551514539095048\r\nlink connected.\r\n++++nodeId=6085572795618208438\r\nlink disconnected.\r\n----nodeId=7491551514539095048\r\nlink disconnected.\r\n----nodeId=6085572795618208438\r\nlink connected.\r\n++++nodeId=7491551514539095048\r\nlink connected.\r\n++++nodeId=6085572795618208438\r\nlink disconnected.\r\n----nodeId=6085572795618208438\r\nlink disconnected.\r\n----nodeId=7491551514539095048\r\nlink connected.\r\n++++nodeId=7491551514539095048\r\nlink disconnected.\r\n----nodeId=7491551514539095048\r\nlink connected.\r\n++++nodeId=7491551514539095048\r\nlink disconnected.\r\n----nodeId=7491551514539095048\r\nlink connected.\r\n++++nodeId=7491551514539095048\r\nlink disconnected.\r\n----nodeId=7491551514539095048\r\nlink connected.\r\n++++nodeId=7491551514539095048\r\nlink disconnected.\r\n----nodeId=7491551514539095048\r\nlink connected.\r\n++++nodeId=7491551514539095048\r\nlink disconnected.\r\n----nodeId=7491551514539095048\r\nlink connected.\r\n++++nodeId=7491551514539095048\r\nlink disconnected.\r\n----nodeId=7491551514539095048\r\n(lldb) \r\n\r\n\r\nThread 12Queue : Underdark Transport (serial)\r\n#0\t0x000000019a71dbd0 in objc_msgSend ()\r\n#11\t0x000000019b13d470 in _pthread_wqthread ()\r\nEnqueued from com.apple.root.default-qos.overcommit (Thread 6)Queue : com.apple.root.default-qos.overcommit (serial)\r\n#0\t0x00000001013e15f0 in _dispatch_barrier_async_f_slow ()\r\n#22\t0x000000019b13d028 in thread_start ()\r\n\r\n\r\nlibobjc.A.dylib`objc_msgSend:\r\n    0x19a71dbc0 <+0>:   cmp    x0, #0\r\n    0x19a71dbc4 <+4>:   b.le   0x19a71dc2c               ; <+108>\r\n    0x19a71dbc8 <+8>:   ldr    x13, [x0]\r\n    0x19a71dbcc <+12>:  and    x9, x13, #0x1fffffff8\r\n->  0x19a71dbd0 <+16>:  ldp    x10, x11, [x9, #16]\r\n    0x19a71dbd4 <+20>:  and    w12, w1, w11\r\n    0x19a71dbd8 <+24>:  add    x12, x10, x12, lsl #4\r\n    0x19a71dbdc <+28>:  ldp    x16, x17, [x12]\r\n    0x19a71dbe0 <+32>:  cmp    x16, x1\r\n    0x19a71dbe4 <+36>:  b.ne   0x19a71dbec               ; <+44>\r\n    0x19a71dbe8 <+40>:  br     x17\r\n    0x19a71dbec <+44>:  cbz    x16, 0x19a71dd80          ; _objc_msgSend_uncached_impcache\r\n    0x19a71dbf0 <+48>:  cmp    x12, x10\r\n    0x19a71dbf4 <+52>:  b.eq   0x19a71dc00               ; <+64>\r\n    0x19a71dbf8 <+56>:  ldp    x16, x17, [x12, #-16]!\r\n    0x19a71dbfc <+60>:  b      0x19a71dbe0               ; <+32>\r\n    0x19a71dc00 <+64>:  add    x12, x12, w11, uxtw #4\r\n    0x19a71dc04 <+68>:  ldp    x16, x17, [x12]\r\n    0x19a71dc08 <+72>:  cmp    x16, x1\r\n    0x19a71dc0c <+76>:  b.ne   0x19a71dc14               ; <+84>\r\n    0x19a71dc10 <+80>:  br     x17\r\n    0x19a71dc14 <+84>:  cbz    x16, 0x19a71dd80          ; _objc_msgSend_uncached_impcache\r\n    0x19a71dc18 <+88>:  cmp    x12, x10\r\n    0x19a71dc1c <+92>:  b.eq   0x19a71dc28               ; <+104>\r\n    0x19a71dc20 <+96>:  ldp    x16, x17, [x12, #-16]!\r\n    0x19a71dc24 <+100>: b      0x19a71dc08               ; <+72>\r\n    0x19a71dc28 <+104>: b      0x19a71dd80               ; _objc_msgSend_uncached_impcache\r\n    0x19a71dc2c <+108>: b.eq   0x19a71dc44               ; <+132>\r\n    0x19a71dc30 <+112>: adrp   x10, 29364\r\n    0x19a71dc34 <+116>: add    x10, x10, #816\r\n    0x19a71dc38 <+120>: lsr    x11, x0, #60\r\n    0x19a71dc3c <+124>: ldr    x9, [x10, x11, lsl #3]\r\n    0x19a71dc40 <+128>: b      0x19a71dbd0               ; <+16>\r\n    0x19a71dc44 <+132>: movz   x1, #0\r\n    0x19a71dc48 <+136>: movi   d0, #0000000000000000\r\n    0x19a71dc4c <+140>: movi   d1, #0000000000000000\r\n    0x19a71dc50 <+144>: movi   d2, #0000000000000000\r\n    0x19a71dc54 <+148>: movi   d3, #0000000000000000\r\n    0x19a71dc58 <+152>: ret    \r\n    0x19a71dc5c <+156>: nop    "},"comment":{"url":"https://api.github.com/repos/virl/underdark-ios/issues/comments/157258881","html_url":"https://github.com/virl/underdark-ios/issues/1#issuecomment-157258881","issue_url":"https://api.github.com/repos/virl/underdark-ios/issues/1","id":157258881,"user":{"login":"virl","id":2991028,"avatar_url":"https://avatars.githubusercontent.com/u/2991028?v=3","gravatar_id":"","url":"https://api.github.com/users/virl","html_url":"https://github.com/virl","followers_url":"https://api.github.com/users/virl/followers","following_url":"https://api.github.com/users/virl/following{/other_user}","gists_url":"https://api.github.com/users/virl/gists{/gist_id}","starred_url":"https://api.github.com/users/virl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virl/subscriptions","organizations_url":"https://api.github.com/users/virl/orgs","repos_url":"https://api.github.com/users/virl/repos","events_url":"https://api.github.com/users/virl/events{/privacy}","received_events_url":"https://api.github.com/users/virl/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T03:40:37Z","updated_at":"2015-11-17T03:40:37Z","body":"@kelvinji2009 I know. Currently I'm totally rewriting the iOS connection engine — it will work much better soon."}}