{ "id": "169735", "key": "TIMOB-25257", "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": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-08T20:42:15.000+0000", "created": "2017-09-08T14:25:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "19870", "description": "", "name": "Release 6.1.2", "archived": false, "released": true, "releaseDate": "2017-08-03" }, { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [ { "id": "55915", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "158273", "key": "TIMOB-22323", "fields": { "summary": "TI.UI.SearchBar Test Suite: TI.UI.SearchBar Acceptance TIMOB-9745", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-17T01:36:11.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": "h5.Description\r\n\r\n*The original Android ticket that this test came from was related to searchbar but this occurs when the searchbar isn't added too, when testing please ensure both (with searchbar and without searchbar) are exercised*\r\n\r\nWhen adding a tableview back to a windows after removing it the app will freeze and crash\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow();\r\nvar flag = false;\r\nvar data = [{\r\n title: 'Row 1',\r\n hasChild: true,\r\n color: 'red',\r\n header: 'First'\r\n}, {\r\n title: 'Row 2',\r\n hasDetail: true,\r\n color: 'green'\r\n}, {\r\n title: 'Row 3',\r\n hasCheck: true,\r\n color: 'blue',\r\n header: 'Second'\r\n}, {\r\n title: 'Row 4',\r\n color: 'orange'\r\n}];\r\n\r\nvar sb = Titanium.UI.createSearchBar({\r\n barColor: '#122a6f',\r\n showCancel: false,\r\n height: 44,\r\n});\r\n\r\n// Create a TableView.\r\nvar table = Ti.UI.createTableView({\r\n height: 600,\r\n width: '100%',\r\n search: sb,\r\n top: 75,\r\n left: 0,\r\n data: data\r\n});\r\n\r\n_window.add(table);\r\n\r\nvar button = Ti.UI.createButton({\r\n title: 'Show / Hide',\r\n height: 75,\r\n width: '100%',\r\n top: 0,\r\n left: 0\r\n});\r\n\r\n_window.add(button);\r\nbutton.addEventListener('click', function() {\r\n if (true == flag) {\r\n _window.add(table);\r\n flag = false;\r\n } else {\r\n _window.remove(table);\r\n flag = true;\r\n }\r\n});\r\n_window.open()\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add the above code to an existing app.js\r\n# Tap the button at the top\r\n# Tap the button again\r\n\r\nh5.Actual\r\n\r\nTableView is removed on first click, app freezes and crashes on second click\r\n\r\nh5.Expected\r\n\r\nTableView is removed on first click, readded on second click", "attachment": [], "flagged": false, "summary": "Windows: Crash when adding tableview back to window", "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": "Ti SDK: 6.1.2.GA, 6.2.0.v20170906064110, 7.0.0.v20170906135653", "closedSprints": [ { "id": 963, "state": "closed", "name": "2017 Sprint 22 SDK", "startDate": "2017-10-22T21:43:59.523Z", "endDate": "2017-11-05T22:43:00.000Z", "completeDate": "2017-11-06T16:33:42.425Z", "originBoardId": 114 }, { "id": 968, "state": "closed", "name": "2017 Sprint 23 SDK", "startDate": "2017-11-05T16:37:25.071Z", "endDate": "2017-11-19T16:37:00.000Z", "completeDate": "2017-11-20T18:57:56.565Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "428661", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1129", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-10-03T07:50:03.000+0000", "updated": "2017-10-03T07:50:03.000+0000" }, { "id": "430893", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on SDK 7.0.0.v20171116132144 installed from CLI. Fix is verified.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-17T01:36:11.000+0000", "updated": "2017-11-17T01:36:11.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }