{ "id": "166821", "key": "TIMOB-24539", "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": [ { "id": "19779", "name": "Hyperloop 2.1.2", "archived": false, "released": true, "releaseDate": "2017-07-10" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-06-22T12:17:43.000+0000", "created": "2017-03-28T09:55:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-06-23T00:06:37.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "description": "When building Hyperloop for Android, sometimes one of the following errors is thrown:\r\n{code}\r\n[INFO] Starting Hyperloop assembly\r\n[INFO] [Hyperloop] Using system metabase cache file at /var/folders/tt/7hv0vw1d4nx64kbpcdd4dsn00000gn/T/hyperloop_android-23_metabase.4b1ef509144aeedbb0887170e4fa336933582ed3.json.gz\r\n[INFO] Skipping Hyperloop compile, no usage found ...\r\n[INFO] Finished Hyperloop assembly\r\n[ERROR] read ECONNRESET\r\n{code}\r\nor (twice now)\r\n{code}\r\n\r\n[INFO] Starting Hyperloop assembly\r\n2017-03-28T08:40:02.077Z | ERROR | An uncaught exception was thrown!\r\nCannot read property 'shift' of undefined\r\n2017-03-28T08:40:02.078Z | ERROR | Cannot read property 'shift' of undefined\r\n{code}\r\nThis happens randomly and can be resolved by doing a clean build. Even when not changing anything Hyperloop-related, this happens from time to time. \r\n\r\n*EDIT*: Additional logs (only occurred once in trace-mode):\r\n{code}\r\n[INFO] Starting Hyperloop assembly\r\n\r\n/Users/jonahpolack/Library/Application Support/Titanium/plugins/hyperloop/2.0.1/node_modules/node-appc/node_modules/wrench/lib/wrench.js:382\r\n var filename = files.shift();\r\n ^\r\nTypeError: Cannot read property 'shift' of undefined\r\n at rmFile (/Users/jonahpolack/Library/Application Support/Titanium/plugins/hyperloop/2.0.1/node_modules/node-appc/node_modules/wrench/lib/wrench.js:382:33)\r\n at /Users/jonahpolack/Library/Application Support/Titanium/plugins/hyperloop/2.0.1/node_modules/node-appc/node_modules/wrench/lib/wrench.js:394:11\r\n at FSReqWrap.oncomplete (fs.js:82:15)\r\n{code}", "attachment": [], "flagged": false, "summary": "Hyperloop: Android - Unhandled CLI error thrown sometimes", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 917, "state": "closed", "name": "2017 Sprint 13 SDK", "startDate": "2017-06-18T16:14:35.902Z", "endDate": "2017-07-02T16:14:00.000Z", "completeDate": "2017-07-06T23:53:22.101Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "417656", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "So I don't actually use wrench in hyperloop JS code itself, so I think this is actually coming through from the node-appc dependency (as you can see in the file paths above).\r\n\r\nIt's possible that [~hansknoechel]'s PR for node-appc here would fix it? https://github.com/appcelerator/node-appc/pull/122", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2017-04-19T13:51:47.000+0000", "updated": "2017-04-19T13:51:47.000+0000" }, { "id": "422544", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "This was caused by running multiple .aar transforms in parallel. During the transform we copy the assets directory which caused unexpected behavior when multiple I/O operations happened on the same destination folder.\r\n\r\nPR (master): https://github.com/appcelerator/hyperloop.next/pull/184\r\nPR (2_1_X): https://github.com/appcelerator/hyperloop.next/pull/185", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-06-22T10:21:46.000+0000", "updated": "2017-06-22T10:21:46.000+0000" }, { "id": "422596", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tested with this environment:\r\nNode Version: 6.10.3\r\nNPM Version: 3.10.10\r\nMac OS: 10.12.4\r\nAppc CLI: 6.2.2\r\nAppc CLI NPM: 4.2.9\r\nTitanium SDK version: 6.1.1.v20170621181735\r\nAppcelerator Studio, build: 4.9.0.201705302345\r\nXcode 8.3.2\r\nHyperloop version 2.1.2 Beta 3\r\n\r\nI was able to reproduce the bug using Hyperloop version 2.1.1 and 5 aar files in the project:\r\n{code}[INFO] Starting Hyperloop assembly\r\n2017-06-23T00:00:12.998Z | ERROR | An uncaught exception was thrown!\r\nCannot read property 'shift' of undefined\r\n2017-06-23T00:00:12.999Z | ERROR | Cannot read property 'shift' of undefined{code}\r\n\r\nI then switched to Hyperloop 2.1.2 Beta 3, and built the same app in succession 10 times, and the error did not occur.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-23T00:05:41.000+0000", "updated": "2017-06-23T00:05:41.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }