{ "id": "125948", "key": "TIMOB-16387", "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": "15922", "description": "2014 Sprint 03", "name": "2014 Sprint 03", "archived": true, "released": true, "releaseDate": "2014-02-14" }, { "id": "15925", "description": "2014 Sprint 03 Tooling", "name": "2014 Sprint 03 Tooling", "archived": true, "released": true, "releaseDate": "2014-02-14" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-02-15T00:08:19.000+0000", "created": "2014-02-06T00:43:35.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "liveview", "qe-3.2.1", "qe-closed-3.2.3", "qe-testadded" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-03-13T21:23:51.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": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "h5.Description\r\nIf I build an Android project to device from Studio with LiveView enabled then everything works fine. Code changes are acknowledged and the device updates accordingly. \r\n\r\nHowever if I was to switch to another project without disabling LiveView the new project will not work as expected. Either I get an error in the console, or the previous application will install again in place of the new project.\r\n\r\nOn top of this a new node process is created without killing the previous node process.\r\nBecause that process is still running I get the following error information in the console:\r\n{code}\r\n[LiveView] version 1.0.2\r\n[LiveView] {[Error: listen EADDRINUSE] code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen' }\r\n[LiveView] File Server Started on Port 8324\r\nAddress in use, retrying...\r\n[LiveView] [Error: Not running]\r\n{code}\r\n\r\nh5.Steps To Reproduce\r\n1. Create an alloy project\r\n2. Enable LiveView and run on device\r\n3. Create a classic project\r\n4. With LiveView still enabled, run the classic application on device\r\n\r\nh5.Expected Result\r\nThe classic app should be running on the phone\r\n\r\nh5.Actual Result\r\nEither I get the above error, or the alloy project continues to display on the phone.\r\n\r\n+Extra Information+\r\nThis happens on both Android and iOS on both Windows and Mac.\r\n\r\n+Even More Information!+\r\n*Windows 8.1 32bit*\r\n1) Appcelerator Studio 3.2.0\r\n Node processes are +not+ killed\r\n2) Appcelerator Studio 3.2.1\r\n Node processes are +not+ killed\r\n\r\n*Mac OSX 10.9.1*\r\n1) Appcelerator Studio 3.2.0\r\n Node processes are killed\r\n2) Appcelerator Studio 3.2.1\r\n Node processes are +not+ killed", "attachment": [], "flagged": false, "summary": "LiveView: unexpected behavior when running LiveView on device without terminating the existing launch", "creator": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX 10.9.1\r\nWindows 8.1\r\nAppcelerator Studio, build: 3.2.1.201402051410\r\nTitanium SDK, build: 3.2.1.v20140205094854\r\nCLI: 3.2.1-beta3\r\nAlloy: 1.3.1-cr2\r\niOS Device: iPhone 5 (7.0.4)\r\nAndroid Device: Nexus 5 (4.4)", "comment": { "comments": [ { "id": "291579", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The workaround is to terminate the previous launch from the Console view before launching the new app with LiveView.\n", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-06T00:48:56.000+0000", "updated": "2014-02-06T00:48:56.000+0000" }, { "id": "291709", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~mxia] I think this may be something to do with studio. I am so far unable to reproduce via cli on OS X 10.9.1", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-06T19:28:17.000+0000", "updated": "2014-02-06T19:28:17.000+0000" }, { "id": "291731", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~mxia] I was unable to reproduce the error via cli, so please test the pr below to see if this resolves the issue.\n\nPR [MASTER] https://github.com/appcelerator/liveview/pull/76", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-06T20:21:47.000+0000", "updated": "2014-02-06T20:21:47.000+0000" }, { "id": "293326", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Merged the PR and included in Appcelerator Studio 3.2.3/3.3.0.\r\n", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-15T00:08:19.000+0000", "updated": "2014-02-15T00:08:19.000+0000" }, { "id": "297114", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified the fix with\nAppcelerator Studio, build: 3.2.2.201403061827\nTitanium SDK, build: 3.2.3.v20140312170355\nCLI 3.2.1\nLiveView Version: 1.0.3\n\nDevice:\nNexus4 Android version 4.4\n\nSwitching apps with live view enabled from Alloy to Classic project does not return the error, reported in original description. \n{code}\n[LiveView] version 1.0.3\n[LiveView] File Server Started on Port 8324\n[LiveView] Event Server Started on Port 8323\n[LiveView] Client connected\n{code}", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-13T21:05:28.000+0000", "updated": "2014-03-13T21:05:28.000+0000" }, { "id": "297121", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To add to the previous comment\nMac osx 10.9.2 Mavericks\nNode.JS Version: v0.10.13\nNPM Version: 1.3.2\n/usr/local/lib\n├── acs@1.0.14\n├── alloy@1.3.1\n├── npm@1.3.2\n├── titanium@3.2.1\n└── titanium-code-processor@1.1.0", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-13T21:23:51.000+0000", "updated": "2014-03-13T21:23:51.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }