Heap out of memory

Hi all,

Bug report

We as a team encounter a lot of heap errors on our development (approx 1 an hour, sometimes even faster). Can we have a look at this /work this out? I know @sokra is already fixing some memory leaks, however we would like to get ours fixed as well.

What is the current behavior?

「wdm」: Compiling…
92%% after chunk asset optimization SourceMapDevToolPlugin
<— Last few GCs —>

[2697:0x102801e00] 1924201 ms: Mark-sweep 1374.6 (1457.5) -> 1374.5 (1458.0) MB, 620.1 / 0.0 ms allocation failure GC in old space requested
[2697:0x102801e00] 1924928 ms: Mark-sweep 1374.5 (1458.0) -> 1374.4 (1427.0) MB, 726.4 / 0.0 ms last resort GC in old space requested
[2697:0x102801e00] 1925655 ms: Mark-sweep 1374.4 (1427.0) -> 1374.4 (1427.0) MB, 727.3 / 0.0 ms last resort GC in old space requested

<— JS stacktrace —>

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

Security context: 0x1b8f8f7a5879
1: /* anonymous */ [/Users/BartJanvanAssen/Code/PROJECT/frontend/node_modules/webpack-sources/node_modules/source-map/lib/source-node.js:~342] [pc=0x2840bdf8bd5](this=0x1b8faab8c209 ,chunk=0x1b8fc45e2921 <String[26]: var _this = this;\n>,original=0x1b8fb4588a71 )
2: SourceNode_walk [/Users/BartJanvanAssen/Code/PROJECT…

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::NewUninitializedFixedArray(int) [/usr/local/bin/node]
5: v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::FastPackedObjectElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)2> >::GrowCapacity(v8::internal::Handlev8::internal::JSObject, unsigned int) [/usr/local/bin/node]
6: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
7: 0x2840a1042fd

If the current behavior is a bug, please provide the steps to reproduce.
I m working on this…

What is the expected behavior?
to just run with HMR and don’t break

Other relevant information:
webpack version: cli 2.1.3 webpack-dev-server@3.1.4: webpack@4.16.0:
Node.js version: v8.11.2
Operating System: MacOS

Author: Fantashit

2 thoughts on “Heap out of memory

  1. It looks like you just deleted our lovely crafted issue template. It was there for good reasons. Please help us solving your issue by answering the questions asked in this template. I’m closing this. Please either update the issue with the template and reopen, or open a new issue.

Comments are closed.