AirtestProject / AirtestProject/Poco

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

Aperta
#577 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
2k
Fork
341
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

**描述问题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](https://user-images.githubusercontent.com/29191106/229472310-278a0c03-115d-447e-a002-6eacf22d8f8b.png)

**python 版本:** `python3.9`

**poco 版本:** `1.0.88`

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.