{ "id": "88093", "key": "TIMOB-8063", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-03-17T19:25:46.000+0000", "created": "2012-03-16T13:44:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "15798", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "87443", "key": "TIMOB-7897", "fields": { "summary": "Android: Memory leak by windows not properly cleaning up after 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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-27T18:23:39.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Windows which have their own activity and take a long time to open can crash\r\nthe application if the user \"backs\" out of the new activity before the\r\nwindow has finished opening. This is mostly seen on emulator which runs into the global\r\nreference count limit due to a large number of Phantom references which build up.\r\n\r\nh3. Test case: Opening a window with a high number of child views.\r\n\r\nThis test case is taken from TIMOB-7897 and demonstrates the issue nicely.\r\nRun the application in the emulator. Click the button to load a new window with\r\na large number of views. Notice the new activity becomes active (black screen).\r\nHit the back button before the window finishes opening. Repeat this process until you\r\ncrash the application due to the global reference limit being reached.\r\n\r\n{code}\r\nfunction mainViews() {\r\n \r\n var newWin = Ti.UI.createWindow({ navBarHidden: true });\r\n \r\n Ti.API.info('****** mainViews function has started ******');\r\n var views =[];\r\n var view = null;\r\n for (var i=0; i < 500; i++) {\r\n view = Ti.UI.createView();\r\n views.push(view);\r\n newWin.add(view);\r\n }\r\n \r\n \r\n newWin.open();\r\n \r\n alert(\"You may click back now.\");\r\n \r\n Ti.API.info('Titanium views created and added to array');\r\n Ti.API.info('****** mainViews function has stopped ******');\r\n}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"white\"\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n title: \"create 5k views\"\r\n});\r\nbutton.addEventListener(\"click\", function(e) {\r\n mainViews();\r\n Ti.API.info('Available memory: ' + Ti.Platform.availableMemory);\r\n});\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Backing out of a window with its own activity while it's still opening leads to bad state.", "creator": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Runtime: V8\r\nSDK: v20120316140251 (master branch)\r\nDevice: emulator", "comment": { "comments": [ { "id": "186958", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Not seeing this issue anymore with latest master and updated test case (views reduced to 500).", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-17T19:25:46.000+0000", "updated": "2012-03-17T19:25:46.000+0000" }, { "id": "415897", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.3 GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nTi CLI 5.0.11\r\nAlloy 1.9.5\r\nArrow 1.10.1\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-27T18:23:39.000+0000", "updated": "2017-03-27T18:23:39.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }