Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quartz Composition Memory Leak Problem



Not a problem!

I have spent today looking at both my application and Quartz Composer editor and what was happening is below.   I was using your QC file with one difference - I added a string printer before the Movie with Image patch and published its input as Movie_Path, i.e.

Attachment: Movie.qtz
Description: application/quartzcomposer


I ran the QC model through both QC editor and my application, with leaks and MallocDebug, and also with the link between the String Printer and the Movie Composer severed, i.e.

Attachment: Movie.noconnection.qtz
Description: application/quartzcomposer


Each test was done with the /System/Library/CoreServices/Setup Assistant.app/Contents/Resources/TransitionSection.bundle/Contents/Resources/intro.mov movie.

My results are below.

QC editor
Movie
-- Leaks
----- Contant leaks, but each time the movie loops, the number of nodes malloced increase by one
-- MallocDebug
----- 56 bytes leaked every time the movie played.
Movie - no connection
-- Leaks
----- Constant leaks, and number of nodes malloced stays constant.
-- MallocDebug
----- No increasing leaks

My application (see previous post for the XCode project)
Movie
-- Leaks
----- Contant leaks, but each time the movie loops, the number of nodes malloced increase by one
-- MallocDebug
----- 56 bytes leaked every time the movie played.
Movie - no connection
-- Leaks
----- Contant leaks
-- MallocDebug
----- No leaks

So to answer the question, I can observe the leaks in QC Editor and my application in MallocDebug.

I'm fast getting out of my depth for knowledge of the inner workings of the Mac OS, and the differences between Leaks and MallocDebug.  I hope I haven't gone down a tangent that is not very helpful, but I am writing an application that I want to run for several days at a go, and I just want to make sure I not doing something incorrect!

Kind regards,
Tim Clark


On 28/06/2005, at 11:10 AM, Pierre-Olivier Latour wrote:

I ran the attached QV file and it ran well: no memory leaks.  However, I then published the Movie Path connector and ran leaks again.  This output is attached.


you would need to give more details: are you observing the leak in your custom application only, or can you reproduce it in the Quartz Composer editor?


I also tried out the leaks technique on my original composition when it was being executed as an application rather than through Quartz Composer, and found that there were some leaks here too.
Both traces are attached.


Those traces do not really show leaks in Quartz Composer.

________________________________________________________
Pierre-Olivier Latour                            email@hidden
Quartz Composer Architect                Graphics & Imaging Team


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Quartz Composition Memory Leak Problem (From: Tom Bernard <email@hidden>)
 >Re: Quartz Composition Memory Leak Problem (From: Pierre-Olivier Latour <email@hidden>)
 >Re: Quartz Composition Memory Leak Problem (From: Tim Clark <email@hidden>)
 >Re: Quartz Composition Memory Leak Problem (From: Pierre-Olivier Latour <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.