Appium uiautomator2 突然崩溃,提示 Crash of app io.appium.uiautomator2.server running instrumentation

lvxy · 2021年02月23日 · 最后由 cmlanche 回复于 2021年02月23日 · 2285 次阅读

Android 日志:

02-23 04:10:45.008 W/ActivityManager( 1585): Crash of app io.appium.uiautomator2.server running instrumentation 
ComponentInfo{io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner}

appium 日志:

[debug] [Instrumentation] INSTRUMENTATION_RESULT: shortMsg=
Process crashed.
[debug] [Instrumentation] INSTRUMENTATION_CODE: 0
[debug] [Instrumentation] The process has exited with code
0

请问如何查明 uiautomator2 的崩溃原因呢?有人碰到过吗?

补充:
机型是 Redmi 5 Plus,目前怀疑是省电策略将其关闭,修改省电策略为无限制后继续挂机观察

共收到 1 条回复 时间 点赞

就是 UIAutomator2 的 app 挂了,可能被系统杀死了吧,比如某些手机有节能模式,发现 UIAutomator2 耗电太多,而且又是后台进程,容易被干死

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册