claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Bug] Memory Leak Causing Mac System Crash During Extended Sub-Agent Sessions

Open chrisohalloran opened this issue 1 year ago • 6 comments

Bug Description after sever hur long session, extreme memory leak causes Mac to crash, was using sub agents, unsure if that was a contgriuting factor.

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.0.2
  • Feedback ID: 6b23b6ac-d41f-4188-855c-fa791c81ead4

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at FK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:1226)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:954\n    at Array.map (<anonymous>)\n    at vX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:945)\n    at Z2B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:13021)\n    at $C (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:34:19415)\n    at Xp (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:42814)\n    at W9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38355)\n    at Dh (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38283)\n    at jC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38137)","timestamp":"2025-10-02T08:39:06.657Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at FK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:1226)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:954\n    at Array.map (<anonymous>)\n    at vX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:945)\n    at Z2B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:13021)\n    at $C (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:34:19415)\n    at Xp (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:42814)\n    at W9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38355)\n    at Dh (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38283)\n    at jC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38137)","timestamp":"2025-10-02T08:39:06.665Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at FK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:1226)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:954\n    at Array.map (<anonymous>)\n    at vX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:945)\n    at Z2B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:13021)\n    at $C (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:34:19415)\n    at Xp (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:42814)\n    at W9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38355)\n    at Dh (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38283)\n    at jC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38137)","timestamp":"2025-10-02T08:39:06.665Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at FK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:1226)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:954\n    at Array.map (<anonymous>)\n    at vX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:945)\n    at Z2B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:13021)\n    at $C (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:34:19415)\n    at Xp (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:42814)\n    at W9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38355)\n    at Dh (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38283)\n    at jC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38137)","timestamp":"2025-10-02T08:57:54.757Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at FK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:1226)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:954\n    at Array.map (<anonymous>)\n    at vX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:945)\n    at Z2B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2337:13021)\n    at $C (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code

Note: Error logs were truncated.

chrisohalloran avatar Oct 02 '25 09:10 chrisohalloran

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/7020
  2. https://github.com/anthropics/claude-code/issues/8542
  3. https://github.com/anthropics/claude-code/issues/8722

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Oct 02 '25 09:10 github-actions[bot]

This is unbearable anymore.

It's been a whole fucking month since memory leaks started and nobody cares to fix it. We pay thousands of dollars and we got to close the IDE in the fucking middle of the agent working and we have to restart them from a bad state. What a waste of money and resources....

efstathiosntonas avatar Oct 03 '25 06:10 efstathiosntonas

There are at least 10 issues opened. I am wondering, the geeks at Anthropic do not get memory leaks when they develop claude code while using clode code?

efstathiosntonas avatar Oct 03 '25 06:10 efstathiosntonas

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 07 '25 10:12 github-actions[bot]

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] avatar Jan 07 '26 10:01 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Jan 14 '26 14:01 github-actions[bot]