Intermittent RuntimeError: Gradle command returned error: -6 or 1 after Cannot allocate memory
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
调研方向
从 Treeherder 日志以及 taskcluster/rb_taskgraph/transforms/build_apk.py 和 taskcluster/rb_taskgraph/gradle.py 中的调用链开始,尤其关注 _fetch_all_variants 和 _run_gradle_process。运行会调用 printVariants 的 taskgraph 构建生成,并确定 Gradle 耗尽内存的原因;当间歇性的命令失败被阻止或成功处理时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Log: https://treeherder.mozilla.org/logviewer.html#?job_id=310134511&repo=reference-browser
[task 2020-07-17T06:21:07.590Z] 2020-07-17 06:21:07,590 - INFO - Loading kinds
[task 2020-07-17T06:21:07.690Z] 2020-07-17 06:21:07,690 - INFO - Generating full task set
[task 2020-07-17T06:21:07.701Z] 2020-07-17 06:21:07,700 - INFO - Generated 1 tasks for kind bump
[task 2020-07-17T06:21:07.724Z] 2020-07-17 06:21:07,724 - INFO - Generated 5 tasks for kind docker-image
[task 2020-07-17T06:21:07.730Z] 2020-07-17 06:21:07,730 - INFO - Generated 1 tasks for kind fetch
[task 2020-07-17T06:21:07.731Z] 2020-07-17 06:21:07,731 - INFO - Generated 1 tasks for kind geckoview
[task 2020-07-17T06:21:07.901Z] 2020-07-17 06:21:07,901 - INFO - Generated 3 tasks for kind toolchain
[task 2020-07-17T06:25:12.218Z] OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000fc200000, 6291456, 0) failed; error='Cannot allocate memory' (errno=12)
[task 2020-07-17T06:27:07.168Z] 2020-07-17 06:27:07,119 - ERROR - Error loading tasks for kind build:
[task 2020-07-17T06:27:07.171Z] Traceback (most recent call last):
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/generator.py", line 261, in _run
[task 2020-07-17T06:27:07.171Z] new_tasks = kind.load_tasks(parameters, list(all_tasks.values()))
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/generator.py", line 75, in load_tasks
[task 2020-07-17T06:27:07.171Z] for task_dict in transforms(trans_config, inputs)]
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/task.py", line 1126, in check_run_task_caches
[task 2020-07-17T06:27:07.171Z] for task in tasks:
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/task.py", line 1069, in check_task_dependencies
[task 2020-07-17T06:27:07.171Z] for task in tasks:
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/task.py", line 1057, in check_task_identifiers
[task 2020-07-17T06:27:07.171Z] for task in tasks:
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/task.py", line 1040, in chain_of_trust
[task 2020-07-17T06:27:07.171Z] for task in tasks:
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/task.py", line 1033, in add_github_checks
[task 2020-07-17T06:27:07.171Z] for task in tasks:
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/task.py", line 892, in build_task
[task 2020-07-17T06:27:07.171Z] for task in tasks:
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/task.py", line 860, in add_index_routes
[task 2020-07-17T06:27:07.171Z] for task in tasks:
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/task.py", line 826, in validate
[task 2020-07-17T06:27:07.171Z] for task in tasks:
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/task.py", line 814, in task_name_from_label
[task 2020-07-17T06:27:07.171Z] for task in tasks:
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/task.py", line 775, in set_defaults
[task 2020-07-17T06:27:07.171Z] for task in tasks:
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/task.py", line 754, in set_implementation
[task 2020-07-17T06:27:07.171Z] for task in tasks:
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/job/init.py", line 306, in make_task_description
[task 2020-07-17T06:27:07.171Z] for job in jobs:
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/job/init.py", line 202, in use_fetches
[task 2020-07-17T06:27:07.171Z] for job in order_tasks(config, jobs):
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/cached_tasks.py", line 22, in order_tasks
[task 2020-07-17T06:27:07.171Z] pending = deque(tasks)
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/job/init.py", line 157, in set_label
[task 2020-07-17T06:27:07.171Z] for job in jobs:
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/job/init.py", line 141, in set_implementation
[task 2020-07-17T06:27:07.171Z] for job in jobs:
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/job/init.py", line 121, in rewrite_when_to_optimization
[task 2020-07-17T06:27:07.171Z] for job in jobs:
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/transforms/base.py", line 138, in call
[task 2020-07-17T06:27:07.171Z] for task in tasks:
[task 2020-07-17T06:27:07.171Z] File "taskcluster/rb_taskgraph/transforms/build_apk.py", line 23, in add_artifacts
[task 2020-07-17T06:27:07.171Z] variant_config = get_build_variant(build_type)
[task 2020-07-17T06:27:07.171Z] File "taskcluster/rb_taskgraph/gradle.py", line 14, in get_build_variant
[task 2020-07-17T06:27:07.171Z] all_variants = _fetch_all_variants()
[task 2020-07-17T06:27:07.171Z] File "/builds/worker/.local/lib/python2.7/site-packages/taskgraph/util/memoize.py", line 25, in call
[task 2020-07-17T06:27:07.172Z] self[args] = self.func(*args)
[task 2020-07-17T06:27:07.172Z] File "taskcluster/rb_taskgraph/gradle.py", line 32, in _fetch_all_variants
[task 2020-07-17T06:27:07.172Z] output = _run_gradle_process('printVariants')
[task 2020-07-17T06:27:07.172Z] File "taskcluster/rb_taskgraph/gradle.py", line 48, in _run_gradle_process
[task 2020-07-17T06:27:07.172Z] raise RuntimeError("Gradle command returned error: {}".format(exit_code))
[task 2020-07-17T06:27:07.172Z] RuntimeError: Gradle command returned error: -6
- 主要语言
- Kotlin
- 星标
- 668
- 派生
- 198
- 平均合并
- 9 小时 58 分钟
- 30 天内合并 PR
- 55
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mozilla-mobile/reference-browser 的其他 Issue
-
🐞 bug
难度 1/5 1 小时以内 新手友好度 55/100
mozilla-mobile/reference-browser#4174 ·
维护者通常 1 天内回复
-
🐞 bug
难度 3/5 1-2 天 新手友好度 45/100
mozilla-mobile/reference-browser#4072 ·
维护者通常 1 天内回复
-
Snackbars have wrong anchoring / padding可能重新可做 关联的 PR 已关闭且未合并。 未关闭🐞 bug
难度 3/5 1-2 天 新手友好度 42/100
mozilla-mobile/reference-browser#3746 · 1 条评论 ·
维护者通常 1 天内回复
-
🐞 bug
难度 3/5 1-2 天 新手友好度 35/100
mozilla-mobile/reference-browser#3083 · 1 条评论 ·
维护者通常 1 天内回复
-
🐞 bug
难度 3/5 1-2 天 新手友好度 35/100
mozilla-mobile/reference-browser#2538 ·
维护者通常 1 天内回复
查看 mozilla-mobile/reference-browser 的全部 Issue
相似的 Issue
-
Bug Domain changed
难度 1/5 1 小时以内 新手友好度 79/100
keiyoushi/extensions-source#21174 ·
维护者通常 1 天内回复
-
Unified account interface not translated into Simplified Chinese可能已有人在做 @xuenhua 于 3 天前认领。 未关闭unconfirmed
难度 2/5 1-3 小时 新手友好度 62/100
thunderbird/thunderbird-android#11936 · 1 条评论 ·
维护者通常 3 天内回复
-
design good first issue help wanted
难度 2/5 1-3 小时 新手友好度 73/100
scribe-org/Scribe-Android#778 ·
维护者通常 1 天内回复
-
Needs Triage
难度 2/5 1-3 小时 新手友好度 72/100
ankidroid/Anki-Android#23392 ·
维护者通常 1 天内回复
-
AI Generated CI/CD ⚒️ Flaky-tests 🐦 go 🏃
难度 2/5 1-3 小时 新手友好度 78/100
valkey-io/valkey-glide#7772 ·
维护者通常 1 天内回复