AirtestProject / AirtestProject/Poco

AndroidUiautomationPoco缺乏合理的并发控制,导致多实例时互相冲突,不断打印Process crashed

未关闭
#444 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
2k
派生
341
PR 合并指标
30 天内没有已合并 PR

描述

**(重要!问题分类)**
* poco库报错

**描述问题bug**
AndroidUiautomationPoco缺乏合理的并发控制,导致多实例时互相冲突。常见现象是不断打印`INSTRUMENTATION_RESULT: shortMsg=Process crashed.\r\r\nINSTRUMENTATION_CODE: 0\r\r\n`并持续重启pocoservice。
不确定这个bug应该报到Airtest还是这个项目,直接原因是每次“只运行选中代码”时新建的AndroidUiautomationPoco实例并没有调用相应的stop_running,导致旧的KeepRunningInstrumentationThread不断尝试重启服务,产生冲突。但在正常运行时由于界面变化pocoservice频繁崩溃重启时也会遭遇类似的问题
#126 #137 应该都是类似的情况

poco.drivers.android.uiautomation 是我加的的log
```
initializing Android poco.
DEBUG 2021-03-15 15:50:57,250 [18052-26460 Dummy-32] AndroidUiautomationPoco 初始化
[15:50:57][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell dumpsys activity top ; echo ---$?---
[15:50:57][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell dumpsys package com.netease.nie.yosemite ; echo ---$?---
[15:50:57][INFO] local version code is 303, installed version code is 303
[15:50:57][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell settings get secure default_input_method ; echo ---$?---
[15:50:58][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell ime list -a ; echo ---$?---
[15:50:59][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell dumpsys package com.netease.open.pocoservice ; echo ---$?---
installed version is 41, installer version is 41. force_reinstall=False
[15:51:00][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell dumpsys package com.netease.open.pocoservice.test ; echo ---$?---
installed version is 0, installer version is 0. force_reinstall=False
[15:51:00][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 forward --no-rebind tcp:13439 tcp:10080
[15:51:00][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 forward --no-rebind tcp:18268 tcp:10081
[15:51:00][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell ps |echo $(grep -E com.github.uiautomator) ; echo ---$?---
DEBUG 2021-03-15 15:51:00,681 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 开始
DEBUG 2021-03-15 15:51:00,691 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:01,736 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:02,808 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:03,890 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:04,944 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:06,016 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:07,099 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:08,217 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:09,314 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:10,382 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:11,454 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:12,517 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:13,603 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:14,666 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:15,755 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:16,819 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:17,872 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:18,957 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:20,039 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:21,114 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:22,166 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:23,257 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:24,322 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:25,357 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:26,422 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:27,490 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:28,540 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:29,609 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:30,660 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:31,733 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:32,807 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:33,857 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:34,929 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:35,973 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:37,049 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:38,153 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:39,242 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:40,300 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:41,356 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:42,429 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:43,501 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:44,580 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:45,637 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:46,729 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:47,790 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:48,855 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:49,914 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:50,977 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:52,034 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:53,116 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:54,195 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:51:55,257 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
[15:51:55][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 wait-for-device
[15:51:55][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell getprop ro.build.version.sdk
F:\xxx\AirtestIDE\airtest\core\helper.py:41: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
cls.LOGGING.warn("Device:%s updated %s -> %s" % (dev.uuid, instance, dev))
[15:51:56][WARNING] Device:YHEQKJ8HDYRK8DU8 updated ->
DEBUG 2021-03-15 15:51:56,113 [18052-2920 Dummy-52] AndroidUiautomationPoco 初始化
[15:51:56][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell dumpsys activity top ; echo ---$?---
DEBUG 2021-03-15 15:51:56,322 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
[15:51:56][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell dumpsys package com.netease.nie.yosemite ; echo ---$?---
[15:51:56][INFO] local version code is 303, installed version code is 303
[15:51:56][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell settings get secure default_input_method ; echo ---$?---
DEBUG 2021-03-15 15:51:57,382 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
[15:51:57][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell ime list -a ; echo ---$?---
DEBUG 2021-03-15 15:51:58,462 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
[15:51:58][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell dumpsys package com.netease.open.pocoservice ; echo ---$?---
[15:51:58][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell dumpsys package com.netease.open.pocoservice.test ; echo ---$?---
[15:51:58][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 forward --no-rebind tcp:18261 tcp:10080
[15:51:58][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 forward --no-rebind tcp:15447 tcp:10081
[15:51:59][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell ps |echo $(grep -E com.github.uiautomator) ; echo ---$?---
DEBUG 2021-03-15 15:51:59,321 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 开始
[15:51:59][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell monkey -p com.tencent.mm -c android.intent.category.LAUNCHER 1 ; echo ---$?---
DEBUG 2021-03-15 15:51:59,321 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:51:59,514 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:00,370 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:00,599 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:01,501 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:01,669 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:02,538 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:02,718 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:03,578 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:03,759 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:04,629 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:04,820 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:05,673 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:05,916 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:06,737 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:06,971 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:07,807 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:08,034 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:08,863 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:09,096 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:09,957 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:10,167 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:11,026 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:11,249 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:12,097 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:12,316 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:13,151 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:13,408 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:14,201 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:14,473 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:15,255 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:15,534 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:16,304 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:16,600 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
[15:52:17][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 wait-for-device
[15:52:17][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell getprop ro.build.version.sdk
DEBUG 2021-03-15 15:52:17,380 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:17,444 [18052-18288 Dummy-78] AndroidUiautomationPoco 初始化
[15:52:17][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell dumpsys activity top ; echo ---$?---
DEBUG 2021-03-15 15:52:17,656 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
[15:52:17][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell dumpsys package com.netease.nie.yosemite ; echo ---$?---
[15:52:17][INFO] local version code is 303, installed version code is 303
[15:52:17][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell settings get secure default_input_method ; echo ---$?---
DEBUG 2021-03-15 15:52:18,447 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:18,704 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
[15:52:18][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell ime list -a ; echo ---$?---
DEBUG 2021-03-15 15:52:19,496 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:19,746 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
[15:52:19][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell dumpsys package com.netease.open.pocoservice ; echo ---$?---
[15:52:20][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell dumpsys package com.netease.open.pocoservice.test ; echo ---$?---
[15:52:20][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 forward --no-rebind tcp:13537 tcp:10080
[15:52:20][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 forward --no-rebind tcp:17340 tcp:10081
[15:52:20][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell ps |echo $(grep -E com.github.uiautomator) ; echo ---$?---
DEBUG 2021-03-15 15:52:20,546 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:20,628 [18052-25400 Thread-101] KeepRunningInstrumentationThread port_to_ping:13537 开始
[15:52:20][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell monkey -p com.tencent.mm -c android.intent.category.LAUNCHER 1 ; echo ---$?---
DEBUG 2021-03-15 15:52:20,638 [18052-25400 Thread-101] KeepRunningInstrumentationThread port_to_ping:13537 尝试重启
DEBUG 2021-03-15 15:52:20,786 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:21,606 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:21,693 [18052-25400 Thread-101] KeepRunningInstrumentationThread port_to_ping:13537 尝试重启
DEBUG 2021-03-15 15:52:21,838 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:22,648 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:22,739 [18052-25400 Thread-101] KeepRunningInstrumentationThread port_to_ping:13537 尝试重启
DEBUG 2021-03-15 15:52:22,919 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:23,689 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:23,783 [18052-25400 Thread-101] KeepRunningInstrumentationThread port_to_ping:13537 尝试重启
DEBUG 2021-03-15 15:52:23,953 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:24,729 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:24,822 [18052-25400 Thread-101] KeepRunningInstrumentationThread port_to_ping:13537 尝试重启
DEBUG 2021-03-15 15:52:25,012 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:25,801 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:25,864 [18052-25400 Thread-101] KeepRunningInstrumentationThread port_to_ping:13537 尝试重启
DEBUG 2021-03-15 15:52:26,068 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:26,860 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:26,924 [18052-25400 Thread-101] KeepRunningInstrumentationThread port_to_ping:13537 尝试重启
DEBUG 2021-03-15 15:52:27,130 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:27,925 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:27,973 [18052-25400 Thread-101] KeepRunningInstrumentationThread port_to_ping:13537 尝试重启
DEBUG 2021-03-15 15:52:28,208 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:28,983 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:29,031 [18052-25400 Thread-101] KeepRunningInstrumentationThread port_to_ping:13537 尝试重启
DEBUG 2021-03-15 15:52:29,269 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
DEBUG 2021-03-15 15:52:30,089 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:30,121 [18052-25400 Thread-101] KeepRunningInstrumentationThread port_to_ping:13537 尝试重启
DEBUG 2021-03-15 15:52:30,325 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 尝试重启
[pocoservice.apk] stopping PocoService
DEBUG 2021-03-15 15:52:30,636 [18052-26460 Dummy-32] AndroidUiautomationPoco 停止运行
DEBUG 2021-03-15 15:52:31,158 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:31,189 [18052-25400 Thread-101] KeepRunningInstrumentationThread port_to_ping:13537 尝试重启
DEBUG 2021-03-15 15:52:31,394 [18052-26104 Thread-51] KeepRunningInstrumentationThread port_to_ping:13439 停止
[15:52:31][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell am force-stop com.netease.open.pocoservice ; echo ---$?---
DEBUG 2021-03-15 15:52:32,229 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
DEBUG 2021-03-15 15:52:32,275 [18052-25400 Thread-101] KeepRunningInstrumentationThread port_to_ping:13537 尝试重启
DEBUG 2021-03-15 15:52:33,279 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
[15:52:33][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell am force-stop com.netease.open.pocoservice ; echo ---$?---
DEBUG 2021-03-15 15:52:33,342 [18052-25400 Thread-101] KeepRunningInstrumentationThread port_to_ping:13537 尝试重启
[15:52:33][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell am force-stop com.netease.open.pocoservice ; echo ---$?---
[15:52:34][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell am start -n com.netease.open.pocoservice/.TestActivity ; echo ---$?---
[15:52:34][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell am start -n com.netease.open.pocoservice/.TestActivity ; echo ---$?---
[15:52:35][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell am instrument -w -e debug false -e class com.netease.open.pocoservice.InstrumentedTestAsLauncher com.netease.open.pocoservice.test/android.support.test.runner.AndroidJUnitRunner
[15:52:35][DEBUG] F:\xxx\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s YHEQKJ8HDYRK8DU8 shell am instrument -w -e debug false -e class com.netease.open.pocoservice.InstrumentedTestAsLauncher com.netease.open.pocoservice.test/android.support.test.runner.AndroidJUnitRunner
[pocoservice.apk] stdout: b'INSTRUMENTATION_RESULT: shortMsg=Process crashed.\r\r\nINSTRUMENTATION_CODE: 0\r\r\n'
[pocoservice.apk] stderr: b''
DEBUG 2021-03-15 15:52:38,419 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
[pocoservice.apk] stdout: b'INSTRUMENTATION_RESULT: shortMsg=Process crashed.\r\r\nINSTRUMENTATION_CODE: 0\r\r\n'
[pocoservice.apk] stderr: b''
DEBUG 2021-03-15 15:52:39,494 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
[pocoservice.apk] stdout: b'INSTRUMENTATION_RESULT: shortMsg=Process crashed.\r\r\nINSTRUMENTATION_CODE: 0\r\r\n'
[pocoservice.apk] stderr: b''
DEBUG 2021-03-15 15:52:40,599 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
[pocoservice.apk] stdout: b'INSTRUMENTATION_RESULT: shortMsg=Process crashed.\r\r\nINSTRUMENTATION_CODE: 0\r\r\n'
[pocoservice.apk] stderr: b''
DEBUG 2021-03-15 15:52:41,758 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
[pocoservice.apk] stdout: b'INSTRUMENTATION_RESULT: shortMsg=Process crashed.\r\r\nINSTRUMENTATION_CODE: 0\r\r\n'
[pocoservice.apk] stderr: b''
DEBUG 2021-03-15 15:52:42,810 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
[pocoservice.apk] stdout: b'INSTRUMENTATION_RESULT: shortMsg=Process crashed.\r\r\nINSTRUMENTATION_CODE: 0\r\r\n'
[pocoservice.apk] stderr: b''
DEBUG 2021-03-15 15:52:43,885 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
[pocoservice.apk] stdout: b'INSTRUMENTATION_RESULT: shortMsg=Process crashed.\r\r\nINSTRUMENTATION_CODE: 0\r\r\n'
[pocoservice.apk] stderr: b''
DEBUG 2021-03-15 15:52:44,974 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
[pocoservice.apk] stdout: b'INSTRUMENTATION_RESULT: shortMsg=Process crashed.\r\r\nINSTRUMENTATION_CODE: 0\r\r\n'
[pocoservice.apk] stderr: b''
DEBUG 2021-03-15 15:52:46,069 [18052-21392 Thread-75] KeepRunningInstrumentationThread port_to_ping:18261 尝试重启
[pocoservice.apk] stdout: b'INSTRUMENTATION_RESULT: shortMsg=Process crashed.\r\r\nINSTRUMENTATION_CODE: 0\r\r\n'
[pocoservice.apk] stderr: b''
```

**复现步骤**
1. 正常连接手机
2. 多次运行“只运行选中代码”
3. 遭遇pocoservice崩溃,或主动在poco辅助窗选择stop

**预期效果**
正常处理多实例,至少“只运行选中代码”功能可以正常使用

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。