iflow cli 崩溃退出了,我抓到了错误信息,希望对dev有用

在出错之前,我正在调用sub agen做调研

<— Last few GCs —>

[197885:0x2171c000] 11746618 ms: Mark-Compact (reduce) 4033.4 (4085.1) → 4033.4 (4054.1) MB, pooled: 0 MB, 137.64 / 0.00 ms (average mu = 0.341, current mu = 0.000) last resort; GC in old space requested
[197885:0x2171c000] 11746722 ms: Mark-Compact (reduce) 4033.4 (4054.1) → 4033.4 (4054.1) MB, pooled: 0 MB, 103.55 / 0.00 ms (average mu = 0.222, current mu = 0.000) last resort; GC in old space requested

<— JS stacktrace —>

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

1: 0xe1bdfe node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/usr/local/bin/node]
2: 0x123e800 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/usr/local/bin/node]
3: 0x123ead7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/usr/local/bin/node]
4: 0x145b66c v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
5: 0x143387e v8::internal::factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/usr/local/bin/node]
6: 0x1422974 v8::internal::FactoryBasev8::internal::Factory::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Taggedv8::internal::Map, v8::internal::AllocationAlignment) [/usr/local/bin/node]
7: 0x142487f v8::internal::FactoryBasev8::internal::Factory::NewRawTwoByteString(int, v8::internal::AllocationType) [/usr/local/bin/node]
8: 0x1779355 v8::internal::String::SlowFlatten(v8::internal::Isolate*, v8::internal::Handlev8::internal::ConsString, v8::internal::AllocationType) [/usr/local/bin/node]
9: 0x1880d54 v8::internal::RegExpImpl::IrregexpExec(v8::internal::Isolate*, v8::internal::Handlev8::internal::JSRegExp, v8::internal::Handlev8::internal::String, int, v8::internal::Handlev8::internal::RegExpMatchInfo, v8::internal::RegExp::ExecQuirks) [/usr/local/bin/node]
10: 0x18a87d8 v8::internal::Runtime_RegExpExecTreatMatchAtEndAsFailure(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]
11: 0x718147eac476
(node:197873) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(Use node --trace-warnings ... to show where the warning was created)

你的系统内存多大?

16G,占用仅4g

我看正常iflow也就只占到1G多的空间啊,是并行的agent开多了?


这个设置一下
然后下次直接在管理员模式下的Powershell里面运行

我机子上还跑着测试环境,稍微占用一点其实内存足够的。就一个sub agent在跑explore,但是自己在那跑了半小时,其实不应该卡这么久的,新版本会经常自己调用默认的系统agent,都不调用oh-my-iflow,搞的很困扰,自己都没法设定用别的模型。

好的,我在iflow的settings里面加上了,看看效果

1 个赞