{ "id": "173871", "key": "TIMOB-27235", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2019-07-10T22:51:57.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" }, { "id": "20827", "name": "Release 8.2.0", "archived": false, "released": true, "releaseDate": "2019-09-19" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-07-15T09:51:43.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5.Steps to reproduce:\r\n1. Create a default classic app with the CLI using {{appc new}}.\r\n2. Make sure the {{tiapp.xml}} has 8.2.0 SDK. I used 8.2.0.v2019071001261 & 8.1.0.v20190709083308.\r\n3. From the terminal run {{DEBUG=* appc run -p ios -T simulator -l trace}}. I have used simulator here but I guess it does not matter.\r\n\r\nh5.Actual results:\r\n1. With {{DEBUG=*}} flag we see a lot of {{babel}} logging as transpiling is always on and eventually the build fails due to node running out of heap memory causing {{Javascript heap out of memory}}.\r\n2. This does not affect runs without {{DEBUG=*}} flag which, directly does not affect out tooling. But, this flag is useful for looking at additional logging which is frequently used by us while testing & development.\r\n3. Building to an Android device/emulator is fine.\r\n\r\nh5.Expected results:\r\n1. Build does not fail with {{Javascript heap out of memory}} when flag {{DEBUG=*}} is used.", "attachment": [ { "id": "66763", "filename": "Screen Shot 2019-07-10 at 3.28.52 PM.png", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-07-10T22:55:56.000+0000", "size": 1129277, "mimeType": "image/png" } ], "flagged": false, "summary": "IOS: Having \"DEBUG=*\" flag causes the appc run node process to fail due to \"Javascript heap out of memory\"", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Studio Ver: 5.1.3.201907081944\r\nOS Ver: 10.14.5\r\nXcode Ver: Xcode 10.2.1\r\nAppc NPM: 4.2.13\r\nAppc CLI: 7.1.0-master.24\r\nDaemon Ver: 1.1.3\r\nTi CLI Ver: 5.2.1\r\nAlloy Ver: 1.14.0\r\nNode Ver: 8.15.1\r\nNPM Ver: 6.4.1\r\nJava Ver: 10.0.2\r\n", "comment": { "comments": [ { "id": "449798", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "If this might be down to the amount of logging from babel you can use {{DEBUG=*,-babel}} to remove the babel output", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-07-15T09:51:43.000+0000", "updated": "2019-07-15T09:51:43.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }