github / github/copilot-cli

Frequent JavaScript heap out of memory

オープン
#4,725 コメント 6 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

area:platform-linux
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
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. リポジトリをフォークし、ブランチを切って変更します。
  4. 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 を短くまとめたダイジェスト。