Luckysheet [BUG]Find a bug 拉取最新代码,执行npm run dev 和npm run build 内存溢出,本地保存的很久之前拉取下来的代码没这个问题

u0njafvf  于 3个月前  发布在  其他
关注(0)|答案(1)|浏览(48)

拉取最新代码,执行npm run dev 和npm run build 内存溢出,本地保存的很久之前拉取下来的代码没这个问题

91zkwejq

91zkwejq1#

同样遇到这个问题,第一次使用这个工程,master 分支
``
==== JS stack trace =========================================

0: ExitFrame [pc: 0xdd822b5be3d]

Security context: 0x35555179e6e9
1: values [0x355551785211](this=0x355551784639 <JSFunction Object (sfi = 0x35559690e301)>,0x3555744040f1 )
2: deoptimizeThisOnEventAtPath [0x35551da3c8f1] [/Users/zxb/Projects/Luckysheet/node_modules/rollup/dist/shared/rollup.js:~3849] [pc=0xdd823c2c062](this=0x355574402331 ,event=1,p...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x10096d6b6 node::Abort() (.cold.1) [/usr/local/opt/node@10/bin/node]
2: 0x10003b9e6 node_module_register [/usr/local/opt/node@10/bin/node]
3: 0x10003bba7 node::OnFatalError(char const*, char const*) [/usr/local/opt/node@10/bin/node]
4: 0x100178ef3 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/opt/node@10/bin/node]
5: 0x100178e95 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/opt/node@10/bin/node]
6: 0x10042d408 v8::internal::Heap::UpdateSurvivalStatistics(int) [/usr/local/opt/node@10/bin/node]
7: 0x10042f045 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [/usr/local/opt/node@10/bin/node]
8: 0x10042c6e2 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/local/opt/node@10/bin/node]
9: 0x10042b4f3 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/opt/node@10/bin/node]
10: 0x100433b1a v8::internal::Heap::AllocateRawWithLigthRetry(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/usr/local/opt/node@10/bin/node]
11: 0x100433b64 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/usr/local/opt/node@10/bin/node]
12: 0x100414341 v8::internal::Factory::AllocateRawArray(int, v8::internal::PretenureFlag) [/usr/local/opt/node@10/bin/node]
13: 0x100413d52 v8::internal::Factory::NewFixedArrayWithFiller(v8::internal::Heap::RootListIndex, int, v8::internal::Object*, v8::internal::PretenureFlag) [/usr/local/opt/node@10/bin/node]
14: 0x10053261f v8::internal::OrderedHashTable<v8::internal::OrderedHashSet, 1>::Allocate(v8::internal::Isolate*, int, v8::internal::PretenureFlag) [/usr/local/opt/node@10/bin/node]
15: 0x1004c815e v8::internal::KeyAccumulator::AddKey(v8::internal::Handlev8::internal::Object, v8::internal::AddKeyConversion) [/usr/local/opt/node@10/bin/node]
16: 0x10051cc1d v8::internal::BaseNameDictionary<v8::internal::NameDictionary, v8::internal::NameDictionaryShape>::CollectKeysTo(v8::internal::Handlev8::internal::NameDictionary, v8::internal::KeyAccumulator*) [/usr/local/opt/node@10/bin/node]
17: 0x1004ca282 v8::internal::KeyAccumulator::CollectOwnPropertyNames(v8::internal::Handlev8::internal::JSReceiver, v8::internal::Handlev8::internal::JSObject) [/usr/local/opt/node@10/bin/node]
18: 0x1004c90e4 v8::internal::KeyAccumulator::CollectOwnKeys(v8::internal::Handlev8::internal::JSReceiver, v8::internal::Handlev8::internal::JSObject) [/usr/local/opt/node@10/bin/node]
19: 0x1004c873e v8::internal::KeyAccumulator::CollectKeys(v8::internal::Handlev8::internal::JSReceiver, v8::internal::Handlev8::internal::JSReceiver) [/usr/local/opt/node@10/bin/node]
20: 0x1004c9507 v8::internal::FastKeyAccumulator::GetKeysSlow(v8::internal::GetKeysConversion) [/usr/local/opt/node@10/bin/node]
21: 0x1004c7fea v8::internal::KeyAccumulator::GetKeys(v8::internal::Handlev8::internal::JSReceiver, v8::internal::KeyCollectionMode, v8::internal::PropertyFilter, v8::internal::GetKeysConversion, bool, bool) [/usr/local/opt/node@10/bin/node]
22: 0x10050440e v8::internal::GetOwnValuesOrEntries(v8::internal::Isolate*, v8::internal::Handlev8::internal::JSReceiver, v8::internal::PropertyFilter, bool, bool) [/usr/local/opt/node@10/bin/node]
23: 0x100609671 v8::internal::Runtime_ObjectValuesSkipFastPath(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/opt/node@10/bin/node]

相关问题