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



I am mostly using the Animation+ codec, but I have also tried H.264 and Video, and the memory leaks remain present, but their sizes change.

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.

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.

Thanks for your help!

Kind regards,
Tim Clark

Process 1085: 15089 nodes malloced for 4838 KB
Process 1085: 2 leaks for 48 total leaked bytes.
Leak: 0x0058ba90  size=32	string ' rvt'
	Call stack: [thread 22eb]: | 0x0 | start | start | main | NSApplicationMain | +[NSBundle(NSNibLoading) loadNibNamed:owner:] | +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] | +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] | loadNib | -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] | -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] | -[NSWindow displayIfNeeded] | -[NSView displayIfNeeded] | -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] | -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] | -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] | -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] | CFArrayApplyFunction | _recursiveDisplayInRect2 | -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] | CFArrayApplyFunction | _recursiveDisplayInRect2 | -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] | -[QCView lockFocus] | -[QCView startRendering] | -[QCView startRendering:] | -[QCPatch(Runtime) startRendering:options:] | -[QCPatch(Private) _setup:runtime:] | -[QCPatch(Private) _setup:runtime:] | dyld_stub_pthread_cond_init | dyld_stub_pthread_cond_init | QTOpenGLTextureContextCreate | QTVCInitializeOpenGLTextureContext | CallComponent | OpenGLTVC_ComponentDispatch | CallComponentFunctionCommon | OpenGLTVC_InitializeOpenGLTextureContext | CVOpenGLTextureCacheCreate | CVOpenGLTextureCache::initWithContext(_CGLContextObject*, _CGLPixelFormatObject*, __CFDictionary const*) | CVOpenGLContext::initWithContextAndPixelFormat(_CGLContextObject*, _CGLPixelFormatObject*) | CGLCreateContext | cglInitializeContext | gliCreateContext | gldCreateContext | gldUpdateDispatch | gldDestroyVertexArray | CFStringCreateWithCString | __CFStringCreateImmutableFunnel3 | _CFRuntimeCreateInstance | CFAllocatorAllocate 
Leak: 0x0058bb10  size=16	
	0x00000001 0x02871e00 0x020245b0 0x00100000 	..........E.....
	Call stack: [thread 22eb]: | 0x0 | start | start | main | NSApplicationMain | +[NSBundle(NSNibLoading) loadNibNamed:owner:] | +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] | +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] | loadNib | -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] | -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] | -[NSWindow displayIfNeeded] | -[NSView displayIfNeeded] | -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] | -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] | -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] | -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] | CFArrayApplyFunction | _recursiveDisplayInRect2 | -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] | CFArrayApplyFunction | _recursiveDisplayInRect2 | -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] | -[QCView lockFocus] | -[QCView startRendering] | -[QCView startRendering:] | -[QCPatch(Runtime) startRendering:options:] | -[QCPatch(Private) _setup:runtime:] | -[QCPatch(Private) _setup:runtime:] | dyld_stub_pthread_cond_init | dyld_stub_pthread_cond_init | QTOpenGLTextureContextCreate | QTVCInitializeOpenGLTextureContext | CallComponent | OpenGLTVC_ComponentDispatch | CallComponentFunctionCommon | OpenGLTVC_InitializeOpenGLTextureContext | CVOpenGLTextureCacheCreate | CVOpenGLTextureCache::initWithContext(_CGLContextObject*, _CGLPixelFormatObject*, __CFDictionary const*) | CVOpenGLContext::initWithContextAndPixelFormat(_CGLContextObject*, _CGLPixelFormatObject*) | CGLCreateContext | cglInitializeContext | gliCreateContext | gldCreateContext | gldUpdateDispatch | gldDestroyVertexArray | CFNotificationCenterAddObserver | CFAllocatorAllocate 
Process 1089: 44962 nodes malloced for 9085 KB
Process 1089: 17 leaks for 272 total leaked bytes.
Leak: 0x04005330  size=16	
	0x00000001 0x04007a80 0x909d59b4 0x0003c1d3 	......z...Y.....
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | _NSHandleCarbonMenuEvent | -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] | -[NSMenu performActionForItemAtIndex:] | -[NSApplication sendAction:to:from:] | -[NSDocumentController(NSPrivate) _openRecentDocument:] | -[NSApplication openFile:ok:] | -[NSApplication _doOpenFile:ok:tryTemp:] | -[NSDocumentController(NSInternal) _openFile:] | -[NSDocumentController openDocumentWithContentsOfURL:display:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController _windowDidLoad] | 0x570c | -[NSWindow setToolbar:] | -[NSWindow _showToolbar:animate:] | -[NSToolbarView _syncItemSetAndUpdateItemViewersWithSEL:setNeedsModeConfiguration:sizeToFit:setNeedsDisplay:updateKeyLoop:] | -[NSToolbarView _syncItemSet] | -[NSToolbarItemViewer initWithItem:forToolbarView:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x04007dc0  size=16	
	0x00000001 0x04008990 0x909d59b4 0x0003c1d3 	..........Y.....
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | _NSHandleCarbonMenuEvent | -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] | -[NSMenu performActionForItemAtIndex:] | -[NSApplication sendAction:to:from:] | -[NSDocumentController(NSPrivate) _openRecentDocument:] | -[NSApplication openFile:ok:] | -[NSApplication _doOpenFile:ok:tryTemp:] | -[NSDocumentController(NSInternal) _openFile:] | -[NSDocumentController openDocumentWithContentsOfURL:display:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController _windowDidLoad] | 0x570c | -[NSWindow setToolbar:] | -[NSWindow _showToolbar:animate:] | -[NSToolbarView _syncItemSetAndUpdateItemViewersWithSEL:setNeedsModeConfiguration:sizeToFit:setNeedsDisplay:updateKeyLoop:] | -[NSToolbarView _syncItemSet] | -[NSToolbarItemViewer initWithItem:forToolbarView:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x04008090  size=16	
	0x00000001 0x04007e00 0x909d59b4 0x00050004 	......~...Y.....
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | _NSHandleCarbonMenuEvent | -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] | -[NSMenu performActionForItemAtIndex:] | -[NSApplication sendAction:to:from:] | -[NSDocumentController(NSPrivate) _openRecentDocument:] | -[NSApplication openFile:ok:] | -[NSApplication _doOpenFile:ok:tryTemp:] | -[NSDocumentController(NSInternal) _openFile:] | -[NSDocumentController openDocumentWithContentsOfURL:display:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController _windowDidLoad] | 0x570c | -[NSWindow setToolbar:] | -[NSWindow _showToolbar:animate:] | -[NSToolbarView _syncItemSetAndUpdateItemViewersWithSEL:setNeedsModeConfiguration:sizeToFit:setNeedsDisplay:updateKeyLoop:] | -[NSToolbarView _syncItemSet] | -[NSToolbarItemViewer initWithItem:forToolbarView:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x040083d0  size=16	
	0x00000001 0x04008160 0x909d59b4 0x00080000 	.......`..Y.....
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | _NSHandleCarbonMenuEvent | -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] | -[NSMenu performActionForItemAtIndex:] | -[NSApplication sendAction:to:from:] | -[NSDocumentController(NSPrivate) _openRecentDocument:] | -[NSApplication openFile:ok:] | -[NSApplication _doOpenFile:ok:tryTemp:] | -[NSDocumentController(NSInternal) _openFile:] | -[NSDocumentController openDocumentWithContentsOfURL:display:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController _windowDidLoad] | 0x570c | -[NSWindow setToolbar:] | -[NSWindow _showToolbar:animate:] | -[NSToolbarView _syncItemSetAndUpdateItemViewersWithSEL:setNeedsModeConfiguration:sizeToFit:setNeedsDisplay:updateKeyLoop:] | -[NSToolbarView _syncItemSet] | -[NSToolbarItemViewer initWithItem:forToolbarView:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x04008840  size=16	
	0x00000001 0x04008660 0x909d59b4 0x00050004 	.......`..Y.....
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | _NSHandleCarbonMenuEvent | -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] | -[NSMenu performActionForItemAtIndex:] | -[NSApplication sendAction:to:from:] | -[NSDocumentController(NSPrivate) _openRecentDocument:] | -[NSApplication openFile:ok:] | -[NSApplication _doOpenFile:ok:tryTemp:] | -[NSDocumentController(NSInternal) _openFile:] | -[NSDocumentController openDocumentWithContentsOfURL:display:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController _windowDidLoad] | 0x570c | -[NSWindow setToolbar:] | -[NSWindow _showToolbar:animate:] | -[NSToolbarView _syncItemSetAndUpdateItemViewersWithSEL:setNeedsModeConfiguration:sizeToFit:setNeedsDisplay:updateKeyLoop:] | -[NSToolbarView _syncItemSet] | -[NSToolbarItemViewer initWithItem:forToolbarView:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x04008f50  size=16	
	0x00000001 0x04008cc0 0x909d59b4 0x00050004 	..........Y.....
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | _NSHandleCarbonMenuEvent | -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] | -[NSMenu performActionForItemAtIndex:] | -[NSApplication sendAction:to:from:] | -[NSDocumentController(NSPrivate) _openRecentDocument:] | -[NSApplication openFile:ok:] | -[NSApplication _doOpenFile:ok:tryTemp:] | -[NSDocumentController(NSInternal) _openFile:] | -[NSDocumentController openDocumentWithContentsOfURL:display:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController _windowDidLoad] | 0x570c | -[NSWindow setToolbar:] | -[NSWindow _showToolbar:animate:] | -[NSToolbarView _syncItemSetAndUpdateItemViewersWithSEL:setNeedsModeConfiguration:sizeToFit:setNeedsDisplay:updateKeyLoop:] | -[NSToolbarView _syncItemSet] | -[NSToolbarItemViewer initWithItem:forToolbarView:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x040092c0  size=16	
	0x00000001 0x04009020 0x909d59b4 0x00050004 	....... ..Y.....
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | _NSHandleCarbonMenuEvent | -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] | -[NSMenu performActionForItemAtIndex:] | -[NSApplication sendAction:to:from:] | -[NSDocumentController(NSPrivate) _openRecentDocument:] | -[NSApplication openFile:ok:] | -[NSApplication _doOpenFile:ok:tryTemp:] | -[NSDocumentController(NSInternal) _openFile:] | -[NSDocumentController openDocumentWithContentsOfURL:display:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController _windowDidLoad] | 0x570c | -[NSWindow setToolbar:] | -[NSWindow _showToolbar:animate:] | -[NSToolbarView _syncItemSetAndUpdateItemViewersWithSEL:setNeedsModeConfiguration:sizeToFit:setNeedsDisplay:updateKeyLoop:] | -[NSToolbarView _syncItemSet] | -[NSToolbarItemViewer initWithItem:forToolbarView:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x03a6caa0  size=16	
	0x00000001 0x03a66750 0x909d59b4 0x00010001 	......gP..Y.....
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | AEProcessAppleEvent | aeProcessAppleEvent | dispatchEventAndSendReply(AEDesc const*, AEDesc*) | aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) | _NSAppleEventManagerGenericHandler | -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] | -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] | -[NSApplication(NSAppleEventHandling) _handleAEOpen:] | -[NSApplication _doOpenUntitled] | -[NSDocumentController(NSInternal) _openUntitled] | -[NSDocumentController openUntitledDocumentAndDisplay:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController _windowDidLoad] | 0x570c | -[NSWindow setToolbar:] | -[NSWindow _showToolbar:animate:] | -[NSToolbarView _syncItemSetAndUpdateItemViewersWithSEL:setNeedsModeConfiguration:sizeToFit:setNeedsDisplay:updateKeyLoop:] | -[NSToolbarView _syncItemSet] | -[NSToolbarItemViewer initWithItem:forToolbarView:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x03a79f80  size=16	
	0x00000001 0x03a6af20 0x909d59b4 0x00010001 	....... ..Y.....
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | AEProcessAppleEvent | aeProcessAppleEvent | dispatchEventAndSendReply(AEDesc const*, AEDesc*) | aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) | _NSAppleEventManagerGenericHandler | -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] | -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] | -[NSApplication(NSAppleEventHandling) _handleAEOpen:] | -[NSApplication _doOpenUntitled] | -[NSDocumentController(NSInternal) _openUntitled] | -[NSDocumentController openUntitledDocumentAndDisplay:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController _windowDidLoad] | 0x570c | -[NSWindow setToolbar:] | -[NSWindow _showToolbar:animate:] | -[NSToolbarView _syncItemSetAndUpdateItemViewersWithSEL:setNeedsModeConfiguration:sizeToFit:setNeedsDisplay:updateKeyLoop:] | -[NSToolbarView _syncItemSet] | -[NSToolbarItemViewer initWithItem:forToolbarView:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x03a9c5c0  size=16	
	0x00000001 0x03a68380 0x909d59b4 0x00010001 	..........Y.....
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | AEProcessAppleEvent | aeProcessAppleEvent | dispatchEventAndSendReply(AEDesc const*, AEDesc*) | aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) | _NSAppleEventManagerGenericHandler | -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] | -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] | -[NSApplication(NSAppleEventHandling) _handleAEOpen:] | -[NSApplication _doOpenUntitled] | -[NSDocumentController(NSInternal) _openUntitled] | -[NSDocumentController openUntitledDocumentAndDisplay:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController _windowDidLoad] | 0x570c | -[NSWindow setToolbar:] | -[NSWindow _showToolbar:animate:] | -[NSToolbarView _syncItemSetAndUpdateItemViewersWithSEL:setNeedsModeConfiguration:sizeToFit:setNeedsDisplay:updateKeyLoop:] | -[NSToolbarView _syncItemSet] | -[NSToolbarItemViewer initWithItem:forToolbarView:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x003be370  size=16	
	0x00000001 0x03a65c90 0x909d59b4 0x00010001 	......\...Y.....
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | AEProcessAppleEvent | aeProcessAppleEvent | dispatchEventAndSendReply(AEDesc const*, AEDesc*) | aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) | _NSAppleEventManagerGenericHandler | -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] | -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] | -[NSApplication(NSAppleEventHandling) _handleAEOpen:] | -[NSApplication _doOpenUntitled] | -[NSDocumentController(NSInternal) _openUntitled] | -[NSDocumentController openUntitledDocumentAndDisplay:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController _windowDidLoad] | 0x570c | -[NSWindow setToolbar:] | -[NSWindow _showToolbar:animate:] | -[NSToolbarView _syncItemSetAndUpdateItemViewersWithSEL:setNeedsModeConfiguration:sizeToFit:setNeedsDisplay:updateKeyLoop:] | -[NSToolbarView _syncItemSet] | -[NSToolbarItemViewer initWithItem:forToolbarView:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x003bd440  size=16	
	0x00000001 0x003af8e0 0x00011288 0x00010001 	.....:..........
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | AEProcessAppleEvent | aeProcessAppleEvent | dispatchEventAndSendReply(AEDesc const*, AEDesc*) | aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) | _NSAppleEventManagerGenericHandler | -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] | -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] | -[NSApplication(NSAppleEventHandling) _handleAEOpen:] | -[NSApplication _doOpenUntitled] | -[NSDocumentController(NSInternal) _openUntitled] | -[NSDocumentController openUntitledDocumentAndDisplay:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController loadWindow] | +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] | +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] | loadNib | -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] | -[NSNotificationCenter(NSNotificationCenterAppKitExtensions) _addObserver:notificationNamesAndSelectorNames:object:onlyIfSelectorIsImplemented:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x003c90c0  size=16	
	0x00000001 0x03a5d830 0x909d59b4 0x00010001 	.......0..Y.....
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | AEProcessAppleEvent | aeProcessAppleEvent | dispatchEventAndSendReply(AEDesc const*, AEDesc*) | aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) | _NSAppleEventManagerGenericHandler | -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] | -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] | -[NSApplication(NSAppleEventHandling) _handleAEOpen:] | -[NSApplication _doOpenUntitled] | -[NSDocumentController(NSInternal) _openUntitled] | -[NSDocumentController openUntitledDocumentAndDisplay:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController _windowDidLoad] | 0x570c | -[NSWindow setToolbar:] | -[NSWindow _showToolbar:animate:] | -[NSToolbarView _syncItemSetAndUpdateItemViewersWithSEL:setNeedsModeConfiguration:sizeToFit:setNeedsDisplay:updateKeyLoop:] | -[NSToolbarView _syncItemSet] | -[NSToolbarItemViewer initWithItem:forToolbarView:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x003b75a0  size=16	
	0x00000001 0x03a33600 0x909d59b4 0x00020000 	......6...Y.....
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | AEProcessAppleEvent | aeProcessAppleEvent | dispatchEventAndSendReply(AEDesc const*, AEDesc*) | aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) | _NSAppleEventManagerGenericHandler | -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] | -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] | -[NSApplication(NSAppleEventHandling) _handleAEOpen:] | -[NSApplication _doOpenUntitled] | -[NSDocumentController(NSInternal) _openUntitled] | -[NSDocumentController openUntitledDocumentAndDisplay:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController _windowDidLoad] | 0x570c | -[NSWindow setToolbar:] | -[NSWindow _showToolbar:animate:] | -[NSToolbarView _syncItemSetAndUpdateItemViewersWithSEL:setNeedsModeConfiguration:sizeToFit:setNeedsDisplay:updateKeyLoop:] | -[NSToolbarView _syncItemSet] | -[NSToolbarItemViewer initWithItem:forToolbarView:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x003ca5f0  size=16	
	0x00000001 0x003b2340 0x9853958c 0x00026765 	.....;#@.S....ge
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | AEProcessAppleEvent | aeProcessAppleEvent | dispatchEventAndSendReply(AEDesc const*, AEDesc*) | aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) | _NSAppleEventManagerGenericHandler | -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] | -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] | -[NSApplication(NSAppleEventHandling) _handleAEOpen:] | -[NSApplication _doOpenUntitled] | -[NSDocumentController(NSInternal) _openUntitled] | -[NSDocumentController openUntitledDocumentAndDisplay:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController loadWindow] | +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] | +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] | loadNib | -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x003d5b40  size=16	
	0x00000001 0x003b38a0 0x9853958c 0x000766f0 	.....;8..S....f.
	Call stack: [thread bffff30f]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | _NSHandleCarbonMenuEvent | -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] | -[NSMenu performActionForItemAtIndex:] | -[NSApplication sendAction:to:from:] | -[NSDocumentController(NSPrivate) _openRecentDocument:] | -[NSApplication openFile:ok:] | -[NSApplication _doOpenFile:ok:tryTemp:] | -[NSDocumentController(NSInternal) _openFile:] | -[NSDocumentController openDocumentWithContentsOfURL:display:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController loadWindow] | +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] | +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] | loadNib | -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 
Leak: 0x0038c430  size=16	
	0x00000001 0x03a5fb40 0x909d59b4 0x00010001 	.......@..Y.....
	Call stack: [thread 23a7]: | 0x0 | 0xa744 | 0x23a8 | NSApplicationMain | 0x2cbc | -[NSApplication run] | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | AEProcessAppleEvent | aeProcessAppleEvent | dispatchEventAndSendReply(AEDesc const*, AEDesc*) | aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) | _NSAppleEventManagerGenericHandler | -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] | -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] | -[NSApplication(NSAppleEventHandling) _handleAEOpen:] | -[NSApplication _doOpenUntitled] | -[NSDocumentController(NSInternal) _openUntitled] | -[NSDocumentController openUntitledDocumentAndDisplay:error:] | 0x4dfc | -[NSWindowController window] | -[NSWindowController _windowDidLoad] | 0x570c | -[NSWindow setToolbar:] | -[NSWindow _showToolbar:animate:] | -[NSToolbarView _syncItemSetAndUpdateItemViewersWithSEL:setNeedsModeConfiguration:sizeToFit:setNeedsDisplay:updateKeyLoop:] | -[NSToolbarView _syncItemSet] | -[NSToolbarItemViewer initWithItem:forToolbarView:] | -[NSNotificationCenter addObserver:selector:name:object:] | _nsnoteinfo_new | malloc 


On 28/06/2005, at 2:37 AM, Pierre-Olivier Latour wrote:

I do not see the leak in your application. I do see the leak whenever a
composition runs that uses an Image With Movie patch. I see that leak both
when your application loads the composition and when Quartz Composer loads
the composition. 1200 - 1500 bytes/minute are leaked.


When I run compositions without Image With Movie, either with your
application or with Quartz Composer, I do not see the leak.


I attached a composition that plays the Mac intro movie on a billboard - I don't see any leak:



<Movie.qtz>

[G4Book:MacOS] setenv MallocStackLogging 1
[G4Book:MacOS] /Developer/Applications/Graphics\ Tools/Quartz\ Composer.app/Contents/MacOS/Quartz\ Composer &
[1] 5971
[G4Book:MacOS] (5971) malloc: recording stacks using standard recorder


[G4Book:MacOS] leaks 5971
(5974) malloc: recording stacks using standard recorder
Process 5971: 35650 nodes malloced for 7710 KB
Process 5971: 0 leaks for 0 total leaked bytes.


can you reproduce? This movie is JPEG encoded and the leak may depend on the movie encoding type, what kind of movies are you using?


________________________________________________________
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>)



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.