{ "id": "139021", "key": "TIMOB-17949", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-03-23T15:35:12.000+0000", "created": "2014-11-03T20:39:52.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "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" } ], "issuelinks": [ { "id": "42621", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "128064", "key": "TIMOB-16682", "fields": { "summary": "Cannot build project to any platform using Node 0.11.12", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "42623", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "128064", "key": "TIMOB-16682", "fields": { "summary": "Cannot build project to any platform using Node 0.11.12", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2015-03-24T20:59:39.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": "The next version of Node is reportedly imminent. When running the newest unstable / prerelease build (0.11.14) {{ti build -p ios}} fails with\r\n\r\n{code}\r\n[DEBUG] Symlinking /Users/admin/Documents/Titanium_Studio_Workspace/TestSuite/Resources/iphone/ti-mocha.js => /Users/admin/Documents/Titanium_Studio_Workspace/TestSuite/build/iphone/build/Debug-iphonesimulator/TestSuite.app/ti-mocha.js\r\n[INFO] Processing Titanium namespace resources\r\n[DEBUG] Copying /Users/admin/Library/Application Support/Titanium/mobilesdk/osx/3.5.0/iphone/modules/ui/images => /Users/admin/Documents/Titanium_Studio_Workspace/TestSuite/build/iphone/build/Debug-iphonesimulator/TestSuite.app/modules/ui/images\r\n[INFO] Skipping xcodebuild\r\n[INFO] Finished building the application in 4s 579ms\r\n/Users/admin/repos/titanium_skypanther/node_modules/longjohn/dist/longjohn.js:185\r\n throw e;\r\n ^\r\nSocket.socketErrorListener (_http_client.js:268:42),Socket.emit (events.js:107:17),net.js:436:14,process._tickCallback (node.js:372:11)\r\n\r\n{code}\r\n\r\n{{ti build -p android}} fails with a similar\r\n\r\n{code}\r\n[INFO] Creating unsigned apk\r\n[INFO] Processing /Users/admin/Documents/Titanium_Studio_Workspace/TestSuite/build/android/src\r\n[INFO] Writing unsigned apk: /Users/admin/Documents/Titanium_Studio_Workspace/TestSuite/build/android/bin/app-unsigned.apk\r\n[INFO] Using MD5withRSA signature algorithm\r\n[INFO] Signing apk: /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/jarsigner \"-sigalg\" \"MD5withRSA\" \"-digestalg\" \"SHA1\" \"-keystore\" \"/Users/admin/Library/Application Support/Titanium/mobilesdk/osx/3.5.0/android/dev_keystore\" \"-storepass\" \"*******\" \"-signedjar\" \"/Users/admin/Documents/Titanium_Studio_Workspace/TestSuite/build/android/bin/TestSuite.apk\" \"/Users/admin/Documents/Titanium_Studio_Workspace/TestSuite/build/android/bin/app-unsigned.apk\" \"tidev\"\r\n[INFO] Aligning zip file: /android-sdk/build-tools/20.0.0/zipalign \"-v\" \"4\" \"/Users/admin/Documents/Titanium_Studio_Workspace/TestSuite/build/android/bin/TestSuite.apk\" \"/Users/admin/Documents/Titanium_Studio_Workspace/TestSuite/build/android/bin/TestSuite.apkz\"\r\n[INFO] Writing build manifest: /Users/admin/Documents/Titanium_Studio_Workspace/TestSuite/build/android/build-manifest.json\r\n/Users/admin/repos/titanium_skypanther/node_modules/longjohn/dist/longjohn.js:185\r\n throw e;\r\n ^\r\nSocket.socketErrorListener (_http_client.js:268:42),Socket.emit (events.js:107:17),net.js:436:14,process._tickCallback (node.js:372:11)\r\n\r\n{code}\r\n\r\nAnd mobileweb builds fail with\r\n\r\n{code}\r\n[DEBUG] Analyzing /Users/admin/Documents/Titanium_Studio_Workspace/TestSuite/build/mobileweb/titanium/Ti.js\r\n[DEBUG] Analyzing /Users/admin/Documents/Titanium_Studio_Workspace/TestSuite/build/mobileweb/titanium.js\r\n[INFO] Creating the filesystem registry\r\n[INFO] Creating the index.html\r\n/Users/admin/repos/titanium_skypanther/node_modules/longjohn/dist/longjohn.js:185\r\n throw e;\r\n ^\r\nSocket.socketErrorListener (_http_client.js:268:42),Socket.emit (events.js:107:17),net.js:436:14,process._tickCallback (node.js:372:11)\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "CLI: Build fails when using Node 0.11.14", "creator": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "330611", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "-Possibly an issue with ios-lib, specifically node-ios-device-", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-11-03T21:41:12.000+0000", "updated": "2014-11-04T21:38:21.000+0000" }, { "id": "330730", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "The failure is being caused by the LiveView plug-in. By removing the following from the hooks array in my .titanium/config.json file I am able to build just fine.\r\n\r\n{{\"/Applications/Appcelerator Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1411521639/node_modules/liveview/hook\"}}", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-11-04T21:37:59.000+0000", "updated": "2014-11-04T21:37:59.000+0000" }, { "id": "331073", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I further investigate this issue and this is happening as liveview attempts to kill the existing file servers during the post build event processing. It tries to invoke a URL and then node process terminates with the reported error. So, if a (file) server is not running on a port (6789) that we try to run a URL (http://localhost:6789), then the node process crashes immediately - the error is not caught in try/catch block as well.\r\n\r\nSo, in order to fix this issue, we need to figure out a way to kill all existing file servers of liveview. In the meanwhile, we need to understand why running a arbitrary url will terminate/crash the node process.", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-11-06T21:29:26.000+0000", "updated": "2014-11-06T21:29:26.000+0000" }, { "id": "346989", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of linked issues.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-23T15:35:12.000+0000", "updated": "2015-03-23T15:35:12.000+0000" }, { "id": "347169", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as duplicate.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-24T20:59:31.000+0000", "updated": "2015-03-24T20:59:31.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }