deer-flow icon indicating copy to clipboard operation
deer-flow copied to clipboard

JavaScript heap out of memory

Open kzh2ang opened this issue 4 months ago • 1 comments

pnpm dev 报错,node版本23.1.0 Linux系统

--- Last few GCs --->

[58283:0x7e91000] 14451 ms: Scavenge 10230.6 (10239.3) -> 10230.6 (10243.3) MB, pooled: 0 MB, 1.59 / 0.00 ms (average mu = 0.977, current mu = 0.931) allocation failure; [58283:0x7e91000] 14473 ms: Mark-Compact (reduce) 10241.4 (10254.1) -> 10241.4 (10247.1) MB, pooled: 0 MB, 6.48 / 0.00 ms (+ 0.1 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 21 ms) (average mu = 0.963, cur

<--- JS stacktrace --->

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

1: 0xe80580 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [node] 2: 0x1302590 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node] 3: 0x130292c v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node] 4: 0x1567705 [node] 5: 0x157d162 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node] 6: 0x1555662 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node] 7: 0x1555998 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node] 8: 0x152bdd4 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [node] 9: 0x151a828 v8::internal::FactoryBasev8::internal::Factory::NewRawOneByteString(int, v8::internal::AllocationType) [node] 10: 0x188fe3e v8::internal::String::SlowFlatten(v8::internal::Isolate*, v8::internal::Handlev8::internal::ConsString, v8::internal::AllocationType) [node] 11: 0x19a0993 v8::internal::RegExpImpl::IrregexpExec(v8::internal::Isolate*, v8::internal::Handlev8::internal::IrRegExpData, v8::internal::Handlev8::internal::String, int, v8::internal::Handlev8::internal::RegExpMatchInfo, v8::internal::RegExp::ExecQuirks) [node] 12: 0x19c8146 v8::internal::Runtime_RegExpExec(int, unsigned long*, v8::internal::Isolate*) [node] 13: 0x7f6e0feaf276  ELIFECYCLE  Command failed.

kzh2ang avatar Aug 22 '25 01:08 kzh2ang

@kzh2ang Can you change the node version to the LTS version of 22.x? We need more information to trac the RegExpExec .

WillemJiang avatar Oct 19 '25 13:10 WillemJiang