• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Crash within Cocoa with Guarded Malloc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash within Cocoa with Guarded Malloc


  • Subject: Re: Crash within Cocoa with Guarded Malloc
  • From: Daniel Jalkut <email@hidden>
  • Date: Tue, 04 Oct 2005 11:14:58 -0400

I would figure out which Nib file is being loaded at the time of the crash and narrow things down from there. If you don't know which Nib is inovlved, set a break on loadNibFile:externalNameTable:withZone:, and examine the arguments to that function.

Now, are you doing anything funky with that Nib? Manually opening it? Perhaps loading it and then releasing some outlet connection to it? If you remove that Nib from the equation, does the same type of crash happen on another Nib? If not, then start hacking things out of this Nib until the crash goes away (make a backup first, of course).

This is still imminently debuggable :)

Daniel

On Oct 4, 2005, at 1:16 AM, Edwin Vane wrote:

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:
sweater.com


This email sent to email@hidden


_______________________________________________ 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
  • Follow-Ups:
    • Re: Crash within Cocoa with Guarded Malloc
      • From: Edwin Vane <email@hidden>
References: 
 >Crash within Cocoa with Guarded Malloc (From: Edwin Vane <email@hidden>)

  • Prev by Date: Get the installed OS country code
  • Next by Date: App startup/shutdown hooks
  • Previous by thread: Crash within Cocoa with Guarded Malloc
  • Next by thread: Re: Crash within Cocoa with Guarded Malloc
  • Index(es):
    • Date
    • Thread