0.5版本BUG,skills执行过程GC

<--- Last few GCs --->

[29472:000002403688A000]   574325 ms: Mark-Compact (reduce) 4094.8 (4098.5) -> 4093.0 (4097.0) MB, pooled: 0.0 MB, 20.95 / 0.19 ms (+ 13.6 ms in 31 steps since start of marking, biggest step 5.0 ms, walltime since start of marking 45 ms) (average mu = 0.3[29472:000002403688A000]   574377 ms: Mark-Compact 4094.0 (4097.0) -> 4092.9 (4096.7) MB, pooled: 0.8 MB, 46.76 / 0.47 ms (average mu = 0.234, current mu = 0.103) allocation failure; scavenge might not succeed

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 00007FF6C69CB106 node::OnFatalError+1318
 2: 00007FF6C7569C67 v8::Function::NewInstance+423
 3: 00007FF6C7378077 EVP_PKEY_asn1_set_get_priv_key+463063
 4: 00007FF6C737BF87 EVP_PKEY_asn1_set_get_priv_key+479207
 5: 00007FF6C738DB88 v8::internal::StrongRootAllocatorBase::deallocate_impl+19176
 6: 00007FF6C738D3BB v8::internal::StrongRootAllocatorBase::deallocate_impl+17179
 7: 00007FF6C894F9AD v8::base::DiyFp::Multiply+10628941
 8: 00007FF6C73759A8 EVP_PKEY_asn1_set_get_priv_key+453128
 9: 00007FF6C73935E0 X509_STORE_set_cleanup+5664
10: 00007FF6C739230E X509_STORE_set_cleanup+846
11: 00007FF6C739FC23 EVP_PKEY_meth_set_digestsign+20307
12: 00007FF6C73A3F04 EVP_PKEY_meth_set_digestsign+37428
13: 00007FF6C71032B6 v8::RegExp::GetFlags+315894
14: 00007FF6C7527765 v8::internal::ThreadIsolation::LookupJumpTableAllocations+429861
15: 000002406E7BB43A

执行skills过程中被GC

环境win10,
$ node v25.2.1

不需要用skills也会堆栈溢出,只需要普通对话就能触发这个bug

1 个赞

目前官方在对新版本进行修复优化,如果影响当前使用可以暂时回退
npm i -g @iflow-ai/iflow-cli@0.4.16-beta-20260113

2 个赞

旧版本0.4x也会

收到,那我们再看看。
另外发生这类问题时,~/.iflow/log 这个目录下有退出前的一些异常日志,方便的话可以发我下,我们看看