{ "id": "133787", "key": "TIMOB-17411", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-04-20T21:27:16.000+0000", "created": "2014-07-27T21:06:09.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "3.3.0.GA", "android", "defect", "hang", "module_CLI", "nodejs", "qe-manualtest" ], "versions": [], "issuelinks": [], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2017-03-31T22:20:58.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "When you try to perform a \"ti build\", the process 'node.exe' hangs (0% of CPU) forever. After hours of debugging (with 'node-inspector'), I discover an issue in the 'windows.js' module. Basically the 'spawn' executed (line 385) to detect the powershell, for odd reasons, never emits the 'close' event and so the process hangs. Skipping this detection, the build continue normally. I have described in more details the problem in the following post: http://developer.appcelerator.com/question/176303/titanium-studio-doesnt-works-anymore-after-330-release#answer-281192.\r\n\r\nNot sure why this happens, but I'm not the only one with this issue.", "attachment": [], "flagged": false, "summary": "CLI: Windows 7 hangs on build during \"Powershell\" detection", "creator": { "name": "AGPX", "key": "agpx", "displayName": "Gianluca Arcidiacono", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "AGPX", "key": "agpx", "displayName": "Gianluca Arcidiacono", "active": true, "timeZone": "Europe/Rome" }, "environment": "Windows 7 64 bit, JDK 1.7.0_40, Node.js 0.10.29, Titanium 3.3.0 (SDK: 3.3.0 GA).", "closedSprints": [ { "id": 377, "state": "closed", "name": "2015 Sprint 08 Tooling", "startDate": "2015-04-10T16:22:00.000Z", "endDate": "2015-04-25T00:00:00.000Z", "completeDate": "2015-04-30T19:39:26.044Z", "originBoardId": 121 }, { "id": 155, "state": "closed", "name": "2014 Sprint 15 Tooling", "startDate": "2014-07-21T22:15:26.319Z", "endDate": "2014-08-02T00:00:00.000Z", "completeDate": "2014-08-04T14:51:13.686Z", "originBoardId": 121 }, { "id": 363, "state": "closed", "name": "2015 Sprint 06 Tooling", "startDate": "2015-03-14T13:52:26.847Z", "endDate": "2015-03-28T00:00:00.000Z", "completeDate": "2015-03-30T16:43:13.950Z", "originBoardId": 121 }, { "id": 188, "state": "closed", "name": "2014 Sprint 17 Tooling", "startDate": "2014-08-21T22:08:00.000Z", "endDate": "2014-08-30T00:00:00.000Z", "completeDate": "2014-09-02T07:54:24.111Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "316024", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Suggested workaround:\r\n\r\nOn this line: https://github.com/appcelerator/titanium_mobile/blob/3_3_X/node_modules/titanium-sdk/lib/windows.js#L377\r\n\r\n(likely in C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.3.0.GA\\node_modules\\titanium-sdk\\lib\\windows.js)\r\n\r\nReplace:\r\n\r\n{code}\r\nif (!selectedVisualStudio) return next();\r\n{code}\r\n\r\nwith:\r\n\r\n{code}\r\nreturn next();\r\n{code}\r\n", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-28T18:20:40.000+0000", "updated": "2014-07-28T18:41:13.000+0000" }, { "id": "316028", "author": { "name": "AGPX", "key": "agpx", "displayName": "Gianluca Arcidiacono", "active": true, "timeZone": "Europe/Rome" }, "body": "The spawn that never receive a close is:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/blob/3_3_X/node_modules/titanium-sdk/lib/windows.js#L385", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-28T18:36:41.000+0000", "updated": "2014-07-28T18:41:22.000+0000" }, { "id": "316030", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks. Edited.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-28T18:41:28.000+0000", "updated": "2014-07-28T18:41:28.000+0000" }, { "id": "318742", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3.4.0 is moved forward, and 3.5.0 is taking its place in the calendar.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-14T21:31:55.000+0000", "updated": "2014-08-14T21:31:55.000+0000" }, { "id": "319745", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I have fixed the issue with PowerShell hanging when running \"ti info\". I have further concluded that we cannot support \"winstore\" apps on Windows 7 and I have added an error when trying to build on Windows 7 saying you need Windows 8 or newer. This makes sense because \"winstore\" apps were introduced in Windows 8.\r\n\r\nmaster pull request: https://github.com/appcelerator/titanium_mobile/pull/5978", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-08-21T18:35:08.000+0000", "updated": "2014-08-21T18:35:08.000+0000" }, { "id": "319783", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "To test, run the following on a Windows 7 and Windows 8.x machine:\r\n\r\nThe following should work on both Win 7 & 8\r\n{code}\r\nti info\r\n{code}\r\n\r\nThe following should error on Win 7 and build successfully on Win 8\r\n{code}\r\nti build -p mobileweb -T winstore\r\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-08-21T20:41:56.000+0000", "updated": "2014-08-21T20:41:56.000+0000" }, { "id": "319793", "author": { "name": "AGPX", "key": "agpx", "displayName": "Gianluca Arcidiacono", "active": true, "timeZone": "Europe/Rome" }, "body": "I'll try this fix on my machine, where the old script hangs.", "updateAuthor": { "name": "AGPX", "key": "agpx", "displayName": "Gianluca Arcidiacono", "active": true, "timeZone": "Europe/Rome" }, "created": "2014-08-21T21:25:57.000+0000", "updated": "2014-08-21T21:25:57.000+0000" }, { "id": "323609", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Have verified the above test case by executing:\r\nti build -p mobileweb -T winstore \r\nIt gives no error but says as invalid target.\r\n\r\nBut as per test Steps mentioned in http://appcelerator.testlodge.com/projects/1317/test_suites/8230\r\nWe need to configure Window 8 SDK and appropriate Visual Studio to get the development environment information specific to Windows. ", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-15T09:40:15.000+0000", "updated": "2014-09-15T09:40:15.000+0000" }, { "id": "323786", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nWindows 8.1, 7\r\nTitanium SDK build: 3.4.0.v20140915105910 \r\nTitanium CLI, build: 3.4.0-rc3\r\nAlloy: 1.5.0-beta2\r\n\r\nRan the ti info command on both machines and it ran successfully on both. Ran the build command on both machines and on the Windows 8.1 machine the app built and opened and on the Windows 7 machine the build failed with the error that Winstore apps can only be built on Windows 8 or later.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2014-09-15T20:47:00.000+0000", "updated": "2014-09-15T20:47:00.000+0000" }, { "id": "328658", "author": { "name": "mkroeger", "key": "mkroeger", "displayName": "Matthias Kroeger", "active": true, "timeZone": "Europe/Berlin" }, "body": "Is this bug fixed in 3.4.0GA?\r\n\r\nIt doesn't look like as this error still appears [3.4.0 GA longjohn TypeError: Bad Argument|http://developer.appcelerator.com/question/178575/340-ga-longjohn-typeerror-bad-argument#comment-220243]\r\n\r\nGreetings,\r\nMatthias", "updateAuthor": { "name": "mkroeger", "key": "mkroeger", "displayName": "Matthias Kroeger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-10-20T20:25:54.000+0000", "updated": "2014-10-20T20:25:54.000+0000" }, { "id": "328661", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~mkroeger] Yes, it is fixed in 3.4.0.GA.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-10-20T20:30:33.000+0000", "updated": "2014-10-20T20:30:33.000+0000" }, { "id": "328662", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The fix for this is definitely in 3.4.0:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/commit/688a6596755f8c2698f32f1add1946e98a7fd604\r\n\r\nPerhaps it's another use case?\r\n", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-20T20:31:37.000+0000", "updated": "2014-10-20T20:31:37.000+0000" }, { "id": "328668", "author": { "name": "mkroeger", "key": "mkroeger", "displayName": "Matthias Kroeger", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thank you Chris and Ingo.\r\n\r\n", "updateAuthor": { "name": "mkroeger", "key": "mkroeger", "displayName": "Matthias Kroeger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-10-20T20:49:16.000+0000", "updated": "2014-10-20T20:49:16.000+0000" }, { "id": "328676", "author": { "name": "mkroeger", "key": "mkroeger", "displayName": "Matthias Kroeger", "active": true, "timeZone": "Europe/Berlin" }, "body": "I am not sure if it is a different use case, because the workaround Ingo suggested still works.\r\n\r\nInside windows.js\r\n\r\nReplace:\r\nif (!selectedVisualStudio) return next();\r\nwith:\r\nreturn next();\r\n", "updateAuthor": { "name": "mkroeger", "key": "mkroeger", "displayName": "Matthias Kroeger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-10-20T21:08:01.000+0000", "updated": "2014-10-20T21:08:01.000+0000" }, { "id": "342396", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "body": "We have seen this happen again with SDK 3.5.0 during a call with customer, using the workaround proposed by Ingo the issue is solved, also we found in QA another report of this still happening https://developer.appcelerator.com/question/180218/unable-to-launch-android-emulator during the last month.", "updateAuthor": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-02-06T15:13:13.000+0000", "updated": "2015-02-06T15:13:13.000+0000" }, { "id": "342398", "author": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "body": "Lets get this fixed asap - this is a major blocker for our customers using windows.", "updateAuthor": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "created": "2015-02-06T15:22:42.000+0000", "updated": "2015-02-06T15:22:42.000+0000" }, { "id": "342399", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~bgrantges@appcelerator.com] can you reproduce it? Can we reproduce it in-house?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-06T15:25:38.000+0000", "updated": "2015-02-06T15:25:38.000+0000" }, { "id": "342400", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I'm looking into setting up a Windows 7 VM. In the meantime, testing with Windows 8.1, CLI 3.4.1, SDK 3.5.0.GA, Android SDK tools 24.0.2, Android Build tools, 21.1.2, Android SDK Platform-tools 21:\r\n\r\n{{ti info}} works as expected\r\n\r\n{{ti build -p mobileweb -T winstore}} works, except that I don't have a valid publishing certificate so it ends up failing with a \"cert expired\" message.\r\n\r\n{{ti build -p android}} works as expected (built to GNex emulator, API 19)", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-02-06T16:22:20.000+0000", "updated": "2015-02-06T16:22:20.000+0000" }, { "id": "342467", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I got my Win7 VM set up; CLI 3.4.1, SDK 3.5.0.GA, Android SDK tools 24.0.2, Android Build tools, 21.1.2, Android SDK Platform-tools 21\r\n\r\n{{ti info}} and {{ti build -p android}} work as expected. I don't have the Windows Phone environment configured yet on this VM. ", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-02-06T21:40:15.000+0000", "updated": "2015-02-06T21:40:15.000+0000" }, { "id": "344635", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "I am unable to reproduce the issue using:\r\n\r\nWindows 7 64 bit\r\nTitanium SDK build: 3.4.0.GA, 3.4.1.GA 3.5.0.GA\r\nTitanium CLI, build: 3.4.1\r\nAlloy: 1.5.1\r\nVisual Studio 2013 Community\r\n\r\nRan the following commands, ti info returns the expected results and does not hang, ti build -p android builds to android and ti build -p mobileweb -T winstore errors out with Windows 8 only.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-02-27T22:53:33.000+0000", "updated": "2015-02-27T22:53:33.000+0000" }, { "id": "349131", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi All, Is this still happening? We are unable to reproduce.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-10T02:46:10.000+0000", "updated": "2015-04-10T02:46:10.000+0000" }, { "id": "350006", "author": { "name": "gazialankus", "key": "gazialankus", "displayName": "Gazihan Alankus", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I just had this right after uninstalling Visual Studio 2013. I can't build my projects anymore in Titanium Studio. I'm using: \r\n\r\nWindows 8\r\nTitanium SDK 3.5.1.GA\r\nTitanium CLI 3.4.2\r\nGenymotion Android emulator\r\n\r\nHere is the error I get when I try to build:\r\n\r\nd:\\Users\\gazihan\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\longjohn\\dist\\longjohn.js:185\r\n throw e;\r\n ^\r\nChildProcess.emit (events.js:110:17),maybeClose (child_process.js:1008:16),Socket. (child_process.js:1176:11),Socket.emit (events.js:107:17),Pipe.close (net.js:476:12)\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n\r\n\r\nEdit: I can build again after following this suggestion here:\r\nhttp://developer.appcelerator.com/question/178195/projects-dont-start---exception-in-longjohnjs-occurs#answer-282923", "updateAuthor": { "name": "gazialankus", "key": "gazialankus", "displayName": "Gazihan Alankus", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-18T10:27:56.000+0000", "updated": "2015-04-18T10:31:55.000+0000" }, { "id": "350172", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~gazialankus] I believe this has been fixed already in Titanium SDK 4.0.0. I just tested a similar scenario with 4.0.0 and everything worked as expected.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-04-20T21:20:57.000+0000", "updated": "2015-04-20T21:20:57.000+0000" }, { "id": "350174", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-resolving.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-20T21:27:16.000+0000", "updated": "2015-04-20T21:27:16.000+0000" }, { "id": "416585", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed, if there are any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T22:20:58.000+0000", "updated": "2017-03-31T22:20:58.000+0000" } ], "maxResults": 25, "total": 25, "startAt": 0 } } }