{ "id": "62121", "key": "TIMOB-1489", "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": "11228", "name": "Release 1.5.0 M03", "archived": true, "released": true, "releaseDate": "2010-11-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:18.000+0000", "created": "2011-04-15T02:54:09.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:56:18.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": "{html}
Setting the background image can cause out of memory issues. If\na couple of large images are set as background it's still possible\nto get OOM. VM budget exceeded.
This also occurs if large images are used within an\nimageview.
Friedrich how large of an image and are you using the latest CI\nbuild?
Yes, latest CI build, really big images.
\nSee this simple example.
\napp.js:
\n// an array of some random images\nvar images = ['http://ddiff.com/wp-content/uploads/2009/11/Hurricane-Isabel-NASA.jpg','http://www.eurocarib.com/userimage/images/hurricane.gif'];\nvar active_image = 0;\n// the image window\nvar imagewin = Titanium.UI.createWindow({\n fullscreen:true\n});\nvar imageView = Titanium.UI.createImageView({\n canScale:true,\n enableZoomControls:true,\n top:0\n});\nimagewin.add(imageView);\nimagewin.addEventListener('close', function(e)\n{\n Ti.API.info('imagewin gets closed');\n});\n// the main window\nvar win = Titanium.UI.createWindow({\n fullscreen:true\n});\nvar button = Titanium.UI.createButton({\n title: 'Show Next',\n bottom: 0\n});\nbutton.addEventListener('click', function(e)\n{\n active_image %= images.length;\n Ti.API.info('loading image #'+active_image);\n imageView.image = images[active_image++];\n imagewin.open();\n});\nwin.add(button);\nwin.open();
\n
\nImages load correctly about 4 times, then app crashes with\nOOM.
Correcting myself:
\nApp doesn't crash but simply fails to display new image.
Verified resolved with basic camera, photo gallery, and code\nabove. On emulator 2.2, N1 (2.2) and G2 (2.2) (version=1.5.0\ntimestamp=11/24/10 15:34 githash=735911a) no additional code\nchanges.