[TIMOB-1613] iOS: ImageView not releasing memory when image reassigned
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-08-08T18:47:46.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | core |
Reporter | dhpublic (at gmail) |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T02:57:20.000+0000 |
Updated | 2017-08-08T18:47:46.000+0000 |
Description
I think my problem only occurs when ran from inside a setInterval. If I simply load 150 images sequentially into an imageview's image, then only 15 MB of real memory is used. However, when performed inside the setInterval's callback, the real memory usage escalates to nearly 60 MB if 100 images are used, and up to about 100 MB if 150 images are used. It will stay at that level throughout subsequent loops until the app is shut down. I obtained these numbers by running Instruments with Activity Monitor.
I have attached a sample project with the relevant 10-12 lines of code in the app.js file and 100 images of 20 KB each.
Attachments
File | Date | Size |
---|---|---|
testimageview.zip | 2011-04-15T02:57:22.000+0000 | 1847849 |