Perhaps some eagle-eye out there can spot something I am not seeing..

Here is another ALLOC/FREE log message I get:

ALLOC 0x10306aa00-0x10306ae97 [size=1176]: thread_7fff737ac960 |start | main | 
NSApplicationMain | -[NSApplication run] | -[NSApplication 
nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | 
AEProcessAppleEvent | aeProcessAppleEvent | 
_ZL25dispatchEventAndSendReplyPK6AEDescPS_ | aeDispatchAppleEvent(AEDesc 
const*, AEDesc*, unsigned int, unsigned char*) | 
_NSAppleEventManagerGenericHandler | -[NSAppleEventManager 
dispatchRawAppleEvent:withRawReply:handlerRefCon:] | __-[NSAppleEventManager 
setEventHandler:andSelector:forEventClass:andEventID:]_block_invoke_1 | 
-[NSObject performSelector:withObject:withObject:] | 
-[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] | 
-[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] | 
-[NSPersistentUIManager 
restoreAllPersistentStateWithTalagentWindows:registeringAsReadyWhenDone:completionHandler:]
 | -[NSApplication(NSPersistentUISupport) 
_restoreWindowWithRestoration:handler:] | 
__-[NSApplication(NSPersistentUISupport) 
_restoreWindowWithRestoration:handler:]_block_invoke_1 | 
__-[NSPersistentUIManager 
restoreAllPersistentStateWithTalagentWindows:registeringAsReadyWhenDone:completionHandler:]_block_invoke_2
 | __-[NSPersistentUIManager 
restoreAllPersistentStateWithTalagentWindows:registeringAsReadyWhenDone:completionHandler:]_block_invoke_3
 | -[NSPersistentUIManager 
finishedRestoringWindowsWithZOrder:registerAsReady:completionHandler:] | 
+[NSWindow _batchMinimizeWindowsWithBlock:] | __-[NSPersistentUIManager 
finishedRestoringWindowsWithZOrder:registerAsReady:completionHandler:]_block_invoke_1
 | restorePersistentStateWithWindowRestoration | -[NSWindow 
restoreStateWithCoder:] | -[NSWindow 
_setFrameFromString:overrideTopLeft:constrainFullFrame:force:] | -[NSWindow 
setFrame:display:] | -[NSWindow _setFrameCommon:display:stashSize:] | 
-[NSWindow _oldPlaceWindow:] | -[NSWindow _setFrame:updateBorderViewSize:] | 
-[NSWindow _displayProfileChanged] | -[NSWindow display] | -[NSView 
displayIfNeeded] | -[NSView 
_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] | 
-[NSThemeFrame 
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
 | -[NSView 
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
 | -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] | -[NSView 
_recursiveDisplayAllDirtyWithLockFocus:visRect:] | -[NSView _drawRect:clip:] | 
-[NSView(NSLayerKitGlue) _drawRectAsLayerTree:] | CAViewDraw | 
_ZL9view_drawP7_CAViewdPK11CVTimeStampb | CA::OGL::render(CA::OGL::Renderer&, 
CA::Render::Update*) | CA::OGL::Renderer::render(CA::Render::Update const*) | 
CA::OGL::render_layers(CA::OGL::Renderer&, CA::OGL::Layer*) | 
CA::OGL::ImagingNode::render(CA::OGL::ImagingNode::RenderClosure*) | 
CA::OGL::LayerNode::apply(CA::OGL::Surface**) | 
CA::OGL::render_layers(CA::OGL::Renderer&, CA::OGL::Layer*) | 
CA::OGL::ImagingNode::render(CA::OGL::ImagingNode::RenderClosure*) | 
CA::OGL::LayerNode::apply(CA::OGL::Surface**) | 
CA::OGL::render_layers(CA::OGL::Renderer&, CA::OGL::Layer*) | 
CA::OGL::ImagingNode::render(CA::OGL::ImagingNode::RenderClosure*) | 
CA::OGL::LayerNode::apply(CA::OGL::Surface**) | 
CA::OGL::render_layers(CA::OGL::Renderer&, CA::OGL::Layer*) | 
CA::OGL::ImagingNode::render(CA::OGL::ImagingNode::RenderClosure*) | 
CA::OGL::LayerNode::apply(CA::OGL::Surface**) | 
CA::OGL::render_layers(CA::OGL::Renderer&, CA::OGL::Layer*) | 
CA::OGL::ImagingNode::render(CA::OGL::ImagingNode::RenderClosure*) | 
CA::OGL::LayerNode::apply(CA::OGL::Surface**) | 
CA::OGL::render_contents_background(CA::OGL::Renderer&, CA::OGL::Layer const*) 
| CA::OGL::Context::bind_image(unsigned int, CA::Render::Texture*, unsigned 
int, CA::OGL::TextureFilter, CA::OGL::TextureFilter, float, 
CA::OGL::TextureEdgeMode, CA::OGL::ContentsGeometry const*, float*) | 
CA::OGL::CGLContext::bind_image_impl(unsigned int, CA::Render::Texture*, 
unsigned int, CA::OGL::TextureFilter, CA::OGL::TextureFilter, float, 
CA::OGL::TextureEdgeMode, float*) | CA::OGL::GLContext::update_texture(unsigned 
int) | gleBindTexture | gleCreateTextureObject | malloc | malloc_zone_malloc 
----
FREE  0x10306aa00-0x10306ae97 [size=1176]: thread_1076ca000 |thread_start | 
_pthread_start | _ZL13startIOThreadPv | CVDisplayLink::runIOThread() | 
CVDisplayLink::performIO(CVTimeStamp*) | link_callback | 
_ZL17view_display_linkdPK11CVTimeStampPv | 
_ZL9view_drawP7_CAViewdPK11CVTimeStampb | CA::OGL::render(CA::OGL::Renderer&, 
CA::Render::Update*) | CA::OGL::Renderer::render(CA::Render::Update const*) | 
CA::OGL::CGLContext::collect(bool) | CA::OGL::GLContext::collect(bool) | 
CA::OGL::Context::collect(bool) | 
CA::OGL::CGLContext::delete_image(CA::OGL::Image*) | glDeleteTextures_Exec | 
gleUnbindDeleteHashNamesAndObjects | free 


I can't find any cases of my NIB being deallocated. It appears as if the NIB is 
loaded once.
One idea I have, is that this could be a XIB file that contains a 
NSCollectionView with the NSView for the actual Icon.

Bob..

On Jan 1, 2012, at 9:51 AM, Robert Monaghan wrote:

> Hi Everyone,
> 
> I seem to be crashing with the following message:
> malloc: *** error for object 0x104839c08: incorrect checksum for freed object 
> - object was probably modified after being freed.
> *** set a breakpoint in malloc_error_break to debug
> 
> However, malloc_error_break never gets called.
> I have a malloc stack log going, and when I do a malloc_history for my 
> object, I get a tonne of the following (this is the last entry):
> 
> ALLOC 0x104839c00-0x10483a411 [size=2066]: thread_7fff737ac960 |start | main 
> | NSApplicationMain | +[NSBundle(NSNibLoading) loadNibNamed:owner:] | 
> +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] | 
> +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] | 
> loadNib | _decodeObject | _decodeObjectBinary | -[NSIBObjectData 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSSet(NSSet) 
> initWithCoder:] | -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | 
> _decodeObjectBinary | -[NSWindowTemplate initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSClassSwapper initWithCoder:] | -[NSView 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSArray(NSArray) 
> initWithCoder:] | -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | 
> _decodeObjectBinary | -[NSSplitView initWithCoder:] | -[NSView 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSArray(NSArray) 
> initWithCoder:] | -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | 
> _decodeObjectBinary | -[NSCustomView initWithCoder:] | -[NSView 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSCustomView 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSArray(NSArray) initWithCoder:] | 
> -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | _decodeObjectBinary | 
> -[NSScrollView initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSArray(NSArray) initWithCoder:] | 
> -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | _decodeObjectBinary | 
> -[NSClipView initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSArray(NSArray) initWithCoder:] | 
> -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | _decodeObjectBinary | 
> -[NSTableView initWithCoder:] | -[NSControl initWithCoder:] | -[NSView 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSScroller 
> initWithCoder:] | -[NSControl initWithCoder:] | -[NSView initWithCoder:] | 
> _decodeObject | _decodeObjectBinary | -[NSScroller initWithCoder:] | 
> -[NSControl initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSButton initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSCustomView initWithCoder:] | -[NSView 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSArray(NSArray) 
> initWithCoder:] | -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | 
> _decodeObjectBinary | -[NSTextField initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSBox initWithCoder:] | -[NSView initWithCoder:] | 
> _decodeObject | _decodeObjectBinary | -[NSArray(NSArray) initWithCoder:] | 
> -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | _decodeObjectBinary | 
> -[NSView initWithCoder:] | _decodeObject | _decodeObjectBinary | 
> -[NSArray(NSArray) initWithCoder:] | -[NSKeyedUnarchiver 
> _decodeArrayOfObjectsForKey:] | _decodeObjectBinary | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSTextField initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSCustomView initWithCoder:] | -[NSView 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSArray(NSArray) 
> initWithCoder:] | -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | 
> _decodeObjectBinary | -[NSTextField initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSTextField initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSButton initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSButton initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSButton initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSButton initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSTextField initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSTextField initWithCoder:] | -[NSControl 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSTextFieldCell 
> initWithCoder:] | -[NSActionCell initWithCoder:] | -[NSCell initWithCoder:] | 
> _decodeObject | _decodeObjectBinary | -[NSFont initWithCoder:] | 
> __NSGetMetaFontInstance | +[__NSFontTypefaceInfo 
> typefaceInfoForPostscriptName:] | 
> TDescriptor::CreateMatchingDescriptor(__CFSet const*) const | 
> TDescriptor::InitBaseFont() | 
> TDescriptor::CreateMatchingDescriptorInternal(__CFSet const*) const | 
> TDescriptorSource::CopyFontDescriptorPerPostscriptName(__CFString const*, 
> unsigned long, bool) const | XTCopyFontWithName | 
> TGlobalFontRegistry::TGlobalFontRegistry() | pthread_once | 
> TGlobalFontRegistry::CreateRegistry() | 
> TGlobalFontRegistryImp::RendezvousWithServer() const | 
> TGlobalFontRegistryImp::GetServerPort() const | 
> TSessionManager::TSessionManager() | pthread_once | 
> TSessionManager::CreateSessionManager() | 
> TSessionManagerImp::SetFrameworkDirPaths() | CFBundleCopyResourceURL | 
> _CFFindBundleResources | malloc_zone_malloc 
> ----
> FREE  0x104839c00-0x10483a411 [size=2066]: thread_7fff737ac960 |start | main 
> | NSApplicationMain | +[NSBundle(NSNibLoading) loadNibNamed:owner:] | 
> +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] | 
> +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] | 
> loadNib | _decodeObject | _decodeObjectBinary | -[NSIBObjectData 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSSet(NSSet) 
> initWithCoder:] | -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | 
> _decodeObjectBinary | -[NSWindowTemplate initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSClassSwapper initWithCoder:] | -[NSView 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSArray(NSArray) 
> initWithCoder:] | -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | 
> _decodeObjectBinary | -[NSSplitView initWithCoder:] | -[NSView 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSArray(NSArray) 
> initWithCoder:] | -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | 
> _decodeObjectBinary | -[NSCustomView initWithCoder:] | -[NSView 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSCustomView 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSArray(NSArray) initWithCoder:] | 
> -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | _decodeObjectBinary | 
> -[NSScrollView initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSArray(NSArray) initWithCoder:] | 
> -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | _decodeObjectBinary | 
> -[NSClipView initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSArray(NSArray) initWithCoder:] | 
> -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | _decodeObjectBinary | 
> -[NSTableView initWithCoder:] | -[NSControl initWithCoder:] | -[NSView 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSScroller 
> initWithCoder:] | -[NSControl initWithCoder:] | -[NSView initWithCoder:] | 
> _decodeObject | _decodeObjectBinary | -[NSScroller initWithCoder:] | 
> -[NSControl initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSButton initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSCustomView initWithCoder:] | -[NSView 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSArray(NSArray) 
> initWithCoder:] | -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | 
> _decodeObjectBinary | -[NSTextField initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSBox initWithCoder:] | -[NSView initWithCoder:] | 
> _decodeObject | _decodeObjectBinary | -[NSArray(NSArray) initWithCoder:] | 
> -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | _decodeObjectBinary | 
> -[NSView initWithCoder:] | _decodeObject | _decodeObjectBinary | 
> -[NSArray(NSArray) initWithCoder:] | -[NSKeyedUnarchiver 
> _decodeArrayOfObjectsForKey:] | _decodeObjectBinary | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSTextField initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSCustomView initWithCoder:] | -[NSView 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSArray(NSArray) 
> initWithCoder:] | -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] | 
> _decodeObjectBinary | -[NSTextField initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSTextField initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSButton initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSButton initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSButton initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSButton initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSTextField initWithCoder:] | -[NSControl 
> initWithCoder:] | -[NSView initWithCoder:] | _decodeObject | 
> _decodeObjectBinary | -[NSTextField initWithCoder:] | -[NSControl 
> initWithCoder:] | _decodeObject | _decodeObjectBinary | -[NSTextFieldCell 
> initWithCoder:] | -[NSActionCell initWithCoder:] | -[NSCell initWithCoder:] | 
> _decodeObject | _decodeObjectBinary | -[NSFont initWithCoder:] | 
> __NSGetMetaFontInstance | +[__NSFontTypefaceInfo 
> typefaceInfoForPostscriptName:] | 
> TDescriptor::CreateMatchingDescriptor(__CFSet const*) const | 
> TDescriptor::InitBaseFont() | 
> TDescriptor::CreateMatchingDescriptorInternal(__CFSet const*) const | 
> TDescriptorSource::CopyFontDescriptorPerPostscriptName(__CFString const*, 
> unsigned long, bool) const | XTCopyFontWithName | 
> TGlobalFontRegistry::TGlobalFontRegistry() | pthread_once | 
> TGlobalFontRegistry::CreateRegistry() | 
> TGlobalFontRegistryImp::RendezvousWithServer() const | 
> TGlobalFontRegistryImp::GetServerPort() const | 
> TSessionManager::TSessionManager() | pthread_once | 
> TSessionManager::CreateSessionManager() | 
> TSessionManagerImp::SetFrameworkDirPaths() | CFBundleCopyResourceURL | 
> _CFFindBundleResources | malloc_zone_free 
> 
> 
> For the life of me, I have no idea where to look on this one. I will take a 
> look to see if one of my NIBs is being freed, but I get about 10 to 15 
> variations of the ALLOC/FREE entries above.
> Any suggestions would be appreciated!
> 
> bob..
> 
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/bob%40gluetools.com
> 
> This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to