jshimko / meteor-launchpad

A base Docker image for Meteor applications.
https://hub.docker.com/r/jshimko/meteor-launchpad/
MIT License
276 stars 152 forks source link

FATAL ERROR: CALL_AND_RETRY_LAST #105

Closed xquadradpi closed 6 years ago

xquadradpi commented 6 years ago

Hey sorry for opening this issue, i found some more threads like this but all solutions there wont work for me. i hope i can find some help here.

I am using Meteor 1.6.1.1 with following packages:

meteor-base@1.3.0             # Packages every Meteor app needs to have
mobile-experience@1.0.5       # Packages for a great mobile UX
mongo@1.4.2                   # The database Meteor supports right now
reactive-var@1.0.11           # Reactive variable for tracker
tracker@1.1.3                 # Meteor's client-side reactive programming library

standard-minifier-js

es5-shim@4.7.0                # ECMAScript 5 compatibility for older browsers
ecmascript@0.10.6             # Enable ECMAScript2015+ syntax in app code
shell-server@0.3.1            # Server-side component of the `meteor shell` command
angular-compilers
server-render@0.3.0

accounts-base@1.4.2
accounts-password@1.5.0
accounts-google@1.3.1
erasaur:meteor-lodash
froala:editor
service-configuration@1.0.11
mys:fonts
generalledger:sleepforms

and

"dependencies": {
    "@angular/animations": "^5.2.10",
    "@angular/common": "^5.2.10",
    "@angular/compiler": "^5.2.10",
    "@angular/core": "^5.2.10",
    "@angular/forms": "^5.2.10",
    "@angular/http": "^5.2.10",
    "@angular/platform-browser": "^5.2.10",
    "@angular/platform-browser-dynamic": "^5.2.10",
    "@angular/platform-server": "^5.2.10",
    "@angular/router": "^5.2.10",
    "@babel/runtime": "^7.0.0-beta.46",
    "@types/lodash": "^4.14.108",
    "angular-date-value-accessor": "0.0.2",
    "angular-froala-wysiwyg": "^2.8.1",
    "bootstrap": "^4.1.1",
    "core-js": "^2.5.6",
    "lodash": "^4.17.10",
    "meteor-node-stubs": "~0.3.3",
    "meteor-rxjs": "^0.4.11",
    "rxjs": "^5.5.10",
    "zone.js": "^0.8.26"
  },
  "devDependencies": {
    "@angular/compiler-cli": "^5.2.10",
    "@types/chai": "^4.1.3",
    "@types/meteor": "^1.4.15",
    "@types/mocha": "^2.2.44",
    "@types/sinon": "^4.3.1",
    "chai": "^4.1.2",
    "sinon": "^4.5.0",
    "typescript": "^2.8.3",
    "node-sass": "^4.9.0",
    "raw-loader": "^0.5.1",
    "less": "^3.0.4",
    "sass-loader": "^7.0.1",
    "webpack": "^4.8.0"
  }

Locally its all working fine, but when i try to build a docker its not working...

i have tryed using TOOL_NODE_FLAGS="--max-old-space-size=4096 with every ammount of space...

i have tryed replacing standard-minifier-js with abernix:standard-minifier-js

All not working :( Please help me, im trying to get it working for 3 days now and just found out, docker build is working as long as there are no additional packages included

[client]: SCSS Files Compilation: 128.250ms FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory 1: <--- Last few GCs --->

[4894:0x3af1820] 194343 ms: Mark-sweep 1580.5 (1703.6) -> 1580.4 (1703.6) MB, 1234.5 / 0.1 ms allocation failure GC in old space requested [4894:0x3af1820] 195856 ms: Mark-sweep 1580.4 (1703.6) -> 1580.4 (1668.1) MB, 1512.4 / 0.0 ms last resort GC in old space requested [4894:0x3af1820] 197239 ms: Mark-sweep 1580.4 (1668.1) -> 1580.4 (1664.1) MB, 1382.4 / 0.0 ms last resort GC in old space requested

<--- JS stacktrace --->

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

Security context: 0x3c3995a57c1 1: ReferencedIdentifier [/root/.meteor/packages/angular-compilers/.0.3.1_2.1wen3kj.2nxv++os+web.browser+web.cordova/plugin.Angular_Compilers.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/scope/index.js:~91] [pc=0x14efe8beb831](this=0x3dfaad48c2a9 ,path=0x29f768e4e169 ,state=0x3dfaad48c2a9 <Object map = 0x...

node::Abort() [/root/.meteor/packages/meteor-tool/.1.6.1_1.c76v6p.io9tw++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node] 2: 0x125c56c [/root/.meteor/packages/meteor-tool/.1.6.1_1.c76v6p.io9tw++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]

xquadradpi commented 6 years ago

i got it running after updating to Meteor 1.7-rc-8 and downgrading again to 1.6.1.1 ( cause 1.7 meteor version was not found on download )

after that, using --build-arg TOOL_NODE_FLAGS="--max-old-space-size=2048" instead of 4096 helped