{ "id": "81634", "key": "TIMOB-5762", "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": "12083", "description": "", "name": "Sprint 2011-43", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": null, "resolutiondate": null, "created": "2011-10-16T08:30:38.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_navgroup", "qe-testadded" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": null, "updated": "2018-03-06T18:58:00.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Attached is a basic example showing the issue:\r\n\r\nWindows opened in a navgroup do not get GC'd despite attempts to null out the window after it's closed in the navgroup. In the example I'm using a commonJS module to add to the new window, open it, etc. Even nulling out 'exports' yields no results.\r\n\r\nNOTE: If you hit the auto generated back button - the window DOES get GC'd. Only if you close it programmatically does it retain the windows.\r\n\r\nHere is a video example - first click on the auto generated buttons, which do release - then clicking the button to programmatically close it, which never releases: http://screencast.com/t/MtzkI4ZRhn", "attachment": [ { "id": "23729", "filename": "Archive.zip", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-10-16T08:32:00.000+0000", "size": 1570594, "mimeType": "application/zip" }, { "id": "41400", "filename": "Screen Shot 2013-08-08 at 11.23.10 AM.png", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-08T18:35:56.000+0000", "size": 194310, "mimeType": "image/png" } ], "flagged": false, "summary": "Closing a window in nav group doesn't destroy window nor it's contents even after nulling out", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": "iOS 4.3", "comment": { "comments": [ { "id": "169361", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "Attached is a sample app", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-10-16T08:32:00.000+0000", "updated": "2011-10-16T08:32:00.000+0000" }, { "id": "169362", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "The only thing I can figure is there is some voodoo going on in the background with the auto generated back button and close that doesn't apply to programmatically closing it.\r\n\r\nI thought maybe the CommonJS module was being retained but after a few tests, I'm sure it's not the COmmonJS module getting retained (quick test is to create a bunch of TiUI objects in the module but don't add it to the window...they all get GC'd - however if you add them to the window they will, of course, stay around since the window is staying around).", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-10-16T08:34:55.000+0000", "updated": "2011-10-16T08:34:55.000+0000" }, { "id": "169460", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "Ok just converted the test to a non commonJS example since that doesn't work on 1.8 right now - http://pastie.org/2714222\r\n\r\nResults:\r\n1.7.X - Does not release windows (just like CommonJS example)\r\n1.8.0 - Releases memory appropriately.", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-10-17T13:57:23.000+0000", "updated": "2011-10-17T13:57:23.000+0000" }, { "id": "169462", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Previously fixed in 1.8.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-17T14:02:14.000+0000", "updated": "2011-10-17T14:02:14.000+0000" }, { "id": "173194", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pass: Tested with 1.8.0.1.v20111116185058 on\r\niPad 2 4.3.5\r\niPod Touch 4.02\r\niPhone 4s 5.0", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-17T16:15:00.000+0000", "updated": "2011-11-17T16:15:00.000+0000" }, { "id": "265604", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopened.\nTested with: \nAppcelerator Studio: , build: 3.1.2.201308071912\nTitanium SDK, build: 3.1.2.v20130807171139\nCLI: 3.1.2-alpha\nAlloy: 1.2.0-alpha6\nXcode5-DP4\nDevices:\niPad mini iOS 6.1.3\n\nCheck the attachment", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-08T18:35:11.000+0000", "updated": "2013-08-08T18:35:11.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }