Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #4

Open
udhayamgit opened this issue Jul 11, 2019 · 1 comment

Comments

@udhayamgit
Copy link

📦 building modules (10988/10990 modules)DEPRECATION WARNING on line 24 of /Users/udhayamp/freshconsole/choerodon/choerodon-front/node_modules/@choerodon/boot/lib/containers/components/c7n/header/style/Logo.scss:
The operation #3F51B5 minus #0f1216 is deprecated and will be an error in future versions.
Consider using Sass's color functions instead.
http://sass-lang.com/documentation/Sass/Script/Functions.html#other_color_functions

📦 building modules (10994/10994 modules)
<--- Last few GCs --->

[97025:0x103000000] 303283 ms: Mark-sweep 1312.8 (1418.9) -> 1312.8 (1418.9) MB, 652.2 / 0.0 ms allocation failure GC in old space requested
[97025:0x103000000] 303957 ms: Mark-sweep 1312.8 (1418.9) -> 1312.8 (1409.9) MB, 673.3 / 0.0 ms last resort GC in old space requested
[97025:0x103000000] 304817 ms: Mark-sweep 1312.8 (1409.9) -> 1312.8 (1401.9) MB, 854.4 / 0.0 ms last resort GC in old space requested

<--- JS stacktrace --->

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

Security context: 0x359c3be25879
2: replace(this=0x359ca9318421 <Very long string[10762980]>,0x359cf58cfa71 <JSRegExp <String[80]: \bn?exports.push([module.i, \?"(.+?})(?:\?\n)?\?", \?"\?"(?:])|,{)>>,0x359ca9318449 <JSFunction src.replace (sfi = 0x359c8b6fdf49)>)
3: /* anonymous */ [/Users/udhayamp/choerodon/choerodon-front/node_modules/webpack-theme-color-replacer/src/AssetsExtractor.js:~48] ...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [/usr/local/bin/node]
2: node::FatalException(v8::Isolate*, v8::Localv8::Value, v8::Localv8::Message) [/usr/local/bin/node]
3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]
4: v8::internal::Factory::NewRawTwoByteString(int, v8::internal::PretenureFlag) [/usr/local/bin/node]
5: v8::internal::Runtime_StringBuilderConcat(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
6: 0x12a50b0042fd
7: 0x12a50b068f5e
8: 0x12a50b0686c0
9: 0x12a50bd15f7e
10: 0x12a50b00535f
✨ Done in 305.36s.

@HuangQiii
Copy link
Contributor

change dist command in you package like this:

"scripts": {
    "start": "choerodon-front-boot start --config ./react/config.js",
    "dist": "node --max_old_space_size=4096 node_modules/@choerodon/boot/bin/choerodon-front-boot-dist --config ./react/config.js",
  },

expand old space size to solve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants