Skip to content

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

@krngd2

Description

@krngd2

Trying to build production build of my application
Running

ionic cordova run android --prod

throwing this error

Running app-scripts build: --prod --platform android --target cordova
[16:44:28] build prod started ...
[16:44:28] clean started ...
[16:44:28] clean finished in 13 ms
[16:44:28] copy started ...
[16:44:29] deeplinks started ...
[16:44:29] deeplinks finished in 369 ms
[16:44:29] ngc started ...
[16:44:56] ngc finished in 27.30 s
[16:44:56] preprocess started ...
[16:44:56] preprocess finished in less than 1 ms
[16:44:56] webpack started ...
[16:44:57] copy finished in 28.58 s
<--- Last few GCs --->
[14264:00000280E7B82FB0] 186352 ms: Mark-sweep 1403.7 (1451.9) -> 1403.7 (1451.9) MB, 2137.0 / 0.0 ms last resort GC in old space requested
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 000000C2FF3A5EE1
1: setEmitFlags [F:\Projects\Ionic Projects\VBFashions\node_modules\typescript\lib\typescript.js:~49349] [pc=000001747BF3AE9F](this=00000307D6F647A1 ,node=00000151153050C1 ,emitFlags=16777216)
3: createEntityNameFromSymbolChain(aka createEntityNameFromSymbolChain) [F:\Projects\Ionic Projects\VBFashions\node_modules...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node_module_register
2: v8::internal::FatalProcessOutOfMemory
3: v8::internal::FatalProcessOutOfMemory
4: v8::internal::Factory::NewStruct
5: std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Reallocate
6: std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Reallocate
7: std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Reallocate
8: std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Reallocate
9: std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Reallocate
10: std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Reallocate
11: 000001747B4847A1

my package.json file

{
"name": "vbfashions",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build ",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@ angular/animations": "5.2.10",
"@ angular/common": "5.2.10",
"@ angular/compiler": "5.2.10",
"@ angular/compiler-cli": "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",
"@ ionic-native/barcode-scanner": "^4.9.0",
"@ ionic-native/base64": "^4.7.0",
"@ ionic-native/camera": "^4.7.0",
"@ ionic-native/core": "4.7.0",
"@ ionic-native/file": "^4.7.0",
"@ ionic-native/file-transfer": "^4.7.0",
"@ ionic-native/google-plus": "^4.7.0",
"@ ionic-native/image-picker": "^4.7.0",
"@ ionic-native/image-resizer": "^4.7.0",
"@ ionic-native/network": "^4.8.0",
"@ ionic-native/splash-screen": "4.7.0",
"@ ionic-native/status-bar": "4.7.0",
"@ ionic/storage": "2.1.3",
"angularfire2": "^5.0.0-rc.10",
"com-badrit-base64": "^0.2.0",
"com.razorpay.cordova": "^1.3.10",
"cordova-android": "^6.3.0",
"cordova-browser": "5.0.3",
"cordova-plugin-camera": "^4.0.3",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-file": "^6.0.1",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-firebase": "^1.0.5",
"cordova-plugin-googleplus": "^5.3.0",
"cordova-plugin-image-picker": "^1.1.3",
"cordova-plugin-ionic-keyboard": "^2.1.2",
"cordova-plugin-ionic-webview": "^1.2.1",
"cordova-plugin-network-information": "^2.0.1",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-telerik-imagepicker": "^2.1.10",
"cordova-plugin-whitelist": "^1.3.3",
"firebase": "^5.0.3",
"firebase-admin": "^5.12.1",
"firebase-functions": "^1.0.2",
"info.protonet.imageresizer": "^0.1.1",
"ionic-angular": "3.9.2",
"ionic-img-viewer": "^2.9.0",
"ionicons": "3.0.0",
"phonegap-plugin-barcodescanner": "^8.0.0",
"promise-polyfill": "^7.1.2",
"rxjs": "^6.2.1",
"rxjs-compat": "^6.1.0",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.26"
},
"devDependencies": {
"@ionic/app-scripts": "3.1.10",
"typescript": "~2.6.2"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-camera": {},
"cordova-plugin-file": {},
"cordova-plugin-file-transfer": {},
"cordova-plugin-image-picker": {},
"cordova-plugin-whitelist": {},
"com-badrit-base64": {},
"info.protonet.imageresizer": {},
"cordova-plugin-googleplus": {
"REVERSED_CLIENT_ID": "",
"WEB_APPLICATION_CLIENT_ID": "*"
},
"cordova-plugin-compat": {},
"com.razorpay.cordova": {},
"cordova-plugin-network-information": {},
"phonegap-plugin-barcodescanner": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
}
},
"platforms": [
"android"
]
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions