macaca icon indicating copy to clipboard operation
macaca copied to clipboard

执行脚本频繁抛出Error: read ECONNRESET

Open qwezxcjohnny opened this issue 9 years ago • 9 comments

  • Macaca Version: mcaca-cli: 2.0.10 macaca android : 2.0.36
  • Operate System: windows 10 64 位
  • Programming Language: nodejs 手机: 安卓 7 华为荣耀9

macaca doctor: macaca-doctor version: 2.0.3

Node.js checklist:

node env: D:\Program Files\nodejs\node.exe node version: v6.11.1

Android checklist:

JAVA version is 1.8.0_141 JAVA_HOME is set to D:\Java\jdk1.8.0_141 ANDROID_HOME is set to D:\Android\android-sdk Platforms is set to D:\Android\android-sdk\platforms\android-26 ADB tool is set to D:\Android\android-sdk\platform-tools\adb.exe GRADLE_HOME is set to D:\gradle-4.0.1

Installed driver list:

android: 2.0.36

执行脚本频繁报Error: read ECONNRESET log:

proxy.js:55:14 [master] pid:10888 Proxy: /wd/hub/session/a5d662d8-fe2c-45c0-b25d-e0244543606b/elements:POST to http://127.0.0.1:64043/wd/hub/session/a5d662d8-fe2c-45c0-b25d-e0244543606b/elements:POST with body: {"using":"id","value":"cmccwm.mobilemusic:id/img_setting"} proxy.js:63:22 [master] pid:10888 UIAutomatorWD client proxy error with: Error: read ECONNRESET proxy.js:63:22 [master] pid:10888 UIAutomatorWD client proxy error with: Error: read ECONNRESET proxy.js:63:22 [master] pid:10888 UIAutomatorWD client proxy error with: Error: read ECONNRESET proxy.js:63:22 [master] pid:10888 UIAutomatorWD client proxy error with: Error: read ECONNRESET proxy.js:63:22 [master] pid:10888 UIAutomatorWD client proxy error with: Error: read ECONNRESET proxy.js:63:22 [master] pid:10888 UIAutomatorWD client proxy error with: Error: read ECONNRESET proxy.js:63:22 [master] pid:10888 UIAutomatorWD client proxy error with: Error: read ECONNRESET proxy.js:63:22 [master] pid:10888 UIAutomatorWD client proxy error with: Error: read ECONNRESET proxy.js:63:22 [master] pid:10888 UIAutomatorWD client proxy error with: Error: read ECONNRESET proxy.js:63:22 [master] pid:10888 UIAutomatorWD client proxy error with: Error: read ECONNRESET proxy.js:63:22 [master] pid:10888 UIAutomatorWD client proxy error with: Error: read ECONNRESET responseHandler.js:56:12 [master] pid:10888 Send Error Respone to Client: Error: read ECONNRESET responseHandler.js:62:14 [master] pid:10888 Error: read ECONNRESET at exports._errnoException (util.js:1018:11) at TCP.onread (net.js:568:26)

Error: read ECONNRESET at exports._errnoException (util.js:1018:11) at TCP.onread (net.js:568:26)

麻烦帮忙看看,解惑,谢谢!

qwezxcjohnny avatar Sep 27 '17 01:09 qwezxcjohnny

uiautomator-client.js:56:14 [master] pid:3340 INSTRUMENTATION_RESULT: shortMsg=Process crashed.

uiautomator-client.js:56:14 [master] pid:3340 INSTRUMENTATION_CODE: 0

proxy.js:63:22 [master] pid:3340 UIAutomatorWD client proxy error with: Error: socket hang up proxy.js:63:22 [master] pid:3340 UIAutomatorWD client proxy error with: Error: read ECONNRESET proxy.js:63:22 [master] pid:3340 UIAutomatorWD client proxy error with: Error: read ECONNRESET proxy.js:63:22 [master] pid:3340 UIAutomatorWD client proxy error with: Error: read ECONNRESET uiautomator-client.js:56:14 [master] pid:3340 INSTRUMENTATION_STATUS: numtests=1 INSTRUMENTATION_STATUS: stream= com.macaca.android.testing.UIAutomatorWD: INSTRUMENTATION_STATUS: id=AndroidJUnitRunner INSTRUMENTATION_STATUS: test=MacacaTestRunner INSTRUMENTATION_STATUS: class=com.macaca.android.testing.UIAutomatorWD INSTRUMENTATION_STATUS: current=1 INSTRUMENTATION_STATUS_CODE: 1

uiautomator-client.js:56:14 [master] pid:3340 INSTRUMENTATION_STATUS: stream= UIAutomatorWD->http://localhost:54742<-UIAutomatorWD INSTRUMENTATION_STATUS_CODE: 0

UIAutomatorWD http server ready proxy.js:63:22 [master] pid:3340 UIAutomatorWD client proxy error with: Error: read ECONNRESET

qwezxcjohnny avatar Sep 28 '17 09:09 qwezxcjohnny

@遇到楼主同样的问题!@xudafeng请问解决了吗,升级到最新版本的macaca就这样了

RuoKing avatar Nov 08 '17 06:11 RuoKing

请问没有workaround吗? 像回退到哪个稳定版?

litingjun2015 avatar Dec 12 '17 03:12 litingjun2015

请问各位解决了嘛,现在我也遇到这个问题了, 真机录制好不容易起来一次,就一直报这个错误。。。。

outtmanchen avatar Jan 08 '18 10:01 outtmanchen

Seeing the same issue, would be great to see a fix. This is on OS X High Sierra, Node 9.3.0

x3au avatar Jan 08 '18 22:01 x3au

请问 楼主解决了没有 我的也出现这问题了

zhujiliang avatar Jan 15 '18 03:01 zhujiliang

@zhujiliang 没有 偶尔还会复现

qwezxcjohnny avatar Jan 15 '18 05:01 qwezxcjohnny

The same issue +1

wsYdd avatar Aug 14 '18 06:08 wsYdd

https://github.com/alibaba/macaca/issues/929

xudafeng avatar Jul 04 '20 08:07 xudafeng