{"action":"created","issue":{"url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/1036","repository_url":"https://api.github.com/repos/ionic-team/ionic-app-scripts","labels_url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/1036/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/1036/comments","events_url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/1036/events","html_url":"https://github.com/ionic-team/ionic-app-scripts/issues/1036","id":235216031,"node_id":"MDU6SXNzdWUyMzUyMTYwMzE=","number":1036,"title":"JavaScript heap out of memory","user":{"login":"ValterSantosMatos","id":7823134,"node_id":"MDQ6VXNlcjc4MjMxMzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/7823134?v=4","gravatar_id":"","url":"https://api.github.com/users/ValterSantosMatos","html_url":"https://github.com/ValterSantosMatos","followers_url":"https://api.github.com/users/ValterSantosMatos/followers","following_url":"https://api.github.com/users/ValterSantosMatos/following{/other_user}","gists_url":"https://api.github.com/users/ValterSantosMatos/gists{/gist_id}","starred_url":"https://api.github.com/users/ValterSantosMatos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ValterSantosMatos/subscriptions","organizations_url":"https://api.github.com/users/ValterSantosMatos/orgs","repos_url":"https://api.github.com/users/ValterSantosMatos/repos","events_url":"https://api.github.com/users/ValterSantosMatos/events{/privacy}","received_events_url":"https://api.github.com/users/ValterSantosMatos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":39,"created_at":"2017-06-12T12:27:31Z","updated_at":"2018-08-27T18:06:08Z","closed_at":null,"author_association":"NONE","body":"Hi there,\r\n\r\nI read in another issue that this should had been solved, before so I tried removing the: \r\n`\"node --max-old-space-size=8192` workaround from my project but still have the same problem. The stack-trace and ionic info bellow. Let me know if anything else is needed.\r\n\r\n**ionic info**\r\n\r\nglobal packages:\r\n\r\n    @ionic/cli-utils : 1.3.0\r\n    Cordova CLI      : 6.5.0\r\n    Ionic CLI        : 3.3.0\r\n\r\nlocal packages:\r\n\r\n    @ionic/app-scripts              : 1.3.7\r\n    @ionic/cli-plugin-cordova       : 1.3.0\r\n    @ionic/cli-plugin-ionic-angular : 1.3.0\r\n    Cordova Platforms               : android 6.1.2 browser 4.1.0 ios 4.3.1\r\n    Ionic Framework                 : ionic-angular 3.3.0\r\n\r\nSystem:\r\n\r\n    Node       : v6.10.0\r\n    OS         : macOS Sierra\r\n    Xcode      : Xcode 8.3.3 Build version 8E3004b\r\n    ios-deploy : 1.9.0\r\n    ios-sim    : 5.0.13\r\n\r\n\r\n**ionic cordova build ios --prod --verbose**\r\n\r\n[DEBUG] Loading global plugin @ionic/cli-plugin-proxy\r\n[DEBUG] Throwing PLUGIN_NOT_INSTALLED for global @ionic/cli-plugin-proxy\r\n[DEBUG] Loading local plugin @ionic/cli-plugin-cordova\r\n[DEBUG] Loading local plugin @ionic/cli-plugin-ionic-angular\r\nRunning app-scripts build: --prod --iscordovaserve --externalIpRequired --nobrowser\r\n\r\n[20:08:46]  build prod started ...\r\n[20:08:46]  clean started ...\r\n[20:08:46]  clean finished in 1 ms\r\n[20:08:46]  copy started ...\r\n[20:08:46]  ngc started ...\r\n[20:09:19]  ngc finished in 32.84 s\r\n[20:09:19]  preprocess started ...\r\n[20:09:19]  deeplinks started ...\r\n[20:09:22]  deeplinks finished in 3.67 s\r\n[20:09:22]  optimization started ...\r\n[20:09:39]  copy finished in 52.56 s\r\n[20:10:04]  optimization finished in 41.73 s\r\n[20:10:04]  preprocess finished in 45.40 s\r\n[20:10:04]  webpack started ...\r\n\r\n<--- Last few GCs --->\r\n\r\n  402717 ms: Mark-sweep 1332.3 (1437.1) -> 1331.6 (1437.1) MB, 1137.5 / 0.0 ms [allocation failure] [GC in old space requested].\r\n  403827 ms: Mark-sweep 1331.6 (1437.1) -> 1331.5 (1437.1) MB, 1109.4 / 0.0 ms [allocation failure] [GC in old space requested].\r\n  404969 ms: Mark-sweep 1331.5 (1437.1) -> 1340.4 (1421.1) MB, 1141.3 / 0.0 ms [last resort gc].\r\n  406115 ms: Mark-sweep 1340.4 (1421.1) -> 1349.5 (1421.1) MB, 1145.4 / 0.0 ms [last resort gc].\r\n\r\n\r\n<--- JS stacktrace --->\r\n\r\n==== JS stack trace =========================================\r\n\r\nSecurity context: 0x3253a08cfb51 <JS Object>\r\n    2: /* anonymous */ [/Users/Valter/projects/8sec-front-end/node_modules/source-map/lib/source-node.js:~80] [pc=0x40b1c23c541] (this=0x9c85c680801 <JS Function SourceNode (SharedFunctionInfo 0xd26940f131)>,mapping=0x392f564c03b1 <an Object with map 0xc6fc3d4d9f9>)\r\n    3: arguments adaptor frame: 3->1\r\n    4: InnerArrayForEach(aka InnerArrayForEach) [native array.js:~935] [pc=0x40b1becab8b] (th...\r\n\r\nFATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory\r\n 1: node::Abort() [/usr/local/bin/node]\r\n 2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/usr/local/bin/node]\r\n 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]\r\n 4: v8::internal::Factory::NewUninitializedFixedArray(int) [/usr/local/bin/node]\r\n 5: v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::FastPackedObjectElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)2> >::ConvertElementsWithCapacity(v8::internal::Handle<v8::internal::JSObject>, v8::internal::Handle<v8::internal::FixedArrayBase>, v8::internal::ElementsKind, unsigned int, unsigned int, unsigned int, int) [/usr/local/bin/node]\r\n 6: v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::FastPackedObjectElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)2> >::GrowCapacityAndConvertImpl(v8::internal::Handle<v8::internal::JSObject>, unsigned int) [/usr/local/bin/node]\r\n 7: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]\r\n 8: 0x40b17d079a7\r\n 9: 0x40b17d2e9c5\r\n10: 0x40b1c23c541\r\nAbort trap: 6\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/comments/416315190","html_url":"https://github.com/ionic-team/ionic-app-scripts/issues/1036#issuecomment-416315190","issue_url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/1036","id":416315190,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjMxNTE5MA==","user":{"login":"3m0","id":7564362,"node_id":"MDQ6VXNlcjc1NjQzNjI=","avatar_url":"https://avatars0.githubusercontent.com/u/7564362?v=4","gravatar_id":"","url":"https://api.github.com/users/3m0","html_url":"https://github.com/3m0","followers_url":"https://api.github.com/users/3m0/followers","following_url":"https://api.github.com/users/3m0/following{/other_user}","gists_url":"https://api.github.com/users/3m0/gists{/gist_id}","starred_url":"https://api.github.com/users/3m0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3m0/subscriptions","organizations_url":"https://api.github.com/users/3m0/orgs","repos_url":"https://api.github.com/users/3m0/repos","events_url":"https://api.github.com/users/3m0/events{/privacy}","received_events_url":"https://api.github.com/users/3m0/received_events","type":"User","site_admin":false},"created_at":"2018-08-27T18:06:08Z","updated_at":"2018-08-27T18:06:08Z","author_association":"NONE","body":"+1"}}
{"actor":{"display_login":"3m0"}}