[TIMOB-1489] Android: Setting Background Image can cause Out of Memory
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:56:18.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 M03 |
Components | Android |
Labels | android, defect |
Reporter | Don Thorp |
Assignee | Don Thorp |
Created | 2011-04-15T02:54:09.000+0000 |
Updated | 2011-04-17T01:56:18.000+0000 |
Description
Setting the background image can cause out of memory issues. If a couple of large images are set as background it's still possible to get OOM. VM budget exceeded.
This also occurs if large images are used within an imageview.
Friedrich how large of an image and are you using the latest CI build?
Yes, latest CI build, really big images.
See this simple example.
app.js:
Images load correctly about 4 times, then app crashes with OOM.
Correcting myself:
App doesn't crash but simply fails to display new image.
Verified resolved with basic camera, photo gallery, and code above. On emulator 2.2, N1 (2.2) and G2 (2.2) (version=1.5.0 timestamp=11/24/10 15:34 githash=735911a) no additional code changes.