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: Javascript heap out of memory #22

Open
rodrigooler opened this issue May 16, 2017 · 1 comment
Open

FATAL ERROR: Javascript heap out of memory #22

rodrigooler opened this issue May 16, 2017 · 1 comment
Labels

Comments

@rodrigooler
Copy link

Hello everyone, I tried to test but unfortunately it did not work ... below are the settings made and the error log occurred.

webpack.prod.config.js:

...
const PrepackWebpackPlugin = require('prepack-webpack-plugin').default;
...
const configuration = {};
...
    new PrepackWebpackPlugin(configuration),
...
oler ~/Projects/private/private/private-project[feature/prepack-webpack*]$ yarn build
yarn build v0.23.4
$ webpack -p --config webpack.prod.config.js --progress --profile --colors 
20665ms building modules                                                                   
151ms sealing
0ms optimizing 
0ms basic module optimization 
48ms module optimization
949ms advanced module optimization
71ms basic chunk optimization       
28ms chunk optimization
0ms basic chunk optimization        
18ms chunk optimization       
0ms basic chunk optimization        
10ms chunk optimization       
0ms basic chunk optimization        
10ms chunk optimization       
6ms advanced chunk optimization 
0ms module and chunk tree optimization 
81ms module reviving
0ms module order optimization 
9ms module id optimization 
9ms chunk reviving 
0ms chunk order optimization 
29ms chunk id optimization
124ms hashing
1ms module assets processing 
308ms chunk assets processing
10ms additional chunk assets processing
0ms recording 
 91% additional asset processing
<--- Last few GCs --->

[48230:0x103000000]   242410 ms: Mark-sweep 1401.5 (1496.5) -> 1401.4 (1465.5) MB, 2911.0 / 0.0 ms  (+ 0.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 2911 ms) last resort 
[48230:0x103000000]   245147 ms: Mark-sweep 1401.4 (1465.5) -> 1401.4 (1465.5) MB, 2734.6 / 0.0 ms  last resort 


<--- JS stacktrace --->

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

Security context: 0x68aea0a66a1 <JS Object>
    1: visitQueue [/Users/oler/Projects/private/private/private-project/node_modules/babel-traverse/lib/context.js:~114] [pc=0x47fb9e7cd52](this=0x1e114403e1f1 <a TraversalContext with map 0x3b773b974a31>,queue=0x1e114403e239 <JS Array[1]>)
    2: node [/Users/oler/Projects/private/private/private-project/node_modules/babel-traverse/lib/index.js:~94] [pc=0x47fba07c66a](this=0xb3970eba7b1 <JS Funct...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [/Users/oler/.nvm/versions/node/v7.10.0/bin/node]
 2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/Users/oler/.nvm/versions/node/v7.10.0/bin/node]
 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/Users/oler/.nvm/versions/node/v7.10.0/bin/node]
 4: v8::internal::Factory::NewByteArray(int, v8::internal::PretenureFlag) [/Users/oler/.nvm/versions/node/v7.10.0/bin/node]
 5: v8::internal::Factory::NewCode(v8::internal::CodeDesc const&, unsigned int, v8::internal::Handle<v8::internal::Object>, bool, bool, int, bool) [/Users/oler/.nvm/versions/node/v7.10.0/bin/node]
 6: v8::internal::PropertyAccessCompiler::GetCodeWithFlags(unsigned int, char const*) [/Users/oler/.nvm/versions/node/v7.10.0/bin/node]
 7: v8::internal::NamedLoadHandlerCompiler::CompileLoadNonexistent(v8::internal::Handle<v8::internal::Name>) [/Users/oler/.nvm/versions/node/v7.10.0/bin/node]
 8: v8::internal::NamedLoadHandlerCompiler::ComputeLoadNonexistent(v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Map>) [/Users/oler/.nvm/versions/node/v7.10.0/bin/node]
 9: v8::internal::LoadIC::UpdateCaches(v8::internal::LookupIterator*) [/Users/oler/.nvm/versions/node/v7.10.0/bin/node]
10: v8::internal::LoadIC::Load(v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Name>) [/Users/oler/.nvm/versions/node/v7.10.0/bin/node]
11: v8::internal::Runtime_LoadIC_Miss(int, v8::internal::Object**, v8::internal::Isolate*) [/Users/oler/.nvm/versions/node/v7.10.0/bin/node]
12: 0x47fb95843a7
✨  Done in 245.39s.
@gajus gajus added the question label May 16, 2017
@jorawarsingh
Copy link

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

No branches or pull requests

3 participants