Android: 运行超过10mins时,Socket hang up
- Macaca Version: [email protected]
- Macaca Doctor Logs:
macaca-doctor version: 2.0.3
Node.js checklist:
node env: /usr/local/bin/node
node version: v6.10.0
iOS checklist:
Xcode Command Line Tools is ready, version: 2347.
xcodebuild version: 8.3.3
iproxy[usbmuxd] is installed at: `/usr/local/bin/iproxy`
ios_webkit_debug_proxy is installed at: `/usr/local/bin/ios_webkit_debug_proxy`
carthage is installed, version: 0.23.0
Android checklist:
JAVA version is `1.8.0_121`
JAVA_HOME is set to `/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home`
ANDROID_HOME is set to `/Users/bx/Library/Android/sdk`
Platforms is set to `/Users/bx/Library/Android/sdk/platforms/android-25`
ADB tool is set to `/Users/bx/Library/Android/sdk/platform-tools/adb`
gradle is installed, version: 3.5
Installed driver list:
android: 2.0.40
chrome: 1.0.7
electron: 1.1.14
ios: 2.0.27
- Operate System: MAC 10.12.5
- DEVICE OS: Android 6.0
- Programming Language: JAVA
proxy.js:63:22 [master] pid:15435 UIAutomatorWD client proxy error with: Error: socket hang up
$ npm -v
5.5.1
$ node -v
v8.1.4
我也碰到了这个问题,反复出现,有什么workaround吗?
This is the translated issue comment: @hailstone
I also encountered this problem, repeated, what is the workaround?
some log around the process crashed:
responseHandler.js:49:14 [master] pid:35702 Send HTTP Respone to Client[2018-12-07 14:59:43]: {"sessionId":"dcf990d1-ae67-45f5-a26f-5a989004b7c5","status":0,"value":""{\"index\":\"0\",\"class\":\"android.widget.FrameLayout\",\"package\":\"com.amazon.kindlefc\",\"checkable\":\"false\",\"checked\":\"false\",\"clickable\":\"false\",\"enabled\":\"true\",\"focusable\":\"false\",\"focused\":\"false\",\"scrollable\":\"false\",\"long-clickable\":\"false\",\"password\":\"false\",\"selected\":\"false\",\"bounds\":\"[0,243][60,315]\"}""} responseHandler.js:11:12 [master] pid:35702 Recieve HTTP Request from Client[2018-12-07 14:59:44]: method: GET url: /wd/hub/session/dcf990d1-ae67-45f5-a26f-5a989004b7c5/source, jsonBody: {} proxy.js:56:14 [master] pid:35702 Proxy: /wd/hub/session/:sessionId/source:GET to http://127.0.0.1:9005/wd/hub/session/:sessionId/source:GET with body: null proxy.js:86:20 [master] pid:35702 Got response with status 200: {"status":0,"value":"\r\n<hierarchy rotation="0">\r\n <node index="0" text="" resource-id="" class="android.widget.FrameLayout" pa... responseHandler.js:49:14 [master] pid:35702 Send HTTP Respone to Client[2018-12-07 14:59:44]: {"sessionId":"dcf990d1-ae67-45f5-a26f-5a989004b7c5","status":0,"value":""{\"index\":\"0\",\"class\":\"android.widget.FrameLayout\",\"package\":\"com.amazon.kindlefc\",\"checkable\":\"false\",\"checked\":\"false\",\"clickable\":\"false\",\"enabled\":\"true\",\"focusable\":\"false\",\"focused\":\"false\",\"scrollable\":\"false\",\"long-clickable\":\"false\",\"password\":\"false\",\"selected\":\"false\",\"bounds\":\"[0,243][60,315]\"}""} responseHandler.js:11:12 [master] pid:35702 Recieve HTTP Request from Client[2018-12-07 14:59:45]: method: GET url: /wd/hub/session/dcf990d1-ae67-45f5-a26f-5a989004b7c5/source, jsonBody: {} proxy.js:56:14 [master] pid:35702 Proxy: /wd/hub/session/:sessionId/source:GET to http://127.0.0.1:9005/wd/hub/session/:sessionId/source:GET with body: null proxy.js:86:20 [master] pid:35702 Got response with status 200: {"status":0,"value":"\r\n<hierarchy rotation="0">\r\n <node index="0" text="" resource-id="" class="android.widget.FrameLayout" pa... responseHandler.js:49:14 [master] pid:35702 Send HTTP Respone to Client[2018-12-07 14:59:45]: {"sessionId":"dcf990d1-ae67-45f5-a26f-5a989004b7c5","status":0,"value":""{\"index\":\"0\",\"class\":\"android.widget.FrameLayout\",\"package\":\"com.amazon.kindlefc\",\"checkable\":\"false\",\"checked\":\"false\",\"clickable\":\"false\",\"enabled\":\"true\",\"focusable\":\"false\",\"focused\":\"false\",\"scrollable\":\"false\",\"long-clickable\":\"false\",\"password\":\"false\",\"selected\":\"false\",\"bounds\":\"[0,243][60,315]\"}""} uiautomator-client.js:92:14 [master] pid:35702 INSTRUMENTATION_RESULT: shortMsg=Process crashed. INSTRUMENTATION_CODE: 0
responseHandler.js:11:12 [master] pid:35702 Recieve HTTP Request from Client[2018-12-07 14:59:46]: method: GET url: /wd/hub/session/dcf990d1-ae67-45f5-a26f-5a989004b7c5/source, jsonBody: {} proxy.js:56:14 [master] pid:35702 Proxy: /wd/hub/session/:sessionId/source:GET to http://127.0.0.1:9005/wd/hub/session/:sessionId/source:GET with body: null proxy.js:64:22 [master] pid:35702 UIAutomatorWD client proxy error with: Error: socket hang up proxy.js:64:22 [master] pid:35702 UIAutomatorWD client proxy error with: Error: socket hang up proxy.js:64:22 [master] pid:35702 UIAutomatorWD client proxy error with: Error: socket hang up proxy.js:64:22 [master] pid:35702 UIAutomatorWD client proxy error with: Error: socket hang up proxy.js:64:22 [master] pid:35702 UIAutomatorWD client proxy error with: Error: socket hang up proxy.js:64:22 [master] pid:35702 UIAutomatorWD client proxy error with: Error: socket hang up proxy.js:64:22 [master] pid:35702 UIAutomatorWD client proxy error with: Error: socket hang up proxy.js:64:22 [master] pid:35702 UIAutomatorWD client proxy error with: Error: socket hang up