{ "id": "170912", "key": "TIMOB-25696", "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": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-02-22T14:01:38.000+0000", "created": "2018-01-23T06:09:40.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "issuelinks": [ { "id": "56261", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "169418", "key": "TIMOB-25072", "fields": { "summary": "Windows: Liveview not working for windows application", "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 } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-05-16T23:37:55.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Application crashes when there's runtime error during TCP callback. For example, following app crashes without any error logs.\r\n\r\n{code:javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'white' });\r\n\r\nwin.addEventListener('open', function () {\r\n console.log('Connecting to server');\r\n var socket = Ti.Network.Socket.createTCP({\r\n host: '127.0.0.1', port: 6262,\r\n connected: function (e) {\r\n Ti.API.info('Connected to server at port ' + port);\r\n win.backgroundColor = 'green';\r\n },\r\n error: function (e) {\r\n alert(e.error);\r\n Ti.API.info('Error connecting to server (' + e.errorCode + '): ' + e.error);\r\n win.backgroundColor = 'red';\r\n },\r\n });\r\n socket.connect();\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\nExpected: This Titanium app should not crash. This should alert {{Can't find variable: port}} because there's runtime error in {{connected}} callback (the variable {{port}} is not defined).\r\n\r\nHere's a sample server code to debug the issue. Launch this using {{node server.js}} in Node.js in order to test this.\r\n\r\n{code:javascript|title=server.js}\r\nvar net = require('net'),\r\n\tport = 6262;\r\n\r\nnet.createServer(function (socket) {\r\n\tconsole.log('client ' + socket.remoteAddress + ' connected');\r\n\r\n\tsocket.on('end', function () {\r\n\t\tconsole.log('client ' + socket.remoteAddress + ' disconnected');\r\n\t});\r\n\r\n}).listen(port, function() {\r\n\tconsole.log('server listening on port ' + port);\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Network.TCP causes app crash", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1000, "state": "closed", "name": "2018 Sprint 04 SDK", "startDate": "2018-02-12T04:23:01.913Z", "endDate": "2018-02-26T04:23:00.000Z", "completeDate": "2018-02-26T19:36:01.769Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "433497", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1173", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-01-23T06:22:00.000+0000", "updated": "2018-01-23T06:22:00.000+0000" }, { "id": "434702", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Master PR merged, [~kiguchi] Could you make a backport when you have time, thanks!", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-02-21T15:28:50.000+0000", "updated": "2018-02-21T15:28:50.000+0000" }, { "id": "434746", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "7_1_X backport: https://github.com/appcelerator/titanium_mobile_windows/pull/1198", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-02-22T00:24:30.000+0000", "updated": "2018-02-22T00:24:30.000+0000" }, { "id": "434765", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "7_1_X PR merged, resolving and will close when changes verified in released SDK", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-02-22T14:01:34.000+0000", "updated": "2018-02-22T14:01:34.000+0000" }, { "id": "435192", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified changes in 7.2.0.v20180302144729 and 7.1.0.v20180302141418.\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-03-05T13:47:40.000+0000", "updated": "2018-03-05T13:47:40.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }