[Bug] Windows Heap Out of Memory Error with Subagent Task

Resolved 💬 5 comments Opened Oct 7, 2025 by PetePeter Closed Jan 9, 2026

Bug Description
Periodic crash in windows (non WSL) when using a subagent task.
Disclaimer: I'm using CC with GLM 4.6 from z.ai, so not sure if this is a z.ai problem or a cc problem. Nonetheless, Heap out of memory errors shouldnt happen generally speaking.

see
<--- Last few GCs --->

[28272:0000023DD8861000] 2623057 ms: Scavenge (interleaved) 4011.3 (4115.3) -> 4008.0 (4133.3) MB, pooled: 0 MB, 28.81 / 0.00 ms (average mu = 0.235, current mu = 0.170) allocation failure;
[28272:0000023DD8861000] 2625449 ms: Mark-Compact 4021.5 (4133.3) -> 4012.0 (4140.3) MB, pooled: 0 MB, 2375.37 / 0.00 ms (average mu = 0.171, current mu = 0.098) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

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

1: 00007FF68C85542D node::SetCppgcReference+17693
2: 00007FF68C7B8248 SSL_get_quiet_shutdown+102712
3: 00007FF68D33ED41 v8::Isolate::ReportExternalAllocationLimitReached+65
4: 00007FF68D32B9C6 v8::Function::Experimental_IsNopFunction+2870
5: 00007FF68D178B10 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+31456
6: 00007FF68D17280A v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+6106
7: 00007FF68D16DEA5 v8::internal::ThreadIsolation::JitPageReference::Size+188453
8: 00007FF68CAF1D0D BIO_ssl_shutdown+189

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.0.9
  • Feedback ID:

Errors

[{"error":"SyntaxError: Unexpected token '`', \"```json\n{\n\"... is not valid JSON\n    at JSON.parse (<anonymous>)\n    at file:///C:/Users/person/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:745:9912\n    at Q (file:///C:/Users/person/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:711:13679)\n    at cy2 (file:///C:/Users/person/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1042:27838)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-07T03:10:07.226Z"},{"error":"Error: Request was aborted.\n    at hP.makeRequest (file:///C:/Users/person/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1023:3850)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processTimers (node:internal/timers:520:9)","timestamp":"2025-10-07T03:10:20.123Z"}]
``

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗