You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Preview App memory leak

The Preview app in El Capitan has serious memory leak problem. Open a 100MB pdf file, scroll for a while, it will easily consumes giga bytes of RAM! Once it used 8G!

MacBook Pro with Retina display, OS X El Capitan (10.11)

Posted on Oct 12, 2015 9:30 PM

Reply
75 replies

Feb 19, 2016 7:45 AM in response to MRossi90

I am not a know-it-all. I am just trying to figure out where the problem is, even if I don't face the same issue.


As I've said, it is clear that Preview is using a lot of memory, way more than I think is reasonable.


Again, as I've said, I can see Preview using all that memory and then some - even above the 16GB of installed memory, even to the point of having GB of swap being used - and my mac does not run out of application memory, it does not crash, and is working fine just as I'm typing this message.


You can and should report to Apple that Preview is using too much memory. They may find a bug in there, or they simply make improvements to PDFKit (and they should!).


In the meantime, you may perhaps find some login item, kernel extension or other incompatible software on your mac that somehow leads to your system mishandling a low memory situation, to the point of being unable to function. That is not something that Apple should or could do.

Feb 19, 2016 8:09 AM in response to Luis Sequeira1

I was actually criticising dialabrain, not you.


I don't know where the problem is in my system. I pointed to preview because the "Out of memory" window marks it as the problematic application. It might well be another program or kext that doesn't free its memory on request, but I don't know how to check.


For sure the memory needed by PDFKit is unreasonable (and in spite of this very large amount of memory used, the scrolling/zooming is very far from being smooth on my system).

I would be eager to help Apple diagnosing the problem, if they responded to my bug report. I can't try on a fresh OS because this is my production machine.

Mar 29, 2016 5:36 PM in response to welsonsun

I open one 1Mb document in Preview. Use it for a few minutes and Activity Monitor says Preview is using 4.5Gb RAM. I open a couple more, and it quickly balloons out to 13Gb! Something's seriously awry. Even when I Ctrl-Q close Preview, Activity Monitor reports it still using 13Gb. Keeping Preview closed, I restart Activity MOnitor and Preview is still using 13Gb --- when it shouldn't be in memory at all. Worse thing is that the product specialist I was speaking to, Sunny Pillai, seems to have dodged the issue and didn't reply to subsequent emails about the ballooning RAM.

Jun 1, 2016 11:36 AM in response to welsonsun

The bug is known and it's problem with PDFKit in OSX, it was already reported to Apple by the Skim devs and others: https://sourceforge.net/p/skim-app/bugs/1076/#967c ... Apple hasn't fixed it, despite being 8 months old and despite APple releasing several El Capitan updates since then.


To everyone in here experiencing it, please report it to Apple! The more people reporting it, the more chances of Apple actually fixing it:


https://bugreport.apple.com/


I used to use Skim for all my Latex write-ups. This bug made it impossible to use for longer periods, I regret updating to El Capitan.


p.s. I'm amazed how much @dialabrain managed to twist this thread ... sad

Preview App memory leak

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