[Bug] JavaScript heap out of memory during file operations

Resolved 💬 3 comments Opened Jan 17, 2026 by jamestjsp Closed Jan 20, 2026

Bug Description

<--- Last few GCs --->

[1395:0x8f0000000] 6865951 ms: Mark-Compact 3172.3 (4224.9) -> 3166.5 (4224.7) MB, pooled: 8 MB, 63.46 / 0.00 ms (average mu = 0.177, current mu = 0.228) allocation failure; GC in old space requested
[1395:0x8f0000000] 6866038 ms: Mark-Compact 3167.3 (4224.9) -> 3166.6 (4224.9) MB, pooled: 8 MB, 84.96 / 0.00 ms (average mu = 0.100, current mu = 0.022) allocation failure; scavenge might not succeed

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

1: 0x10289e034 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
2: 0x1029d51a8 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
3: 0x1029d5160 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
4: 0x102b91968 v8::internal::Heap::ShouldOptimizeForLoadTime() const [/opt/homebrew/Cellar/node/24.10.0/bin/node]
5: 0x102b90308 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
6: 0x102b88584 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
7: 0x102b62054 v8::internal::MaybeHandle<v8::internal::SeqTwoByteString> v8::internal::FactoryBase<v8::internal::Factory>::NewRawStringWithMap<v8::internal::SeqTwoByteString>(int, v8::internal::Tagged<v8::internal::Map>, v8::internal::AllocationType) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
8: 0x102b72144 v8::internal::Factory::NewStringFromUtf8(v8::base::Vector<unsigned char const>, unibrow::Utf8Variant, v8::internal::AllocationType) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
9: 0x1029eaec4 v8::String::NewFromUtf8(v8::Isolate, char const, v8::NewStringType, int) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
10: 0x10386f320 node::fs::ReadFileUtf8(v8::FunctionCallbackInfo<v8::Value> const&) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
11: 0x10320e818 Builtins_CallApiCallbackGeneric [/opt/homebrew/Cellar/node/24.10.0/bin/node]
12: 0x127a81f48
13: 0x128bc8a64
14: 0x1289cdf54
15: 0x127fcc2e4
16: 0x128292ce0
17: 0x128290b00
18: 0x1289f24c0
19: 0x1283fb990
20: 0x1285b3548
21: 0x10320a8cc Builtins_JSEntryTrampoline [/opt/homebrew/Cellar/node/24.10.0/bin/node]
22: 0x10320a570 Builtins_JSEntry [/opt/homebrew/Cellar/node/24.10.0/bin/node]
23: 0x102afbbac v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
24: 0x102afb59c v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::DirectHandle<v8::internal::Object>, v8::internal::DirectHandle<v8::internal::Object>, v8::base::Vector<v8::internal::DirectHandle<v8::internal::Object> const>) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
25: 0x1029e63b4 v8::Function::Call(v8::Isolate, v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
26: 0x102800be8 node::InternalMakeCallback(node::Environment, v8::Local<v8::Object>, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>, node::async_context, v8::Local<v8::Value>) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
27: 0x102800eb4 node::InternalMakeCallback(v8::Isolate, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>, node::async_context, v8::Local<v8::Value>) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
28: 0x10285522c node::Environment::CheckImmediate(uv_check_s*) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
29: 0x1065d4214 uv__run_check [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib]
30: 0x1065ceb88 uv_run [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib]
31: 0x10280140c node::SpinEventLoopInternal(node::Environment*) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
32: 0x1028ca684 node::NodeMainInstance::Run(node::ExitCode, node::Environment) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
33: 0x1028ca418 node::NodeMainInstance::Run() [/opt/homebrew/Cellar/node/24.10.0/bin/node]
34: 0x102874fb0 node::Start(int, char**) [/opt/homebrew/Cellar/node/24.10.0/bin/node]
35: 0x186cf9d54 start [/usr/lib/dyld]
[1] 1395 abort claude --dangerously-skip-permissions

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.11
  • Feedback ID: 406dea2c-458c-44d2-8ae1-675a6114a071

Errors

[{"error":"Error: Error opening file /Users/josephj/.claude/projects/-Users-josephj-Workspace-slicot-c/375337ce-f7bc-4763-86e9-30b27e43a28a.jsonl: RangeError [ERR_FS_FILE_TOO_LARGE]: File size (3466602509) is greater than 2 GiB

Note: Error logs were truncated.

View original on GitHub ↗

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