Skip to main content
Participating Frequently
January 23, 2013
Question

Memory leak in OS X when working with images

  • January 23, 2013
  • 1 reply
  • 448 views

Hi Forum,

I'm working on an application that opens and closes a potentially large number of images (up to 1000 images at a time).  The app reads the files from disk, attaches them to the stage, and then later releases them before processing another set of images.

When profing the app I can see the objects coming into memory and then being released appropriately.  The graph and values of the memory usage shown by profiler suggest the application is behaving properly and releasing the memory as expected (the objects disappear from the list in profiler and the memory usage shown by profiler descreases).  But the real memory displayed in the system's activity memory continues to grow to 500+MB (when profiler is showing < 100MB).  I have tried several combination of Adobe Runtimes (2.7, 3.3, and 3.5) and Flex SDKs (4.5A and 4.6) and the system memory continues to increaase.

The memory stays low and in the expected range when the AIR application is run on Windows XP and 7.

I'm wondering if anyone has experienced an issue where memory usage is much higher (by several hundred MBs ) on OS X vs. Windows when working with images, and if so, what approaches were used to lower memory consumption on OS X.

I can provide graphs of profiler vs. system memory in OS X if that would be helpful.

Thank you in advance for your help with this issue.

This topic has been closed for replies.

1 reply

chris.campbell
Legend
January 23, 2013

Could it be possible that this is just the OS holding the memory for the app until another process requires it?  Do you find that the memory increase eventually causes the app to become unstable? 

It might be best to open a new bug report on this over at bugbase.adobe.com.  When adding the bug, please include any source code, project or installer that will help us reproduce the issue internally.  If you'd like to keep your code private, feel free to email it directly to ccampbel@adobe.com.  Once entered, please post back with the URL so that others effected can add their comments and votes.

Thanks,

Chris