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

控制台 一直弹出 [pocoservice.apk] stderr: b''.... #577

Open
Pactortester opened this issue Apr 3, 2023 · 3 comments
Open

控制台 一直弹出 [pocoservice.apk] stderr: b''.... #577

Pactortester opened this issue Apr 3, 2023 · 3 comments

Comments

@Pactortester
Copy link

(请尽量按照下面提示内容填写,有助于我们快速定位和解决问题,感谢配合。否则直接关闭。)

描述问题bug
在代码中用多线程运行脚本时,会多次创建poco对象,守护线程也会多次创建,会在控制台报错,如下

[pocoservice.apk] stdout: b'INSTRUMENTATION_RESULT: shortMsg=Process crashed.\nINSTRUMENTATION_CODE: 0\n'
[pocoservice.apk] stderr: b''
[pocoservice.apk] stdout: b'\ncom.netease.open.pocoservice.InstrumentedTestAsLauncher:INSTRUMENTATION_RESULT: shortMsg=Process crashed.\nINSTRUMENTATION_CODE: 0\n'

复现步骤

  1. 在代码中用多线程运行脚本时
  2. 多次创建poco对象
  3. 守护线程也会多次创建
  4. 控制台输出 如下图

预期效果
poco守护线程 只创建一次
相关截图
image

python 版本: python3.9

poco 版本: 1.0.88

@liunice
Copy link

liunice commented Apr 25, 2023

是的,我也经常遇到~

@cscli
Copy link

cscli commented Jun 28, 2023

pip list | grep poco
poco 0.99.1
pocoui 1.0.88
pip list | grep airtest
airtest 1.2.10.2
pocoservice 自启动打开,电池优化关闭,我的问题就没再出现

@luowqn
Copy link

luowqn commented Nov 23, 2023

我也是经常出现,而且根据官网进行手机权限设置后还是频繁出现,导致无法大批量进行脚本执行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants