Reply to topic  [ 4 posts ] 
Potential Memory Leak in Aperture 3.5 
Author Message
What's a life?
User avatar

Joined: Thu Apr 23, 2009 6:27 pm
Posts: 12251
Reply with quote
I say potential, because I’ve not ready anything about it elsewhere yet. However, I can reproduce it nicely on my Mac mini with 16GB RAM onboard.

I’ve been painting an adjustment layer (only Curves) onto my images in Aperture. I noticed yesterday that the software was starting to slow down. Then, the Force Quit window opened:
Image

Yikes. Further investigation in Performance Monitor shows that 16GB RAM has been consumed, and that there is a lot of memory pressure. When I quit Aperture, that RAM is all reclaimed and things settle down:
Image

You can see in the second screen shot where I quit Aperture, and the massive drop in memory consumption.

Now, I’ve not seen this before, so I can only assume that there is a problem in Aperture 3.5 and/or Mavericks. My advice - quit often. That seems to keep the problem at bay.

_________________
All the best,
Paul
brataccas wrote:
your posts are just combo chains of funny win

I’m on Twitter, tweeting away... My Photos Random Avatar Explanation


Tue Nov 12, 2013 1:54 pm
Profile
What's a life?
User avatar

Joined: Thu Apr 23, 2009 7:26 pm
Posts: 17040
Reply with quote
Hmmm. I'm not sure this defines a memory leak per se, at least not in the way a coder uses the phrase. It just shows that Aperture is grabbing all the RAM it can get it's hands on. That's not unusual behaviour from professional software applications (it's bad coding, but it's not actually a bug). It could be 'performing as intended'. I think you'd have to look at how Aperture dealt with memory as you were using it. Does it grab it all straight away? Does it grab RAM in a rational way as you're asking it to do things? If you start it up and then leave it and it's gradually eating up RAM while idle, that would be a better indicator.

The only actual way would be to use the tools that come with XCode to see if the app is grabbing & releasing memory when it should and that the OS's garbage collection system is handling it to give it back to the system free pool. Not sure you can do that on a release version of an app, to be honest.

To be honest, it's generally not a good idea to leave massively memory-hungry apps running for extended periods anway. Depending on how the OS deals with memory allocation, having a big lump of RAM 'locked' for a long time can lead to slowdown as the system has to keep dealing with that fact.


Tue Nov 12, 2013 4:51 pm
Profile
What's a life?
User avatar

Joined: Thu Apr 23, 2009 6:27 pm
Posts: 12251
Reply with quote
Well firstly it seems that Aperture may not be the culprit, but possibly a trigger. It seems to be triggering a massive uptake in Kernel Task when running though, which drops massively when the app is quit.

Other potential memory hogs (Final Cut Pro X) seems quite stable. However, when running Aperture, you cans EE the memory stress increase as I paint layers. That stress doesn't go down when I leave Aperture to rest (ie doing nothing), which makes me think it's doing something to cause Kernel Task retain it.

So not sure what the issue is here. I have been reading reports from other users that sound familiar - other apps can cause RAM use to increase. So not sure now.

_________________
All the best,
Paul
brataccas wrote:
your posts are just combo chains of funny win

I’m on Twitter, tweeting away... My Photos Random Avatar Explanation


Tue Nov 12, 2013 5:53 pm
Profile
What's a life?
User avatar

Joined: Thu Apr 23, 2009 6:27 pm
Posts: 12251
Reply with quote
I think it may be something hinky in the Library. I’ve repaired the database, remissions and rebuilt it and that seems to have made a bit of a difference. You do have to expect memory to be used up, but not to the point where applications start to shut down.

The next option is to make a new library and import the old one into it. Apparently, that’s the best option for a complete clean out, but it takes a long time to do.

_________________
All the best,
Paul
brataccas wrote:
your posts are just combo chains of funny win

I’m on Twitter, tweeting away... My Photos Random Avatar Explanation


Wed Nov 13, 2013 4:04 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.