Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

LMKD is killing `androidx.test.services` during test runs

未关闭
#1,668 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

android/android-test 的其他 Issue

查看 android/android-test 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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