Crash within Cocoa with Guarded Malloc
Crash within Cocoa with Guarded Malloc
- Subject: Crash within Cocoa with Guarded Malloc
- From: Edwin Vane <email@hidden>
- Date: Tue, 4 Oct 2005 01:16:02 -0400
- Mail-followup-to: Cocoa-Dev <email@hidden>
Hi,
I'm having very strange crashing problems with an app I'm working on.
It's crashing at seemingly random times and results aren't reproducible.
Sounds like a nightmare...it is.
Anyway, I turned on Guarded Malloc to help me out (since it seems like a
memory trashing problem) and now it crashes
deep within Cocoa when trying to load nib files. Here's the stack trace:
#0 0x901c0a14 in CFRelease ()
#1 0x901c7e10 in CFDictionaryRemoveAllValues ()
#2 0x901c7e10 in CFDictionaryRemoveAllValues ()
#3 0x901d5eb0 in __CFDictionaryDeallocate ()
#4 0x901c0bd8 in CFRelease ()
#5 0x90a858c8 in -[NSKeyedUnarchiver dealloc] ()
#6 0x92f93820 in +[NSCustomResource pushBundleForImageSearch:] ()
#7 0x92eea9f4 in +[NSBundle(NSNibLoading)
_loadNibFile:nameTable:withZone:ownerBundle:] ()
#8 0x92f698f8 in +[NSBundle(NSNibLoading)
loadNibFile:externalNameTable:withZone:] ()
#9 0x92f706fc in -[NSWindowController loadWindow] ()
#10 0x92f24e04 in -[NSWindowController window] ()
#11 0x92fe188c in -[NSWindowController showWindow:] ()
#12 0x92fece40 in -[NSDocument showWindows] ()
#13 0x92fec8a4 in -[NSDocumentController
openUntitledDocumentOfType:display:] ()
#14 0x92fec7b0 in -[NSDocumentController newDocument:] ()
#15 0x92f276fc in -[NSApplication sendAction:to:from:] ()
#16 0x92f5cf48 in -[NSMenu performActionForItemAtIndex:] ()
#17 0x92fa17f4 in -[NSCarbonMenuImpl
performActionWithHighlightingForItemAtIndex:] ()
#18 0x92fa8124 in -[NSMenu performKeyEquivalent:] ()
#19 0x92f871dc in -[NSApplication _handleKeyEquivalent:] ()
#20 0x92ea4840 in -[NSApplication sendEvent:] ()
#21 0x92ead0d0 in -[NSApplication run] ()
#22 0x92f697bc in NSApplicationMain ()
#23 0x0000cc30 in main (argc=3, argv=0xbffffc7c) at
Since I don't have access to Cocoa internals, I thought somebody here
might be able to enlighten me as to what is wrong with the nib... None
of my code is apparently involved in this stack trace. So either I've
done something bad in the NIB or some other call to my code that happens
before this point is messing things up.
--
Edwin Vane
MMath Candidate
Computer Graphics Lab
School of Computer Science
University of Waterloo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden