V8 Heap Out of Memory

Resolved 💬 1 comment Opened Jun 16, 2025 by SamDuchaine Closed Jul 27, 2025

Bug Description
<--- Last few GCs --->

[5989:0x362408a0] 70502324 ms: Mark-sweep 4057.0 (4143.6) -> 4052.9 (4143.6) MB, 1394.3 / 0.0 ms (average mu = 0.098, current mu = 0.003) allocation failure; scavenge might not succeed
[5989:0x362408a0] 70503750 ms: Mark-sweep 4057.2 (4143.9) -> 4053.1 (4143.9) MB, 1419.6 / 0.0 ms (average mu = 0.053, current mu = 0.005) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xb9bbf0 node::Abort() [claude]
2: 0xaa27ee [claude]
3: 0xd734a0 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, bool) [claude]
4: 0xd73847 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, bool) [claude]
5: 0xf50c55 [claude]
6: 0xf51b58 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [claude]
7: 0xf62053 [claude]
8: 0xf62ec8 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [claude]
9: 0xf3d81e v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [claude]
10: 0xf3ebe7 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [claude]
11: 0xf1f160 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [claude]
12: 0xf16bd4 v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Map, v8::internal::AllocationAlignment) [claude]
13: 0xf224f2 v8::internal::Factory::NewInternalizedStringImpl(v8::internal::Handle<v8::internal::String>, int, unsigned int) [claude]
14: 0x11ecc19 v8::internal::Handle<v8::internal::String> v8::internal::StringTable::LookupKey<v8::internal::InternalizedStringKey, v8::internal::Isolate>(v8::internal::Isolate, v8::internal::InternalizedStringKey) [claude]
15: 0x11ecd84 v8::internal::StringTable::LookupString(v8::internal::Isolate*, v8::internal::Handle<v8::internal::String>) [claude]
16: 0x12f07ad v8::internal::Runtime_SetKeyedProperty(int, unsigned long, v8::internal::Isolate) [claude]
17: 0x1711cb9 [claude]
Aborted (core dumped)
samuel@pop-os:~$

Environment Info

  • Platform: linux
  • Terminal: rio
  • Version: 1.0.24
  • Feedback ID: efd38694-ea09-4ae6-8bf9-21f07327238e

Errors

[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)\n    at new NodeError (node:internal/errors:405:5)\n    at Socket.onChildStdout (node:child_process:490:14)\n    at Socket.emit (node:events:517:28)\n    at Socket.emit (node:domain:489:12)\n    at addChunk (node:internal/streams/readable:368:12)\n    at readableAddChunk (node:internal/streams/readable:337:11)\n    at Readable.push (node:internal/streams/readable:278:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)","timestamp":"2025-06-16T17:17:48.064Z"}]

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗