LMKD is killing `androidx.test.services` during test runs
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- java
- 领域
- mobile, testing-qa
调研方向
首先,在 Android 12 的低内存条件下使用 ./gradlew connectedAndroidTest 重现该故障,然后检查 logcat,确认 lmkd 是否终止了 androidx.test.services。检查列出的 AndroidX Test 依赖项,并确认 connectedAndroidTest 能够成功完成,且 instrumentation 进程不会崩溃。
由索引模型根据 Issue 内容生成。
描述
Description
connectedAndroidTest runs are failing with the error "Instrumentation run failed due to Process crashed." which is caused by the lmkd killing androidx.test.services to reclaim memory.
Steps to Reproduce
Need to create a low-memory situation and then run ./gradlew connectedAndroidTest
Expected Results
connectedAndroidTest runs and completes successfully
Actual Results
connectedAndroidTest runs, but fails after one or two tests with the error message: "Test run failed to complete. Instrumentation run failed due to Process crashed."
Inspecting logcat gives the following:
2023-01-30 15:17:46.821 483-483 lmkd lmkd I Reclaim 'androidx.test.services' (15979), uid 10272, oom_score_adj 200, state 4 to free 45252kB rss, 46040kb swap
AndroidX Test and Android OS Versions
Android OS: 12
Device: Samsung TabActive 3
'androidx.test:orchestrator:1.4.2'
'androidx.test🏃1.5.2'
'androidx.test:rules:1.5.0'
"androidx.test:monitor:1.6.1"
'androidx.test.ext:junit:1.1.5'
'androidx.test.espresso:espresso-core:3.5.1'
'androidx.test.uiautomator:uiautomator:2.2.0'
'androidx.navigation:navigation-testing:2.5.3'
Link to a public git repo demonstrating the problem:
- 主要语言
- Java
- 星标
- 1.2k
- 派生
- 342
- 平均合并
- 1 天 14 小时
- 30 天内合并 PR
- 5
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
android/android-test 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 62/100
android/android-test#681 · 2 条评论 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 72/100
android/android-test#2507 · 1 条评论 ·
-
ξεκσνδξδ未关闭
难度 5/5 一周以上 新手友好度 1/100
android/android-test#2499 ·
-
ησξξσ未关闭
难度 5/5 一周以上 新手友好度 1/100
android/android-test#2498 ·
-
难度 4/5 3-5 天 新手友好度 38/100
android/android-test#2473 ·
查看 android/android-test 的全部 Issue
相似的 Issue
-
link-check link-check:manual
难度 2/5 1-3 小时 新手友好度 85/100
-
难度 1/5 1 小时以内 新手友好度 91/100
open-telemetry/opentelemetry-java#8870 ·
维护者通常 1 天内回复
-
P2 testing
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
enhancement javascript
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area/core kind/bug status/triage team/core-shared
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复