github / github/copilot-cli

Frequent JavaScript heap out of memory

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

还没有人认领这个 Issue。

area:platform-linux
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

Describe the bug

Every few minutes the copilot CLI crashes with the following output:

[2525992:0x4f1e6000]  2035407 ms: Mark-Compact 3919.7 (4098.2) -> 3918.2 (4097.4) MB, pooled: 3 MB, 227.10 / 0.00 ms  (average mu = 0.100, current mu = 0.008) allocation failure; scavenge might not succeed
[2525992:0x4f1e6000]  2035520 ms: Mark-Compact 3925.0 (4097.4) -> 3918.2 (4097.4) MB, pooled: 3 MB, 100.87 / 0.00 ms  (average mu = 0.102, current mu = 0.105) allocation failure; scavenge might not succeed

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Writing Node.js report to file: report.20260904.172737.2525992.0.001.json
Node.js report completed
----- Native stack trace -----

 1: 0x757658 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [copilot]
 2: 0xc60e30  [copilot]
 3: 0xc60f1f  [copilot]
 4: 0xf047f5  [copilot]
 5: 0xf04822  [copilot]
 6: 0xf04b1a  [copilot]
 7: 0xf1581a  [copilot]
 8: 0xf19bc0  [copilot]
 9: 0x19b78a1  [copilot]
[1]    2525992 IOT instruction (core dumped)  copilot
Affected version

GitHub Copilot CLI 1.0.83-5

Steps to reproduce the behavior
  1. Initiate some work
  2. Wait a few minutes
Expected behavior

don't crash.

Additional context

The CLI is executed on x86_64 Ubuntu/Linux 24.04, fully updated
It is access like Windows Terminal-->ssh-->Linux-->tmux/zsh-->CopilotCLI (no difference when running directly on the linux machine)

Have tried to use NODE_OPTIONS but it is silently ignored.

贡献指南

打开贡献指南

从这里开始

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

调研方向

在 Ubuntu/Linux 24.04 上的 Copilot CLI 1.0.83-5 中启动工作并等待几分钟,以复现崩溃。从生成的 Node.js 报告文件和 CLI 对 NODE_OPTIONS 的处理入手;当相同的工作负载不再以 JavaScript heap out-of-memory 崩溃结束时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
node.js
领域
cli
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

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