{ "id": "162248", "key": "TIMOB-23701", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-01T00:51:17.000+0000", "created": "2016-07-28T21:30:00.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-5.4.0", "regression" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [ { "id": "52313", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "162316", "key": "TIMOB-23711", "fields": { "summary": "iOS: Incrementing instances of \"Window is not open Ignoring this close call\" on win.close() ", "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": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-08-01T17:58:36.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*This is a regression from 5.3.1.GA*\r\n\r\nIt was found that when opening a second window within an app, calling the {{close()}} method will actually close both windows. *This only occurs when {{}} is set to TRUE, which is the default configuration.*\r\n\r\nh3. TEST CODE:\r\n{code:java}\r\nTi.UI.backgroundColor = \"Black\";\r\n\r\nvar win = Ti.UI.createWindow({backgroundColor:'blue'});\r\n\r\nvar open = Ti.UI.createButton({\r\n\ttitle: 'Open Window'\t\r\n});\r\n\r\nvar close = Ti.UI.createButton({\r\n\ttitle: 'Close Window'\r\n});\r\n\r\nopen.addEventListener('click', function(){\r\n\tvar win2 = Ti.UI.createWindow({backgroundColor:'green'});\r\n\twin2.add(close);\r\n\tclose.addEventListener('click', function(){\r\n\t\twin2.close();\r\n\t});\r\n\twin2.open();\r\n});\r\n\r\nwin.add(open);\r\nwin.open();\r\n{code}\r\n\r\nBackground: *Black*\r\n{color:#205081}Window 1: *Blue*{color}\r\n{color:#14892c}Window 2: *Green*{color}\r\n\r\n\r\nh2. Steps to Reproduce\r\n1. Create a new Classic Mobile Project.\r\n2. Copy above test code into app.js file.\r\n3. Ensure that {{}} is set to TRUE in the tiapp.xml.\r\n4. Run App to device / sim.\r\n5. Click on \"Open Window\" button, this will open a second green window.\r\n6. Click on \"Close Window\" button, this will close the second green window.\r\n\r\nh2. Actual Result\r\n\r\nBoth {color:#205081}win1{color} & {color:#14892c}win2{color} are closed, revealing the black background.\r\n\r\nh2. Expected Result\r\n\r\nOnly {color:#14892c}win2{color} should be closed.", "attachment": [], "flagged": false, "summary": "iOS: close() is applied to multiple window views with Storyboard enabled", "creator": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "environment": "iPhone 6S (9.3.2) Device & iPhone 6 Plus (8.3) Device\r\nMac OSX El Capitan 10.11.5 \r\nTi SDK: 5.4.0.v20160727143921\r\nAppc Studio: 4.7.0.201607111053\r\nAppc NPM: 4.2.7\t\r\nApp CLI: 5.4.0-34\r\nXcode 7.3\r\nNode v4.4.7", "closedSprints": [ { "id": 682, "state": "closed", "name": "2016 Sprint 15 SDK", "startDate": "2016-07-16T00:19:20.819Z", "endDate": "2016-07-30T00:19:00.000Z", "completeDate": "2016-08-01T04:40:11.421Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "391922", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "From Harry:\r\n5.4.0.v20160720201924 was unaffected, So the causing factor would most likely be made somewhere between 20-25th", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-07-29T00:09:26.000+0000", "updated": "2016-07-29T00:09:26.000+0000" }, { "id": "391966", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Most probably caused by https://github.com/appcelerator/titanium_mobile/pull/8152, will check right now.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-29T10:59:41.000+0000", "updated": "2016-07-29T10:59:41.000+0000" }, { "id": "391986", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/8169\r\nPR (5_4_X): https://github.com/appcelerator/titanium_mobile/pull/8170", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-29T14:25:53.000+0000", "updated": "2016-07-29T14:25:53.000+0000" }, { "id": "392072", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "CR and FT passed. PRs merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-01T00:51:02.000+0000", "updated": "2016-08-01T00:51:02.000+0000" }, { "id": "392126", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, with the latest build this issue is no longer reproducible. However I've found that when opening and closing the window a couple of times, I receive the following DEBUG log: \r\n{code:java}\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n{code}\r\n\r\nAdditionally, the log count is incremented every time I cycle through Open / Close. For example after 5 cycles I receive the following:\r\n{code:java}\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n[DEBUG] : Window is not open. Ignoring this close call\r\n{code}\r\n\r\n( 1 + 2 + 3 + 4 + 5 ) \r\n\r\n*Closing this ticket as fixed.* A separate ticket has been created in regards to the discovered issue. ( TIMOB-23711 ) \r\n\r\n\r\nTested On:\r\niPhone 6S (9.3.3) Device \r\nMac OSX El Capitan 10.11.5 \r\nTi SDK: 5.4.0.v20160801022303\r\nAppc Studio: 4.7.0.201607111053\r\nAppc NPM: 4.2.7\t\r\nApp CLI: 5.4.0-37\r\nXcode 7.3\r\nNode v4.4.7", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-01T17:44:54.000+0000", "updated": "2016-08-01T17:46:51.000+0000" }, { "id": "392127", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~htbryant] That is very important to know. Did that not happen prior to 5.4.0? And using what test-case? ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-01T17:52:25.000+0000", "updated": "2016-08-01T17:52:25.000+0000" }, { "id": "392128", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "[~hansknoechel] This issue doesn't occur with 5.3.1.GA. I've included the test case and reproducible steps in the created ticket: TIMOB-23711 . Additionally, checked to see if Storyboard set to {{true}} was causing the issue, but it occurs even when set to false.", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-01T17:58:36.000+0000", "updated": "2016-08-01T17:58:36.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }