Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Aperture 3.1 Serious memory usage (Memory Leak?)

After update to AP3.1 editing is become a nightmare.

Scenario:
- boot my MacPro with 24 GB RAM (64 Bit Kernel)
- start Aperture 3.1
- start working on a 20Mpixel photo (some basic adjustments)
- start applying a brushed BW adjustment

After a two minutes of intense last step (brushing) MacPro become choppy.

syslog write:

23/10/10 13.01.25 Aperture[296] Synchronous request, waiting for page to become ready
23/10/10 13.03.29 kernel (default pager): [KERNEL]: Switching ON Emergency paging segment
23/10/10 13.03.37 kernel (default pager): [KERNEL]: System is out of paging space.
23/10/10 13.03.37 kernel (default pager): [KERNEL]: Failed to recover emergency paging segment
23/10/10 13.03.52 kernel (default pager): [KERNEL]: System is out of paging space.
23/10/10 13.03.52 kernel (default pager): [KERNEL]: Failed to recover emergency paging segment
23/10/10 13.03.37 kernel (default pager): [KERNEL]: Failed to recover emergency paging segment
23/10/10 13.03.52 kernel (default pager): [KERNEL]: System is out of paging space.
23/10/10 13.03.52 kernel (default pager): [KERNEL]: Failed to recover emergency paging segment
23/10/10 13.04.19 kernel (default pager): [KERNEL]: System is out of paging space.
23/10/10 13.04.19 kernel (default pager): [KERNEL]: Failed to recover emergency paging segment
23/10/10 13.04.49 kernel (default pager): [KERNEL]: System is out of paging space.
23/10/10 13.04.49 kernel (default pager): [KERNEL]: Failed to recover emergency paging segment
23/10/10 13.05.25 kernel (default pager): [KERNEL]: System is out of paging space.
23/10/10 13.05.25 kernel (default pager): [KERNEL]: Failed to recover emergency paging segment
23/10/10 13.06.16 kernel (default pager): [KERNEL]: System is out of paging space.
23/10/10 13.06.16 kernel (default pager): [KERNEL]: Failed to recover emergency paging segment
23/10/10 13.07.05 kernel (default pager): [KERNEL]: System is out of paging space.
23/10/10 13.07.05 kernel (default pager): [KERNEL]: Failed to recover emergency paging segment

and so on...

Activity Monitor show Aperture consuming 22 GB of RAM! (and 23 of VMem)
System have all memory used(!) and 6 GB of swap in use!!

Then Aperture run in "infinite loop" one task processing image.

Quitting Aperture All memory is freed and syslog say:
23/10/10 13.08.22 kernel (default pager): [KERNEL]: Recovered emergency paging segment

Last update had killed AP3 😟
Apple Please fix ASAP! Aperture is not a toy, is a critical tool for Pro users!

p.s. someone have an idea to rollback to previously version?

MacPro (early 2008) 8 Core 3GHz - CinemaDisplay 30", Mac OS X (10.6.4), 24 GB ram - ATI Radeon HD 4870

Posted on Oct 23, 2010 4:26 AM

Reply
25 replies

Oct 23, 2010 6:19 AM in response to Taro-71

To roll back to the previous version you will need a backup of your Library before the upgrade, because when you upgraded to 3.1 Aperture told you that it was going to upgrade the library, which then can not be used by older versions of aperture anymore.

So you can reinstall aperture by just removing it and reinstalling it from v3 and then updating the the last version before 3.1, but as for the library, you will need to restore that from a backup.

Oct 23, 2010 7:26 AM in response to Taro-71

OK, I've isolated the issue.

I've created a one image library with some adjustments applied.
Image is s a 20 Mpixel 8 bit PSD Photo.

Tried this library on a MacBook Pro C2D - 3 GB ram and the problem is immediately came up.
MacBook sit down with memory full and GigaBites of swap paging...

Step to reproduce:
-- enter in viewer and select adjustments
-- chose the brush on Black&White adjustment
-- Brush and unbrush (alt key) over the photo for a couple of minutes zooming (Z key) in and out like a normal session.

the machine will be choppy and, opening activity monitor, the memory used will be ~100% with a lot of swap

If someone wanna try, here can be downloaded the isolated test library (50Mb):

https://files.me.com/rossipaolo/g4hbbq

Oct 23, 2010 8:31 AM in response to Taro-71

I've downloaded the image and tried to reproduce your problems. I can't reproduce any of the memory paging, any of the thrashing, or any of the problems you report. I have the same Mac Pro, only 16GB of RAM, and the Radeon 5770 video card. I tried brushing on the B&W and my machine was snappy and was using less than half of the wired memory. I also had several other programs running in the background. It sounds like you may have a software interaction problem. That's happened to me and took me a long time to work out. The updated Aperture 3.1 with the updated ProKit runs quickly and hasn't once slowed down except when I had about 40 images loaded. Even then I never got a paging error, just slightly slower response and a few spinning beachballs. That happens in CS5 too.

What else do you have running?

Oct 23, 2010 9:10 AM in response to Marc Feldesman

Hi Marc,
The problem happens with no other program running, after a fresh reboot.

The strange thing is that my macbook pro 17" (2006) is very different machine from my MacPro but the problem is the same.

The problem is not after two or three brushed but usually after a couple of minutes of repeating operation (think about a subject isolation, and/or using the feather on the layer mask), after a "x" number of operations, seems that something brokes.

If you can, try the feather tool on the current BW mask, enabling the "color overlay" feature; this method bring me in that condition faster.

Oct 23, 2010 11:35 AM in response to Taro-71

I spent a good 15 minutes brushing, feathering, and doing all the sorts of things you might do to make a good looking B&W. At no time did my machine run out of memory, slow down, start paging. I haven't tested this on my new Mac Book Pro (mid-2010) with the Core i7 processor and 8 GB ram. How much video Ram do you have. My 5770 card as a full gig of video RAM. Wonder if that is related to the problem. I'm also using a 24" LED monitor.

Oct 23, 2010 12:40 PM in response to Marc Feldesman

Thank you Mark for your time.

I also have done more testing, and the issue seems to be more complicated:

In the library I've previously posted I've added a couple of RAW file and a couple of jpeg (20Mpixel), then I have done some brushing on all, also with other adjustment, without any kind of problems.

Then I've Lift & stamp the adjustment of the first image (the flowers) over the other photos and I've tried to BW brushing the subjects of them.

Now, with RAW file, no problems at all, instead with jpeg the issue rapidly manifests. 😟

Maybe is a problem with 8 Bit images or only fortuity?

This problem will drive me crazy :/

Oct 23, 2010 4:54 PM in response to Taro-71

Hi Taro, I tried this on a new MBP 15" 10.6.4 with 4GB using your sample Prj with the PSD. I could see a problem similar to what you saw in 3.1 but could also see more or less the same problem in 3.0.3.
One possible temp workaround might be to disable the other adjustments while you do your brushing? Or disable preview generation for that project while you work on it to diminish contentions.

Oct 24, 2010 4:39 AM in response to Clem

Hi Clem, thanks for your try.

I've tried to disable previews in any way I know: preferences, deleting all preview, disabling flag in "Maintain previews in all projects". But when I try to edit that image, in particular the BW mask the problem reappear immediately.
(now I've to regenerate all because are disappeared from iPhoto and iPhone... :P )

I admit that aperture preview concept confuse me a little, maybe could be better to have a very small previews in browsing (very fast to generate an small) and a realtime regenerated full size image when choosed by the needed program, but this not is the right thread to speak to. 😉

In this case I can temporarely disable the others adjustments for shure, but the problem is that in a real working session this operation become very uncomfortable: think about a complex set of adjustements in a projects, enabling/disabling for minimal retouch can become a frustration...

In my case, with 3.0.3 the problem was fixed.

I hope the sample project I've posted can be useful to isolate the issue for a quick fix. 🙂

Nov 11, 2010 2:04 AM in response to Taro-71

I experienced the same memory problem, mainly when using brushes on large images (500MB). The brushing in itself would be ok, but feathering or moving the slider in de adjustment pane would quickly exhaust my RAM.

In my case the 10.6.5 update seems to have solved the problem on both my systems. Will do some more tests and let you know.

Nov 11, 2010 3:47 AM in response to Taro-71

Maybe I have discovered the common factor in all of this: Zoom.

Without Zooming-in I have not been able to break it. A large 16-bit TIFF (700MB) with almost all heavy adjustments applied (curves, HS, edge sharpen, many retouches) and then feathering and adjusting 5 different brushes, not a problem (with color overlay on!). As soon as I zoom-in and touch one of the brushes the active memory claimed by Aperture rises steeply. If you leave zoom in time, the memory curve levels of and all is well again (the memory is not reclaimed though, so yes it is a leak).

So it seems that the problem is with the screen update in zoom-mode. Maybe they are trying something clever with only updating the visible part of the image and it backfired?

Nov 29, 2010 12:29 PM in response to MacRicco

I can confirm that this is the case even with small files. A Canon RAW file of about 12MB from a Canon 40D can reproduce this problem each and every time. Fresh boot, load Aperture 3.1. Collection contains 135 photos shot Sunday, stored on FW800 ext. drive. Open an image, apply the shadow/highlights to a brush. Brush in areas on the face. No problem so far. Zoom in. No problem. While still zoomed in, use the slider on the shadows/highlights tool to adjust the shadow just a bit to the right. With Activity Monitor running, one will immediately see all memory disappear from the system and Console, within 2 seconds, shows the "System is out of paging space." and "Failed to recover emergency paging segment". The system becomes unusable. Last night it took over 45 minutes for the system to respond to a Command-Q to quit Aperture.

My iMac has 8GB of memory, and I've disabled Spotlight as much as I can (but activity monitor still shows it taking 3.28GB of virtual mem, even though i have it set to ignore all drives and have unchecked all file types).

When the problem happens, Activity Monitor will show my free memory at under 8MB. Yes, MB. :-O

Adjusting the slider while the image is not zoomed in, no leak appears. I'm not using the Quick Preview feature in this case either.

Other than zooming out, making a slider adjustment, zooming in to check, and repeating that process, are there any other work-arounds? This is quit annoying when I've got several different adjustments to tweak (in the test case above, i've only added one adjustment).

I can send someone the sample file in case someone wants to see if their system does the same as mine.

Also, probably unrelated, but I've had Aperture 3.1 crash many times during a session (and sometimes lose all the adjustments i had applied to the photo i was working when it crashed!). I've been using Aperture since 1.0 & use it daily; I've never seen any version of Aperture crash as frequently as I have with 3.1. 😟

Kind regards,

/vjl/

Message was edited by: Vince LaMonica - Replaced square brackets with ( and )

Message was edited by: Vince LaMonica - Replaced square brackets with ( and )

Aperture 3.1 Serious memory usage (Memory Leak?)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.