gulp vscode-linux-x64 Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap

 

构建指令

gulp vscode-linux-x64

故障

<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 0x7fbdcb03a879]
    1: StubFrame [pc: 0x7fbdcb074e65]
Security context: 0x11dcb175b989 <JSObject>
    2: match [0x11dcb174a0b9](this=0x20a9c820dd29 <String[103]: /home/yeqiang/Downloads/src/vscode-1.51.1/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts>,0x16ec05f6dda9 <JSRegExp <String[#62]: ^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$>>)
    3: /* anonymous */ [0x32d74e6010d1] [/home/y...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x7fbdca15b00c node::Abort() [/lib64/libnode.so.72]
 2: 0x7fbdc9f91f4d node::OnFatalError(char const*, char const*) [/lib64/libnode.so.72]
 3: 0x7fbdca4cac1a v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/lib64/libnode.so.72]
 4: 0x7fbdca4caea2 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/lib64/libnode.so.72]
 5: 0x7fbdca669d89  [/lib64/libnode.so.72]
 6: 0x7fbdca67fb47 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/lib64/libnode.so.72]
 7: 0x7fbdca6808bd v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/lib64/libnode.so.72]
 8: 0x7fbdca680c30 v8::internal::Heap::CollectAllGarbage(int, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/lib64/libnode.so.72]
 9: 0x7fbdca632f52 v8::internal::StackGuard::HandleInterrupts() [/lib64/libnode.so.72]
10: 0x7fbdca93c99d v8::internal::NativeRegExpMacroAssembler::CheckStackGuardState(v8::internal::Isolate*, int, v8::internal::RegExp::CallOrigin, unsigned long*, v8::internal::Code, unsigned long*, unsigned char const**, unsigned char const**) [/lib64/libnode.so.72]
11: 0x7fbdcac1237f v8::internal::RegExpMacroAssemblerX64::CheckStackGuardState(unsigned long*, unsigned long, unsigned long) [/lib64/libnode.so.72]
12: 0x30434c497cad 
Aborted (core dumped)

构建指令添加内存参数

yeqiang@harbor vscode-1.51.1]$ gulp vscode-linux-x64 --max_old_space_size=14192
[15:25:52] Node flags detected: --max_old_space_size=14192
[15:25:52] Respawned to PID: 941319
[15:25:54] Using gulpfile ~/Downloads/src/vscode-1.51.1/gulpfile.js
[15:25:54] Starting 'vscode-linux-x64'...
[15:25:54] Starting clean-out-build ...
[15:25:55] Finished clean-out-build after 353 ms
[15:25:55] Starting compile-build ...
[15:25:57] Starting compilation...
[15:27:30] Finished compilation with 0 errors after 93303 ms
[15:27:30] Finished compile-build after 95262 ms
[15:27:30] Starting clean-extensions-build ...
[15:27:30] Finished clean-extensions-build after 87 ms
[15:27:30] Starting bundle-extensions-build ...
[15:28:15] Bundled extension: python/extension.webpack.config.js...
[15:28:17] Bundled extension: git-ui/extension.webpack.config.js...
[15:28:21] Bundled extension: search-result/extension.webpack.config.js...
[15:28:22] Bundled extension: jake/extension.webpack.config.js...
[15:28:22] Bundled extension: gulp/extension.webpack.config.js...
[15:28:22] Bundled extension: grunt/extension.webpack.config.js...
[15:28:22] Bundled extension: debug-auto-launch/extension.webpack.config.js...
[15:28:22] Bundled extension: debug-server-ready/extension.webpack.config.js...
[15:28:23] Bundled extension: image-preview/extension.webpack.config.js...
[15:28:24] Bundled extension: configuration-editing/extension.webpack.config.js...
[15:28:26] Bundled extension: merge-conflict/extension.webpack.config.js...
[15:28:26] Bundled extension: php-language-features/extension.webpack.config.js...
[15:28:32] Bundled extension: extension-editing/extension.webpack.config.js...
[15:28:32] Bundled extension: emmet/extension.webpack.config.js...
[15:28:36] Bundled extension: github-authentication/extension.webpack.config.js...
[15:28:38] Bundled extension: npm/extension.webpack.config.js...
[15:28:42] Bundled extension: css-language-features/extension.webpack.config.js...
[15:28:44] Bundled extension: css-language-features/server/extension.webpack.config.js...
[15:28:44] Bundled extension: json-language-features/server/extension.webpack.config.js...
[15:28:44] Bundled extension: microsoft-authentication/extension.webpack.config.js...
[15:28:44] Bundled extension: html-language-features/extension.webpack.config.js...
[15:28:44] Bundled extension: git/extension.webpack.config.js...
[15:28:44] Bundled extension: github/extension.webpack.config.js...
[15:28:44] Bundled extension: json-language-features/extension.webpack.config.js...
[15:28:44] Bundled extension: markdown-language-features/extension.webpack.config.js...
[15:28:44] Bundled extension: html-language-features/server/extension.webpack.config.js...
[15:28:46] Bundled extension: typescript-language-features/extension.webpack.config.js...
[15:28:46] Finished bundle-extensions-build after 76311 ms
[15:28:46] Starting bundle-marketplace-extensions-build ...
[15:28:46] Downloading extension: ms-vscode.node-debug@1.44.14 ...
[15:28:46] Downloading extension: ms-vscode.node-debug2@1.42.5 ...
[15:28:46] Downloading extension: ms-vscode.references-view@0.0.71 ...
[15:28:46] Downloading extension: ms-vscode.js-debug-companion@1.0.8 ...
[15:28:46] Downloading extension: ms-vscode.js-debug@1.51.0 ...
[15:28:46] Downloading extension: ms-vscode.vscode-js-profile-table@0.0.11 ...
[15:28:50] Finished bundle-marketplace-extensions-build after 3283 ms
[15:28:50] Starting compile-extensions-build ...
[15:28:50] Finished compile-extensions-build after 0 ms
[15:28:50] Starting clean-out-vscode ...
[15:28:50] Finished clean-out-vscode after 3 ms
[15:28:50] Starting optimize-vscode ...
[15:29:22] Finished optimize-vscode after 32555 ms
[15:29:22] Starting clean-vscode-linux-x64 ...
[15:29:23] Finished clean-vscode-linux-x64 after 408 ms
[15:29:23] Starting vscode-linux-x64-ci ...
[15:30:49] Finished vscode-linux-x64-ci after 86006 ms
[15:30:49] Starting vscode-linux-x64 ...
[15:30:49] Finished vscode-linux-x64 after 0 ms
[15:30:49] Finished 'vscode-linux-x64' after 4.9 min
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值