打包栈溢出问题咋解决呀

提问 3 1717
programmer
programmer 2023-05-26
版本:renren-cloud 3.11.0 开发环境:
transforming (4369) node_modules\_monaco-editor@0.25.2@monaco-editor\esm\vs\base\parts\quickinput\browser\media\quickInput.cssUse of eval is strongly discouraged, as it poses security risks and may cause issues with minification Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification ✓ 4379 modules transformed. transforming (4385) node_modules\_@intlify_vue-devtools@9.1.9@@intlify\vue-devtools\dist\vue-devtools.esm-bundler.js <--- Last few GCs ---> [33232:000001CCB4609020] 203413 ms: Mark-sweep (reduce) 2035.4 (2084.8) -> 2033.9 (2082.3) MB, 2780.3 / 0.0 ms (average mu = 0.540, current mu = 0.004) allocation failure scavenge might not succeed [33232:000001CCB4609020] 206075 ms: Mark-sweep (reduce) 2035.8 (2083.3) -> 2034.9 (2083.6) MB, 2658.7 / 0.0 ms (average mu = 0.360, current mu = 0.001) allocation failure scavenge might not succeed <--- JS stacktrace ---> FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory 1: 00007FF60CA286BF v8::internal::Isolate::ArchiveSpacePerThread+4719 2: 00007FF60C9BB246 v8::internal::wasm::WasmCode::safepoint_table_offset+67414 3: 00007FF60C9BC126 node::OnFatalError+294 4: 00007FF60D3343BE v8::Isolate::ReportExternalAllocationLimitReached+94 5: 00007FF60D31B35D v8::SharedArrayBuffer::Externalize+781 6: 00007FF60D19BB9C v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1452 7: 00007FF60D19907B v8::internal::Heap::CollectGarbage+3675 8: 00007FF60D196B75 v8::internal::Heap::AllocateExternalBackingStore+1653 9: 00007FF60D1BA291 v8::internal::Factory::NewFillerObject+209 10: 00007FF60CECE07A v8::internal::DateCache::Weekday+1386 11: 00007FF60D3B97B1 v8::internal::SetupIsolateDelegate::SetupHeap+454961 12: 00007FF60D3CE9A6 v8::internal::SetupIsolateDelegate::SetupHeap+541478 13: 00007FF60D3539B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689 14: 00007FF60D3539B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689 15: 00007FF60D3539B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689 16: 00007FF60D3D521E v8::internal::SetupIsolateDelegate::SetupHeap+568222 17: 00007FF60D3539B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689 18: 00007FF60D3539B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689 19: 00007FF60D37FCB3 v8::internal::SetupIsolateDelegate::SetupHeap+218675 20: 00007FF60D4013A5 v8::internal::SetupIsolateDelegate::SetupHeap+748837 21: 00007FF60D373513 v8::internal::SetupIsolateDelegate::SetupHeap+167571 22: 00007FF60D351B0B v8::internal::SetupIsolateDelegate::SetupHeap+29835 23: 00007FF60D20A0E3 v8::internal::Execution::CallWasm+1891 24: 00007FF60D20A1EB v8::internal::Execution::CallWasm+2155 25: 00007FF60D20AC5A v8::internal::Execution::TryCall+378 26: 00007FF60D1E7945 v8::internal::MicrotaskQueue::RunMicrotasks+501 27: 00007FF60D1E76A0 v8::internal::MicrotaskQueue::PerformCheckpoint+32 28: 00007FF60CA577B4 node::CallbackScope::~CallbackScope+692 29: 00007FF60CA5756E node::CallbackScope::~CallbackScope+110 30: 00007FF60C9A4340 v8::base::CPU::has_sse+30784 31: 00007FF60CA8BB67 uv_timer_stop+775 32: 00007FF60CA8835B uv_async_send+331 33: 00007FF60CA87AEC uv_loop_init+1292 34: 00007FF60CA87C8A uv_run+202
回帖
  • 我们才找了几台笔记本测试,都能正常打包啊,可以尝试把多余的应用关闭试试,看能不能正常打包,如果还不能的话,需要提供一下node版本号、CPU型号和内存大小
    0
  • programmer
    programmer (楼主)
    2023-05-26
    @Mark node 版本v16.0.0 运行内存16gb CPUAMD Ryzen 7 4800H with Radeon Graphics 运行内存没满就打包不了了 不知道为啥face[泪]
    0
  • programmer
    programmer (楼主)
    2023-05-26
    @Mark 我又按你说的“可以尝试把多余的应用关闭试试,看能不能正常打包” 全关了应用再打包可以了
    0
本帖已结贴