{ "id": "162046", "key": "TIMOB-23678", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-09-08T01:27:03.000+0000", "created": "2016-07-25T16:59:17.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-5.4.0" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [ { "id": "54622", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "166595", "key": "TIMOB-24485", "fields": { "summary": "Windows: LiveView is not working for Windows Phone 8.1.", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "52283", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "154653", "key": "TISTUD-7979", "fields": { "summary": "Liveview for the Windows Platform", "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": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "52356", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "162504", "key": "TIMOB-23752", "fields": { "summary": "Windows: Async HTTPClient crashes on Win10 Desktop", "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": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "52375", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "153012", "key": "TIMOB-19935", "fields": { "summary": "Windows: Implement Ti.Network.Socket.TCP", "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": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "52304", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "161881", "key": "TIMOB-23664", "fields": { "summary": "LiveView: vEthernet network connection is selected when building on a Windows system", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "52302", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "162191", "key": "TIMOB-23696", "fields": { "summary": "Windows: Ti.App._restart() does not function correctly", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "52303", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "162263", "key": "TIMOB-23702", "fields": { "summary": "Windows: Implement Titanium.Network.Socket", "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": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-17T13:45:19.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" }, { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nWhen attempting to build to device, the app will throw the below error when the app loads.\r\n\r\n{code}\r\n[ERROR] : Application Error: {\r\n[ERROR] : \"line\": 2,\r\n[ERROR] : \"column\": 10,\r\n[ERROR] : \"message\": \"Error while require(/app) [LiveView] File Server unavailable. Host Unreachable @ 192.168.2.2:8324\\n[LiveView] Please ensure your device and computer are on the same network and the port is not blocked.\",\r\n[ERROR] : \"native_stack\": [\r\n[ERROR] : \"JSExportClass::CallNamedFunction\"\r\n[ERROR] : ]\r\n[ERROR] : }\r\n{code}\r\n\r\nHowever\r\n\r\n* The device and pc are on the same network\r\n* I am able to access the LiveView server by going to http://192.168.2.2:8324 in edge on the device\r\n* I am able to access the apps app.js by going to http://192.168.2.2:8324/app.js in edge on the device\r\n\r\nh5.Steps to reproduce\r\n\r\n# Ensure you disable the vEthernet switch as noted in TIMOB-23664\r\n# Enable LiveView in Studio\r\n# Build a project to Windows Phone Device\r\n# Try accessing the ip listed in the LiveView error from edge, and also accessing /app.js\r\n\r\nh5.Actual result\r\n\r\nThe device will not be able to connect to the LiveView server, but the LiveView server can be accessed using edge\r\n\r\nh5.Expected result\r\n\r\nThe device should be able to connect to the LiveView server", "attachment": [ { "id": "59910", "filename": "app.js", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-07-25T20:20:33.000+0000", "size": 891, "mimeType": "application/javascript" }, { "id": "59909", "filename": "app2.js", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-07-25T20:21:53.000+0000", "size": 590, "mimeType": "application/javascript" }, { "id": "59911", "filename": "server.js", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-07-25T20:19:50.000+0000", "size": 288, "mimeType": "application/javascript" } ], "flagged": false, "summary": "Windows: Device is unable to connect to LiveView server", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Windows 10 Pro \r\nAppc CLI Core: 5.4.0-34\r\nAppc CLI NPM: 4.2.7\r\nTi SDK: 5.4.0.v20160725003348\r\nAppc Studio: 4.7.0.201607130543", "closedSprints": [ { "id": 704, "state": "closed", "name": "2016 Sprint 18 SDK", "startDate": "2016-08-27T00:18:36.960Z", "endDate": "2016-09-10T00:18:00.000Z", "completeDate": "2016-09-09T20:26:13.865Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "391445", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "I believe I may know the root cause for this. In this loop LiveView will determine whether the connection is successful using this code here https://github.com/appcelerator/liveview/blob/master/build/liveview.js#L560-L567 \r\n\r\nTaking this code out and extracting it into the attached app.js shows that the readystate of the HTTPClient is never set to 4 by the SDK, as it is done on iOS and Android.\r\n\r\nh5.Steps to reproduce\r\n\r\n# Copy the code in the attached app.js and paste into your project, change the ip to your own, keep the port the same\r\n# Download the attached server.js and start it with {{node server.js}}\r\n# Build for device or emulator and then click the button\r\n\r\nAlso see app2.js which uses the onload function rather than the way LiveView handles it, on Windows when onload is called request.readystate = 2, however on Android request.readystate=4", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-07-25T20:19:30.000+0000", "updated": "2016-07-25T20:19:30.000+0000" }, { "id": "391709", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile_windows/pull/791", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-27T18:04:59.000+0000", "updated": "2016-07-27T18:04:59.000+0000" }, { "id": "391970", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR pull/791 looks good, but it does not make LiveView work on Windows.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-07-29T13:07:49.000+0000", "updated": "2016-07-29T13:07:49.000+0000" }, { "id": "394538", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-26T23:18:16.000+0000", "updated": "2016-08-26T23:18:34.000+0000" }, { "id": "394571", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Merged TIMOB-23664.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-28T08:02:43.000+0000", "updated": "2016-08-28T08:02:43.000+0000" }, { "id": "419885", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nWindows 10 Pro\r\nTi SDK: 6.1.0.v20170516173434\r\nAppc CLI: 6.2.2-master.13\r\nAppc NPM: 4.2.9\r\nWindows 10 Mobile emulator\r\nLumia 550 (10.0)\r\nLiveView 1.1.4\r\nStudio: 4.9.0.201705170851\r\n\r\nDevices and emulators are now able to connect to the LiveView server and changes are seen when the app is reloaded\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-05-17T13:45:14.000+0000", "updated": "2017-05-17T13:45:14.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }