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

Javascript heap out of memory error #78

Open
Discordius opened this issue Aug 3, 2019 · 0 comments
Open

Javascript heap out of memory error #78

Discordius opened this issue Aug 3, 2019 · 0 comments

Comments

@Discordius
Copy link

Hey, I am getting the following error when trying to use HMR on my current bundle:

I20190803-12:24:37.784(-7)? <--- Last few GCs --->
I20190803-12:24:37.785(-7)? 
I20190803-12:24:37.785(-7)? [13338:0x103000000]   277033 ms: Mark-sweep 1108.0 (1434.0) -> 1107.3 (1435.5) MB, 735.8 / 0.1 ms  allocation failure GC in old space requested
I20190803-12:24:37.785(-7)? [13338:0x103000000]   277790 ms: Mark-sweep 1107.3 (1435.5) -> 1106.7 (1380.5) MB, 756.9 / 0.0 ms  last resort GC in old space requested
I20190803-12:24:37.785(-7)? [13338:0x103000000]   278537 ms: Mark-sweep 1106.7 (1380.5) -> 1106.7 (1362.0) MB, 747.0 / 0.0 ms  last resort GC in old space requested
I20190803-12:24:37.785(-7)? 
I20190803-12:24:37.786(-7)? 
I20190803-12:24:37.786(-7)? <--- JS stacktrace --->
I20190803-12:24:37.786(-7)? 
I20190803-12:24:37.786(-7)? ==== JS stack trace =========================================
I20190803-12:24:37.786(-7)? 
I20190803-12:24:37.786(-7)? Security context: 0x389b5caa58b9 <JSObject>
I20190803-12:24:37.787(-7)?     1: stringSlice(aka stringSlice) [buffer.js:560] [bytecode=0x389bfcccb989 offset=94](this=0x389b7ae822d1 <undefined>,buf=0x389bbb5bf7c9 <Uint8Array map = 0x389ba594bd11>,encoding=0x389b5cab5b89 <String[4]: utf8>,start=0,end=45220306)
I20190803-12:24:37.787(-7)?     2: toString [buffer.js:~609] [pc=0x16fea1251e2](this=0x389bbb5bf7c9 <Uint8Array map = 0x389ba594bd11>,encoding=0x389b5cab5b89 <String[4]: utf8>,start=0x389b7...
I20190803-12:24:37.787(-7)? 
W20190803-12:24:37.792(-7)? (STDERR) FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

I have experience with this error and usually fix it by setting the environment variables TOOL_NODE_FLAGS and NODE_OPTIONS, but it appears that neither of them gets properly passed through to the webpack node instance.

Is there any way to properly pass through those environment variables?

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

1 participant