{"action":"created","issue":{"url":"https://api.github.com/repos/openstf/stf/issues/8","labels_url":"https://api.github.com/repos/openstf/stf/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/openstf/stf/issues/8/comments","events_url":"https://api.github.com/repos/openstf/stf/issues/8/events","html_url":"https://github.com/openstf/stf/issues/8","id":94620226,"number":8,"title":"Disconnection from some minicap failures","user":{"login":"paulirish","id":39191,"avatar_url":"https://avatars.githubusercontent.com/u/39191?v=3","gravatar_id":"","url":"https://api.github.com/users/paulirish","html_url":"https://github.com/paulirish","followers_url":"https://api.github.com/users/paulirish/followers","following_url":"https://api.github.com/users/paulirish/following{/other_user}","gists_url":"https://api.github.com/users/paulirish/gists{/gist_id}","starred_url":"https://api.github.com/users/paulirish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulirish/subscriptions","organizations_url":"https://api.github.com/users/paulirish/orgs","repos_url":"https://api.github.com/users/paulirish/repos","events_url":"https://api.github.com/users/paulirish/events{/privacy}","received_events_url":"https://api.github.com/users/paulirish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-13T02:00:59Z","updated_at":"2015-07-13T04:43:48Z","closed_at":null,"body":"I had two devices up and running. Tried to do adb connect on one of them. It seemed to work but then I had a failure.\r\nLooks like it came from minicap but STF disconnected as a result.\r\n\r\nFeel free to close, but figured you'd appreciate the report.\r\n\r\nCheers guys. (This project is blowing my mind)\r\n\r\n```\r\nINF/device:plugins:connect 80128 [T076001226] New remote ADB connection from ::ffff:127.0.0.1\r\nINF/provider 80100 [*] Found device \"localhost:7403\" (offline)\r\nINF/reaper 80099 [reaper001] Device \"localhost:7403\" is present\r\nINF/provider 80100 [*] Registered device \"localhost:7403\"\r\nINF/provider 80100 [*] Providing all 2 of 3 device(s); ignoring \"localhost:7403\"\r\nINF/provider 80100 [*] Device \"localhost:7403\" is now \"device\" (was \"offline\")\r\nINF/device:support:push 80167 [localhost:7403] Sending output to \"tcp://127.0.0.1:7116\"\r\nINF/device 80167 [localhost:7403] Preparing device\r\nINF/device:support:sub 80167 [localhost:7403] Receiving input from \"tcp://127.0.0.1:7114\"\r\nINF/device:support:sub 80167 [localhost:7403] Subscribing to permanent channel \"*ALL\"\r\nINF/device:support:properties 80167 [localhost:7403] Loading properties\r\nINF/device:support:abi 80167 [localhost:7403] Supports ABIs armeabi-v7a, armeabi\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (jni/minicap/minicap.cpp:176) Received SIGTERM, stopping\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (jni/minicap/minicap.cpp:478) Closing client connection\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:280) Destroying virtual display\"\r\nWRN/device:plugins:screen:stream 80128 [T076001226] Shell keeping minicap running ended unexpectedly\r\nINF/device:plugins:screen:stream 80128 [T076001226] Disconnecting from minicap service\r\nINF/device:plugins:screen:stream 80128 [T076001226] Stopping minicap service\r\nINF/device:plugins:screen:stream 80128 [T076001226] Launching screen service\r\nINF/device:plugins:screen:stream 80128 [T076001226] Connecting to minicap service\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"PID: 19794\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: Using projection 720x1280@377x670/0\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:236) Creating SurfaceComposerClient\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:239) Performing SurfaceComposerClient init check\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:246) Creating virtual display\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:252) Creating buffer queue\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:257) Creating CPU consumer\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:261) Creating frame waiter\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:265) Publishing virtual display\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (jni/minicap/JpgEncoder.cpp:64) Allocating 2766852 bytes for JPG encoder\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] Reading minicap banner\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (jni/minicap/minicap.cpp:423) New client connection\"\r\nWRN/device:plugins:screen:stream 80128 [T076001226] Shell keeping minicap running ended unexpectedly\r\nINF/device:plugins:screen:stream 80128 [T076001226] Disconnecting from minicap service\r\nINF/device:plugins:screen:stream 80128 [T076001226] Stopping minicap service\r\nINF/device:plugins:screen:stream 80128 [T076001226] Launching screen service\r\nINF/device:plugins:screen:stream 80128 [T076001226] Connecting to minicap service\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"PID: 19843\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: Using projection 720x1280@377x670/0\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:236) Creating SurfaceComposerClient\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:239) Performing SurfaceComposerClient init check\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:246) Creating virtual display\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:252) Creating buffer queue\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:257) Creating CPU consumer\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:261) Creating frame waiter\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:265) Publishing virtual display\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (jni/minicap/JpgEncoder.cpp:64) Allocating 2766852 bytes for JPG encoder\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] Reading minicap banner\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (jni/minicap/minicap.cpp:423) New client connection\"\r\nWRN/device:plugins:screen:stream 80128 [T076001226] Shell keeping minicap running ended unexpectedly\r\nINF/device:plugins:screen:stream 80128 [T076001226] Disconnecting from minicap service\r\nINF/device:plugins:screen:stream 80128 [T076001226] Stopping minicap service\r\nINF/device:plugins:screen:stream 80128 [T076001226] Launching screen service\r\nINF/device:plugins:screen:stream 80128 [T076001226] Connecting to minicap service\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"PID: 19892\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: Using projection 720x1280@377x670/0\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:236) Creating SurfaceComposerClient\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:239) Performing SurfaceComposerClient init check\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:246) Creating virtual display\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:252) Creating buffer queue\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:257) Creating CPU consumer\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:261) Creating frame waiter\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (external/MY_minicap/src/minicap_22.cpp:265) Publishing virtual display\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (jni/minicap/JpgEncoder.cpp:64) Allocating 2766852 bytes for JPG encoder\"\r\nINF/device:plugins:screen:stream 80128 [T076001226] Reading minicap banner\r\nINF/device:plugins:screen:stream 80128 [T076001226] minicap says: \"INFO: (jni/minicap/minicap.cpp:423) New client connection\"\r\nWRN/device:plugins:screen:stream 80128 [T076001226] Shell keeping minicap running ended unexpectedly\r\nINF/device:plugins:screen:stream 80128 [T076001226] Disconnecting from minicap service\r\nFTL/device:plugins:screen:stream 80128 [T076001226] Frame producer had an error Error: Failed more than 3 times in 10000ms\r\n    at FrameProducer._failLimitExceeded (/Users/paulirish/.homebrew/lib/node_modules/stf/lib/units/device/plugins/screen/stream.js:219:26)\r\n    at FailCounter.emit (/Users/paulirish/.homebrew/lib/node_modules/stf/node_modules/eventemitter3/index.js:73:35)\r\n    at FailCounter.inc (/Users/paulirish/.homebrew/lib/node_modules/stf/lib/util/failcounter.js:29:10)\r\n    at FrameProducer._outputEnded (/Users/paulirish/.homebrew/lib/node_modules/stf/lib/units/device/plugins/screen/stream.js:212:24)\r\n    at RiskyStream.emit (/Users/paulirish/.homebrew/lib/node_modules/stf/node_modules/eventemitter3/index.js:71:35)\r\n    at RiskyStream.<anonymous> (/Users/paulirish/.homebrew/lib/node_modules/stf/lib/util/riskystream.js:13:12)\r\n    at Socket.emit (events.js:129:20)\r\n    at _stream_readable.js:908:16\r\n    at process._tickCallback (node.js:355:11)\r\nFTL/util:lifecycle 80128 [T076001226] Shutting down due to fatal error\r\n\r\nINF/provider 80100 [*] Lost device \"localhost:7403\" (device)\r\nINF/provider 80100 [*] Shutting down device worker \"localhost:7403\"\r\nINF/provider 80100 [*] Gracefully killing device worker \"localhost:7403\"\r\nINF/provider 80100 [*] Cleaning up device worker \"T076001226\"\r\nERR/provider 80100 [*] Device worker \"T076001226\" died with code 1\r\nINF/provider 80100 [*] Restarting device worker \"T076001226\"\r\nFTL/device 80167 [localhost:7403] Setup had an error FailError: Failure: 'device not found'\r\n    at /Users/paulirish/.homebrew/lib/node_modules/stf/node_modules/adbkit/lib/adb/parser.js:226:31\r\nFrom previous event:\r\n    at Parser.readError (/Users/paulirish/.homebrew/lib/node_modules/stf/node_modules/adbkit/lib/adb/parser.js:225:31)\r\n    at /Users/paulirish/.homebrew/lib/node_modules/stf/node_modules/adbkit/lib/adb/command/host/transport.js:25:35\r\nFrom previous event:\r\n    at HostTransportCommand.execute (/Users/paulirish/.homebrew/lib/node_modules/stf/node_modules/adbkit/lib/adb/command/host/transport.js:19:39)\r\n    at /Users/paulirish/.homebrew/lib/node_modules/stf/node_modules/adbkit/lib/adb/client.js:257:47\r\nFrom previous event:\r\n    at Client.transport (/Users/paulirish/.homebrew/lib/node_modules/stf/node_modules/adbkit/lib/adb/client.js:256:32)\r\n    at Client.shell (/Users/paulirish/.homebrew/lib/node_modules/stf/node_modules/adbkit/lib/adb/client.js:262:19)\r\n    at devutil.listPidsByComm (/Users/paulirish/.homebrew/lib/node_modules/stf/lib/util/devutil.js:69:14)\r\n    at devutil.killProcsByComm (/Users/paulirish/.homebrew/lib/node_modules/stf/lib/util/devutil.js:106:18)\r\n    at /Users/paulirish/.homebrew/lib/node_modules/stf/lib/util/devutil.js:122:26\r\nFrom previous event:\r\n    at /Users/paulirish/.homebrew/lib/node_modules/stf/lib/util/devutil.js:121:15\r\nFrom previous event:\r\n    at devutil.killProcsByComm (/Users/paulirish/.homebrew/lib/node_modules/stf/lib/util/devutil.js:107:6)\r\n    at /Users/paulirish/.homebrew/lib/node_modules/stf/lib/util/devutil.js:122:26\r\n    at processImmediate [as _immediateCallback] (timers.js:358:17)\r\nFTL/util:lifecycle 80167 [localhost:7403] Shutting down due to fatal error\r\nINF/provider 80100 [*] Device worker \"localhost:7403\" has retired\r\n```"},"comment":{"url":"https://api.github.com/repos/openstf/stf/issues/comments/120811336","html_url":"https://github.com/openstf/stf/issues/8#issuecomment-120811336","issue_url":"https://api.github.com/repos/openstf/stf/issues/8","id":120811336,"user":{"login":"paulirish","id":39191,"avatar_url":"https://avatars.githubusercontent.com/u/39191?v=3","gravatar_id":"","url":"https://api.github.com/users/paulirish","html_url":"https://github.com/paulirish","followers_url":"https://api.github.com/users/paulirish/followers","following_url":"https://api.github.com/users/paulirish/following{/other_user}","gists_url":"https://api.github.com/users/paulirish/gists{/gist_id}","starred_url":"https://api.github.com/users/paulirish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulirish/subscriptions","organizations_url":"https://api.github.com/users/paulirish/orgs","repos_url":"https://api.github.com/users/paulirish/repos","events_url":"https://api.github.com/users/paulirish/events{/privacy}","received_events_url":"https://api.github.com/users/paulirish/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T04:43:48Z","updated_at":"2015-07-13T04:43:48Z","body":"I gotcha. Yeah definitely using 1.0.3\r\nIn my case I'm running it all on my macbookair. I'll have a moto x and nexus 5 connected by default, maybe more. But then if i `adb connect` for one of these devices, both connections end up failing.  \r\n\r\nI see the LOCALHOST entry in chrome:inspect briefly but about 3 seconds later STF dumps it and the `connect` instance is gone from both chrome:inspect and \"Disconnected\" on the STF device list.  \r\n\r\n> I'm currently thinking about perhaps disabling localhost sources from being set up automatically without some command line option\r\n\r\nah no!  that would make it super hard for me.  plus these days the chrome remote debug doesnt need an ADB lock on the devices. so it can share with STF.\r\n\r\nI would recommend that for a localhost device, in the Remote Debug block you leave out the `adb connect` field and just say: \"hey go to chrome://inspect\".  That'd work for me.\r\n\r\n\r\n>   built-in support for adb connect in Chrome. \r\n\r\ncan you point me to the ticket?  \r\n\r\n(speaking of performance, the perf of minicap is amazing.)"}}