Skip to content

cli crashed when i was just typing #4315

@ProphetOB

Description

@ProphetOB

What happened?

it finished a task completely and then when i was typing, it crashed:

<--- Last few GCs --->

[21822:0xa93400000] 70561968 ms: Scavenge (interleaved) 2027.9 (2079.0) -> 2024.1 (2079.5) MB, pooled: 0 MB, 13.62 / 0.04 ms (average mu = 0.551, current mu = 0.485) task;
[21822:0xa93400000] 70562036 ms: Scavenge 2029.7 (2079.5) -> 2026.8 (2098.0) MB, pooled: 0 MB, 6.88 / 0.08 ms (average mu = 0.551, current mu = 0.485) allocation failure;

<--- JS stacktrace --->

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

1: 0x102f17798 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/usr/local/bin/node]
2: 0x10313fd48 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/usr/local/bin/node]
3: 0x103329fe8 v8::internal::Heap::stack() [/usr/local/bin/node]
4: 0x1033283f4 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
5: 0x10331d130 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
6: 0x10331d96c v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
7: 0x1032ee68c v8::internal::FactoryBasev8::internal::Factory::AllocateRawArray(int, v8::internal::AllocationType) [/usr/local/bin/node]
8: 0x1035202ac v8::internal::FixedArray::SetAndGrow(v8::internal::Isolate*, v8::internal::Handlev8::internal::FixedArray, int, v8::internal::Handlev8::internal::Object) [/usr/local/bin/node]
9: 0x10363542c v8::internal::ValueDeserializer::ReadDenseJSArray() [/usr/local/bin/node]
10: 0x1036336c8 v8::internal::ValueDeserializer::ReadObjectInternal() [/usr/local/bin/node]
11: 0x103633494 v8::internal::ValueDeserializer::ReadObject() [/usr/local/bin/node]
12: 0x103635500 v8::internal::ValueDeserializer::ReadDenseJSArray() [/usr/local/bin/node]
13: 0x1036336c8 v8::internal::ValueDeserializer::ReadObjectInternal() [/usr/local/bin/node]
14: 0x103633494 v8::internal::ValueDeserializer::ReadObject() [/usr/local/bin/node]
15: 0x10363836c v8::internal::ValueDeserializer::ReadJSObjectProperties(v8::internal::Handlev8::internal::JSObject, v8::internal::SerializationTag, bool) [/usr/local/bin/node]
16: 0x103634afc v8::internal::ValueDeserializer::ReadJSObject() [/usr/local/bin/node]
17: 0x1036338e4 v8::internal::ValueDeserializer::ReadObjectInternal() [/usr/local/bin/node]
18: 0x103633494 v8::internal::ValueDeserializer::ReadObject() [/usr/local/bin/node]
19: 0x10363836c v8::internal::ValueDeserializer::ReadJSObjectProperties(v8::internal::Handlev8::internal::JSObject, v8::internal::SerializationTag, bool) [/usr/local/bin/node]
20: 0x103634afc v8::internal::ValueDeserializer::ReadJSObject() [/usr/local/bin/node]
21: 0x1036338e4 v8::internal::ValueDeserializer::ReadObjectInternal() [/usr/local/bin/node]
22: 0x103633494 v8::internal::ValueDeserializer::ReadObject() [/usr/local/bin/node]
23: 0x1036333c4 v8::internal::ValueDeserializer::ReadObjectWrapper() [/usr/local/bin/node]
24: 0x10314c028 v8::ValueDeserializer::ReadValue(v8::Localv8::Context) [/usr/local/bin/node]
25: 0x102f5f298 node::worker::Message::Deserialize(node::Environment*, v8::Localv8::Context, v8::Localv8::Value) [/usr/local/bin/node]
26: 0x102f68534 node::worker::(anonymous namespace)::StructuredClone(v8::FunctionCallbackInfov8::Value const&) [/usr/local/bin/node]
27: 0x103af30f4 Builtins_CallApiCallbackOptimizedNoProfiling [/usr/local/bin/node]
28: 0x10b59b3d8
29: 0x103aeec0c Builtins_JSEntryTrampoline [/usr/local/bin/node]
30: 0x103aee8f4 Builtins_JSEntry [/usr/local/bin/node]
31: 0x103285d6c v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate
, v8::internal::(anonymous namespace)::InvokeParams const&) [/usr/local/bin/node]
32: 0x1032856b0 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::Object, int, v8::internal::Handlev8::internal::Object) [/usr/local/bin/node]
33: 0x1031564d0 v8::Function::Call(v8::Localv8::Context, v8::Localv8::Value, int, v8::Localv8::Value
) [/usr/local/bin/node]
34: 0x103786dc8 v8_inspector::V8Console::runTask(v8::FunctionCallbackInfov8::Value const&) [/usr/local/bin/node]
35: 0x103af30f4 Builtins_CallApiCallbackOptimizedNoProfiling [/usr/local/bin/node]
36: 0x10b6dbec4
37: 0x10b608594
38: 0x10b608710
39: 0x10b6089e4
40: 0x10b6089e4
41: 0x10b608710
42: 0x10b608710
43: 0x10b6089e4
44: 0x10b608710
45: 0x10b6089e4
46: 0x10b6089e4
47: 0x10b608710
48: 0x10b6089e4
49: 0x10b6089e4
50: 0x10b6089e4
51: 0x10b6089e4
52: 0x10b6089e4
53: 0x10b6089e4
54: 0x10b608710
55: 0x10b6089e4
56: 0x10b6089e4
57: 0x10b608710
58: 0x10b6089e4
59: 0x10b6089e4
60: 0x10b608710
61: 0x10b6089e4
62: 0x10b608710
63: 0x10b6089e4
64: 0x10b608710
65: 0x10b6089e4
66: 0x10b608710
67: 0x10b6089e4
68: 0x10b6089e4
69: 0x10b6089e4
70: 0x10b608710
71: 0x10b37b4ec
72: 0x10b608208
73: 0x10b6089e4
74: 0x10b6089e4
75: 0x10b6089e4
76: 0x10b6089e4
77: 0x10b6089e4
78: 0x10b6089e4
79: 0x10b608710
80: 0x10b6089e4
81: 0x10b37b4ec
82: 0x10b608390
83: 0x10b8d5790
84: 0x10bef47b4
85: 0x10b668da4
86: 0x10b71e710
87: 0x10b8e0e30
88: 0x10b8d8968
89: 0x10b8e3dc8
90: 0x10b25c198
91: 0x10b25b50c
92: 0x10b7737b4
93: 0x103aeec0c Builtins_JSEntryTrampoline [/usr/local/bin/node]
94: 0x103aee8f4 Builtins_JSEntry [/usr/local/bin/node]
95: 0x103285d6c v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/usr/local/bin/node]
96: 0x1032856b0 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::Object, int, v8::internal::Handlev8::internal::Object) [/usr/local/bin/node]
97: 0x1031564d0 v8::Function::Call(v8::Localv8::Context, v8::Localv8::Value, int, v8::Localv8::Value
) [/usr/local/bin/node]
98: 0x102e35c88 node::InternalMakeCallback(node::Environment*, v8::Localv8::Object, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value, node::async_context, v8::Localv8::Value) [/usr/local/bin/node]
99: 0x102e35fac node::InternalMakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value, node::async_context, v8::Localv8::Value) [/usr/local/bin/node]
100: 0x102ea7cdc node::Environment::CheckImmediate(uv_check_s
) [/usr/local/bin/node]
101: 0x103ad5780 uv__run_check [/usr/local/bin/node]
102: 0x103acea14 uv_run [/usr/local/bin/node]
103: 0x102e364e4 node::SpinEventLoopInternal(node::Environment*) [/usr/local/bin/node]
104: 0x102f5ed60 node::NodeMainInstance::Run(node::ExitCode*, node::Environment*) [/usr/local/bin/node]
105: 0x102f5eafc node::NodeMainInstance::Run() [/usr/local/bin/node]
106: 0x102ed5b40 node::Start(int, char**) [/usr/local/bin/node]
107: 0x185467da4 start [/usr/lib/dyld]

What did you expect to happen?

just dont crash..

Client information

│ Qwen Code 0.15.11 (782403d) │
│ Runtime Node.js v22.12.0 / npm 10.9.0 │
│ OS darwin arm64 (25.4.0) │
│ │
│ Auth Coding Plan │
│ Base URL https://coding.dashscope.aliyuncs.com/v1
│ Model glm-5 │
│ Fast Model glm-5 │
│ Session ID ae5cd163-971c-4ca4-8f50-60f33fe1dd17 │
│ Sandbox no sandbox │
│ Proxy no proxy │
│ Memory Usage 127.5 MB

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    category/cliCommand line interface and interactioncategory/performancePerformance and optimizationscope/memory-usageMemory consumptiontype/bugSomething isn't working as expected

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions