Frequent JavaScript heap out of memory
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
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
- Initiate some work
- 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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere den Absturz, indem du in Copilot CLI 1.0.83-5 unter Ubuntu/Linux 24.04 Arbeit startest und mehrere Minuten wartest. Beginne mit der generierten Node.js-Reportdatei und der Verarbeitung von NODE_OPTIONS durch die CLI; als erledigt gilt die Aufgabe, wenn dieselbe Arbeitslast nicht mehr mit einem JavaScript-Heap-Out-of-Memory-Absturz endet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- node.js
- Bereich
- cli
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100