Meteor 1.5: Problems during deploy with minifier

Deploy fails due to minifier. Worked with previous latest version (1.4.4.3). Fails on 1.5.

Minifying app code -
<— Last few GCs —>

349456 ms: Mark-sweep 1377.8 (1459.1) -> 1377.8 (1459.1) MB, 1062.9 / 0 ms [allocation failure] [GC in old space requested].
350498 ms: Mark-sweep 1377.8 (1459.1) -> 1377.8 (1459.1) MB, 1042.6 / 0 ms [allocation failure] [GC in old space requested].
351583 ms: Mark-sweep 1377.8 (1459.1) -> 1374.8 (1459.1) MB, 1084.8 / 0 ms [last resort gc].
352664 ms: Mark-sweep 1374.8 (1459.1) -> 1377.8 (1459.1) MB, 1081.2 / 0 ms [last resort gc].

<— JS stacktrace —>

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

Security context: 0x3ad73c3b4629
2: flowParsePostfixType [/Users/dev/.meteor/packages/standard-minifier-js/.2.1.0.1mza8au++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/babylon/lib/index.js:5672] [pc=0x102d0b8c9338] (this=0xe0358529789 <a Parser with map 0x40293a73809>)
3: flowParsePrefixType [/Users/dev/.meteor/packages/standard-minifier-js/.2.1.0…

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Abort trap: 6

Bug in the .meteor/packages/standard-minifier-js/.2.1.0 file

2 Likes

I have this same issue deploying to Galaxy, after upgrading to 1.5. Was previously using the latest Meteor version before 1.5. This also happens on my developer machine if I add the --production flag. It works fine if I use the dev version.

Check out this tread on the issue

helps set TOOL_NODE_FLAGS=–max-old-space-size=2047

1 Like

I was able to resolve this issue on Meteor 1.5 by the following:

meteor remove standard-minifier-js@2.0.0
meteor add abernix:standard-minifier-js // 2.0.4

meteor --production now passed the minifying code step when before (using standard-minifier-js@2.0.0), it would time out for the following:

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Abort trap: 6

I have successfully deployed my app on galaxy and all is well so far.

3 Likes