Summary
randomly shows this when working.
[21711:0x7e280c000] 79291180 ms: Mark-Compact 4091.8 (4100.7) -> 4088.6 (4100.2) MB, pooled: 0.5 MB, 236.71 / 0.04 ms (average mu = 0.226, current mu = 0.083) allocation failure; scavenge might not succeed
[21711:0x7e280c000] 79291759 ms: Incremental Mark-Compact (reduce) 4094.5 (4104.3) -> 4092.6 (4099.8) MB, pooled: 0.0 MB, 501.76 / 0.01 ms (+ 0.3 ms in 65 steps since start of marking, biggest step 0.3 ms, walltime since start of marking 511 ms) (average
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 0x10657e8e0 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
2: 0x105844780 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
3: 0x105844730 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
4: 0x1059f90bc v8::internal::Heap::IsLoadingInitialized() const [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
5: 0x1059f8570 v8::internal::Heap::OldGenerationConsumedBytes() const [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
6: 0x1059f7918 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags, v8::internal::PerformHeapLimitCheck, v8::internal::PerformIneffectiveMarkCompactCheck) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
7: 0x1059eec88 v8::internal::HeapAllocator::CollectGarbageAndRetryAllocation(v8::base::FunctionRef<bool ()>, v8::internal::AllocationType) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
8: 0x1059eeb88 v8::internal::HeapAllocator::RetryCustomAllocate(v8::base::FunctionRef<bool ()>, v8::internal::AllocationType) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
9: 0x1059ee658 v8::internal::HeapAllocator::RetryCustomAllocateOrFail(v8::base::FunctionRef<bool ()>, v8::internal::AllocationType) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
10: 0x1059ee5b0 v8::internal::HeapAllocator::AllocateRawSlowPath(v8::internal::HeapAllocator::AllocationRetryMode, int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment, v8::internal::AllocationHint) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
11: 0x1059d4e08 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
12: 0x105cf101c v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
13: 0x105338cac Builtins_CEntry_Return1_ArgvOnStack_NoBuiltinExit [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
14: 0x10529812c Builtins_GrowFastSmiOrObjectElements [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
15: 0x117dc0c5c
16: 0x1183b89e0
17: 0x117c07270
18: 0x117884100
19: 0x117c21b58
20: 0x117c831e0
21: 0x117ff6f08
22: 0x117fe2330
23: 0x1184f9e2c
24: 0x117bc862c
25: 0x117856e34
26: 0x105292788 Builtins_JSEntryTrampoline [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
27: 0x105292478 Builtins_JSEntry [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
28: 0x10595d7b0 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
29: 0x10595d1e8 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::DirectHandlev8::internal::Object, v8::internal::DirectHandlev8::internal::Object, v8::base::Vector<v8::internal::DirectHandlev8::internal::Object const>) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
30: 0x1066248e0 v8::Function::Call(v8::Isolate*, v8::Localv8::Context, v8::Localv8::Value, int, v8::Localv8::Value) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
31: 0x10547c310 node::InternalMakeCallback(node::Environment, v8::Localv8::Object, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value, node::async_context, v8::Localv8::Value) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
32: 0x10547c618 node::InternalMakeCallback(v8::Isolate, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value, node::async_context, v8::Localv8::Value) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
33: 0x106560474 node::Environment::CheckImmediate(uv_check_s) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
34: 0x100b3c24c uv__run_check [/opt/homebrew/Cellar/libuv/1.52.1/lib/libuv.1.0.0.dylib]
35: 0x100b36b94 uv_run [/opt/homebrew/Cellar/libuv/1.52.1/lib/libuv.1.0.0.dylib]
36: 0x10547cfd0 node::SpinEventLoopInternal(node::Environment*) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
37: 0x10554d974 node::NodeMainInstance::Run(node::ExitCode*, node::Environment*) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
38: 0x10554d6a8 node::NodeMainInstance::Run() [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
39: 0x1054f12d0 node::Start(int, char**) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
40: 0x18f1f3e00 start [/usr/lib/dyld]
[2] 21711 abort command-code
Expected Behavior
it should not show this.
Actual Behavior
shows the long bug
Steps to reproduce the issue
use deepseek v4 pro and have ~574k tokens in context
Command Code Version
0.30.2
Operating System
macOS
Terminal/IDE
terminal
Shell
No response
Additional context
No response
Summary
randomly shows this when working.
[21711:0x7e280c000] 79291180 ms: Mark-Compact 4091.8 (4100.7) -> 4088.6 (4100.2) MB, pooled: 0.5 MB, 236.71 / 0.04 ms (average mu = 0.226, current mu = 0.083) allocation failure; scavenge might not succeed
[21711:0x7e280c000] 79291759 ms: Incremental Mark-Compact (reduce) 4094.5 (4104.3) -> 4092.6 (4099.8) MB, pooled: 0.0 MB, 501.76 / 0.01 ms (+ 0.3 ms in 65 steps since start of marking, biggest step 0.3 ms, walltime since start of marking 511 ms) (average
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 0x10657e8e0 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
2: 0x105844780 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
3: 0x105844730 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
4: 0x1059f90bc v8::internal::Heap::IsLoadingInitialized() const [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
5: 0x1059f8570 v8::internal::Heap::OldGenerationConsumedBytes() const [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
6: 0x1059f7918 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags, v8::internal::PerformHeapLimitCheck, v8::internal::PerformIneffectiveMarkCompactCheck) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
7: 0x1059eec88 v8::internal::HeapAllocator::CollectGarbageAndRetryAllocation(v8::base::FunctionRef<bool ()>, v8::internal::AllocationType) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
8: 0x1059eeb88 v8::internal::HeapAllocator::RetryCustomAllocate(v8::base::FunctionRef<bool ()>, v8::internal::AllocationType) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
9: 0x1059ee658 v8::internal::HeapAllocator::RetryCustomAllocateOrFail(v8::base::FunctionRef<bool ()>, v8::internal::AllocationType) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
10: 0x1059ee5b0 v8::internal::HeapAllocator::AllocateRawSlowPath(v8::internal::HeapAllocator::AllocationRetryMode, int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment, v8::internal::AllocationHint) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
11: 0x1059d4e08 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
12: 0x105cf101c v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
13: 0x105338cac Builtins_CEntry_Return1_ArgvOnStack_NoBuiltinExit [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
14: 0x10529812c Builtins_GrowFastSmiOrObjectElements [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
15: 0x117dc0c5c
16: 0x1183b89e0
17: 0x117c07270
18: 0x117884100
19: 0x117c21b58
20: 0x117c831e0
21: 0x117ff6f08
22: 0x117fe2330
23: 0x1184f9e2c
24: 0x117bc862c
25: 0x117856e34
26: 0x105292788 Builtins_JSEntryTrampoline [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
27: 0x105292478 Builtins_JSEntry [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
28: 0x10595d7b0 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
29: 0x10595d1e8 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::DirectHandlev8::internal::Object, v8::internal::DirectHandlev8::internal::Object, v8::base::Vector<v8::internal::DirectHandlev8::internal::Object const>) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
30: 0x1066248e0 v8::Function::Call(v8::Isolate*, v8::Localv8::Context, v8::Localv8::Value, int, v8::Localv8::Value) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
31: 0x10547c310 node::InternalMakeCallback(node::Environment, v8::Localv8::Object, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value, node::async_context, v8::Localv8::Value) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
32: 0x10547c618 node::InternalMakeCallback(v8::Isolate, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value, node::async_context, v8::Localv8::Value) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
33: 0x106560474 node::Environment::CheckImmediate(uv_check_s) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
34: 0x100b3c24c uv__run_check [/opt/homebrew/Cellar/libuv/1.52.1/lib/libuv.1.0.0.dylib]
35: 0x100b36b94 uv_run [/opt/homebrew/Cellar/libuv/1.52.1/lib/libuv.1.0.0.dylib]
36: 0x10547cfd0 node::SpinEventLoopInternal(node::Environment*) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
37: 0x10554d974 node::NodeMainInstance::Run(node::ExitCode*, node::Environment*) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
38: 0x10554d6a8 node::NodeMainInstance::Run() [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
39: 0x1054f12d0 node::Start(int, char**) [/opt/homebrew/Cellar/node/26.0.0/lib/libnode.147.dylib]
40: 0x18f1f3e00 start [/usr/lib/dyld]
[2] 21711 abort command-code
Expected Behavior
it should not show this.
Actual Behavior
shows the long bug
Steps to reproduce the issue
use deepseek v4 pro and have ~574k tokens in context
Command Code Version
0.30.2
Operating System
macOS
Terminal/IDE
terminal
Shell
No response
Additional context
No response