{ "id": "83924", "key": "TIMOB-6692", "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": "12090", "description": "", "name": "Sprint 2011-50", "archived": true, "released": true, "releaseDate": "2011-12-19" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-12-15T17:47:42.000+0000", "created": "2011-12-15T10:05:19.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_imageview", "qe-testadded", "verified-1.8.0.1" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "55266", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "168551", "key": "TIMOB-24872", "fields": { "summary": "[Android] Unable to destroy activity when exiting application has a TableView", "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": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-06-21T22:00:06.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": "h3. Fail Case / Test Case\r\n\r\n1. Create a new app.\r\n\r\n2. Replace the contents of the app's app.js with the code below.\r\n\r\n3. Run the app.\r\n\r\nh4. Symptom\r\n\r\nEven though the app only contains a 30-row table view with a small (46x43) image on each row, it can easily run out of memory. You might even see (depending on memory on your device) that not every row gets the image to begin with, because memory already ran out while rendering the table. Otherwise, scroll up and down in the table view, and check logcat -- eventually you'll start seeing long exception traces for an out of memory condition.\r\n\r\n{code:title=app.js}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'#000',\r\n\texitOnClose: true\r\n});\r\n\r\nvar rows = [];\r\nfor (var i = 0; i < 30; i++) {\r\n\tvar row = Ti.UI.createTableViewRow({height: \"40dp\"});\r\n\tvar iv = Ti.UI.createImageView({image: \"KS_nav_ui.png\", height: \"43\"});\r\n\trow.add(iv);\r\n\trows.push(row);\r\n}\r\n\r\nvar tv = Ti.UI.createTableView({data: rows});\r\nwin.add(tv);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ImageView with just one dimension size specified and placed on a TableViewRow can easily lead to Out Of Memory exceptions", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium Mobile 1.8.0.1 a5de72183258e2, any Android device/version", "comment": { "comments": [ { "id": "176506", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fix on:\r\n\r\nSDK build: 1.8.0.1.RC3\r\nRuntime: V8, Rhino\r\nTitanium Studio, build: 1.0.7.201112152014\r\nOS: Mac OS X Lion\r\nDevice: Nexus One (2.2.2)\r\n\r\nNote: Did not verify fix on sdk build 1.9.0", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-12-19T10:56:31.000+0000", "updated": "2011-12-19T10:56:31.000+0000" }, { "id": "178958", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Already verified fix on 1.8.0.1", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-11T15:26:03.000+0000", "updated": "2012-01-11T15:26:03.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }