Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
qwezxcjohnny opened this issue Sep 27, 2017 · 9 comments
Closed

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

qwezxcjohnny opened this issue Sep 27, 2017 · 9 comments
Assignees

Comments

@qwezxcjohnny
Copy link

qwezxcjohnny commented Sep 27, 2017

  • 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
Copy link
Author

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

@RuoKing
Copy link

RuoKing commented Nov 8, 2017

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

@litingjun2015
Copy link

litingjun2015 commented Dec 12, 2017

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

@outtmanchen
Copy link

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

@x3au
Copy link

x3au commented Jan 8, 2018

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

@zhujiliang
Copy link

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

@qwezxcjohnny
Copy link
Author

@zhujiliang 没有 偶尔还会复现

@wsYdd
Copy link

wsYdd commented Aug 14, 2018

The same issue +1

@xudafeng xudafeng assigned paradite and unassigned qichuan Feb 23, 2019
@xudafeng
Copy link
Member

xudafeng commented Jul 4, 2020

#929

@xudafeng xudafeng closed this as completed Jul 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants