Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

JavaScript heap out of memory #114

Open
juniglee opened this issue Sep 7, 2017 · 1 comment
Open

JavaScript heap out of memory #114

juniglee opened this issue Sep 7, 2017 · 1 comment

Comments

@juniglee
Copy link

juniglee commented Sep 7, 2017

I have a grunt runner that uses grunt-postcss, and it seems to always fail on this stage.

Including the log for reference.

<--- Last few GCs --->

   94795 ms: Mark-sweep 1211.0 (1408.5) -> 1210.9 (1414.5) MB, 1796.0 / 0.0 ms [allocation failure] [GC in old space requested].
   96814 ms: Mark-sweep 1210.9 (1414.5) -> 1210.9 (1414.5) MB, 2019.4 / 0.0 ms [allocation failure] [GC in old space requested].
   98916 ms: Mark-sweep 1210.9 (1414.5) -> 1241.9 (1407.5) MB, 2101.3 / 0.0 ms [last resort gc].
  101075 ms: Mark-sweep 1241.9 (1407.5) -> 1272.9 (1407.5) MB, 2158.2 / 0.0 ms [last resort gc].


<--- JS stacktrace --->

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

Security context: 000002C1A903FA99 <JS Object>
    2: comment [D:\Source\wng-frontend\node_modules\grunt-postcss\node_modules\postcss\lib\stringifier.js:~41] [pc=0000020FBF1D776F] (this=000003BB1B9FFFE1 <a Stringifier with map 000000D9AA549221>,node=000002BDF73309F1 <a Comment with map 000000D9AA5465C9>)
    3: arguments adaptor frame: 2->1
    4: rule [D:\Source\wng-frontend\node_modules\grunt-postcss\node_modules\postcss\lib\stringifier...

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

Can I please get some assistance? I wonder if this is to do with the fact that we recently changed to Stylelint as our linter of choice. Stylelint uses PostCSS v6, but grunt-postcss is still currently using PostCSS v5.

@juniglee
Copy link
Author

We have updated our version of grunt-postcss with the new version that was recently uploaded to use PostCSS v6, but we are still encountering the issue.

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

No branches or pull requests

1 participant