On Jan 7, 2008, at 8:39 AM, Christiaan Hofman wrote:

>
> On 7 Jan 2008, at 4:59 PM, Adam R. Maxwell wrote:
>
>>
>> On Jan 7, 2008, at 3:22 AM, Christiaan Hofman wrote:
>>
>>> Adam, perhaps you have an idea on this. With some PDFs, I see a
>>> considerable memory leak in thumbnail drawing (in some cases 100MB).
>>> I tracked the trouble to -[PDFPage drawWithBox]. The PDFView
>>> sometimes drops graphics from the offending pages and does not seem
>>> to have the leak and slowdown, at least not as much. The thumbnails
>>> never drop graphics. I can send a file if you want (can't attach it
>>> on the list).
>>
>> Wow!  That's a pretty incredible leak; I've never seen anything like
>> it.  It'd be interesting to see if it's fixed in Leopard, but I don't
>> have any ideas for workarounds.  Did you try overriding drawWithBox:
>> to get the CGPDFPageRef via -pageRef and draw it directly to see if
>> that "fixes" the leak?
>
> It does not seem to be a real memory leak, or at least not that big.
> But it's a very strange use of memory. When I open this file and show
> the thumbnails for page 12&13 real memory use goes up to 200MB
> (according to Activity monitor), and doesn't go down again after
> closing the document (also not after a while). However, when I reopen
> the document without showing those two thumbnails, memory usage goes
> *down*. After a few times doing this memory usage is back to normal
> (about 30-40MB). Also MallocDebug doesn't show any leaks.
>
> But there is a definite bug. Drawing the thumbnails is very very
> slow, and I get malloc errors.

No problems here in Skim or Preview (or FVPDFIcon).  Page 13 slows  
down Skim's magnifier quite a bit, but thumbnails draw quickly.  The  
malloc errors sound bad, though; that generally means things are  
headed for a crash.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
skim-app-develop mailing list
skim-app-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-develop

Reply via email to