enviroment
ember-cli: 2.16.2
node: 6.10.2
npm:3.10.10
os: win32 x64
steps
- ember new testapp
- ember init
- ember build
error info
Warning: failed to stat C:\Users\haohao\Desktop\ember\myapp\node_modules\.npmins
tall\babel-core\6.26.0\babel-core\node_modules\babel-register\node_modules\babel
-core\node_modules\babel-register\node_modules\babel-core\node_modules\babel-reg
ister\node_modules\babel-core\node_modules\babel-register\node_modules\babel-cor
e\node_modules\babel-register\node_modules\babel-core\node_modules\babel-registe
r\node_modules\babel-core\node_modules\babel-register\node_modules\babel-core\no
de_modules\babel-register\node_modules\babel-core\node_modules\babel-register\no
de_modules\babel-core\node_modules\babel-register\node_modules\babel-core\node_m
odules\babel-register\node_modules\babel-core\node_modules\babel-register\node_m
odules\babel-core\node_modules\babel-register\node_modules\babel-core\node_modul
es\babel-helpers\node_modules\babel-template\node_modules\babel-traverse\node_mo
dules\babel-code-frame\node_modules\chalk\node_modules\ansi-styles
<--- Last few GCs --->
1319016 ms: Mark-sweep 1379.6 (1435.3) -> 1379.6 (1435.3) MB, 1440.3 / 0.0 ms [
allocation failure] [GC in old space requested].
1320465 ms: Mark-sweep 1379.6 (1435.3) -> 1379.6 (1417.3) MB, 1448.9 / 0.0 ms [
last resort gc].
1321894 ms: Mark-sweep 1379.6 (1417.3) -> 1379.6 (1417.3) MB, 1428.7 / 0.0 ms [
last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0000033E515CFB49 <JS Object>
2: keysForTree [C:\Users\haohao\Desktop\ember\myapp\node_modules\.npminstall
\broccoli-kitchen-sink-helpers\0.3.1\broccoli-kitchen-sink-helpers\index.js:37]
[pc=000001894C420AD7] (this=0000016DEC88C869 <JS Global Object>,fullPath=0000019
DDCDF14A1 <String[906]: C:\Users\haohao\Desktop\ember\myapp\node_modules\.npmins
tall\babel-core\6.26.0\babel-core\node_modules\babel-register\node_modules\...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memo
ry
I found the culprit for me was actually the ./tmp folder.
For whatever reason, if you kill ember server and it doesn’t do properly do it’s cleanup.
I made a bash scrip that clears the ./tmp folder before starting ember server for my project. Haven’t had any problems since. Don’t have to use
JOBS=1either. Runs much faster without that, just defaultember servercommand.@Sinled Clear the ./tmp and report back if it solves for you.
This problem plagued me for many months. Wish it was in some documentation somewhere.
Turns out my issue was due to a nested scss for loop
I was able to get around the error by running the build with the following command, but it took 4+ hours
node --max-old-space-size=8192 /home/me/.yarn/bin/ember build --prodAs soon as I removed the nested for loop it returned to being under a minute for a build
I’m also running into this bug.
JOBS=1and clearing thetmp/dir did not fix@edeis53 Thank you 👍 It solved issue. Looks like /tmp was culprit.