• 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: does this crash make sense to anyone?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: does this crash make sense to anyone?


  • Subject: Re: does this crash make sense to anyone?
  • From: "Shawn Erickson" <email@hidden>
  • Date: Thu, 18 Dec 2008 11:45:01 -0800

On Thu, Dec 18, 2008 at 11:33 AM, email@hidden
<email@hidden> wrote:
> Hi,
>
> my app keeps annoying me by crashing at launch every now and then.
> What's weird about the backtrace is that it tells me I have called a
> CLASS method named setFrame:. The class varies: in this case it says
> NSClipView, sometimes is says NSAttributedString, or NSObject, or
> whatever. Of course, I don't make any such calls explicitly, and most
> of the time the app launches just fine. Any idea what the problem
> could be, or how to locate it with gdb? I never learned using the
> debugger properly.

This is indicative of not correctly retaining an object (likely an
object given to you that you then stick into an instance var without
taking "ownership" of it) . As a result the object is deallocated out
from under you (likely as a result of the currently auto release pool
being drained) and then that slot in memory is randomly replaced with
a different object instance likely of a totally unrelated class.

You can use NSZombie to help isolate...

http://developer.apple.com/technotes/tn2004/tn2124.html

-Shawn
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: does this crash make sense to anyone?
      • From: "Shawn Erickson" <email@hidden>
References: 
 >does this crash make sense to anyone? (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: does this crash make sense to anyone?
  • Next by Date: Re: a few Core Data questions: Predicates and document based app
  • Previous by thread: Re: does this crash make sense to anyone?
  • Next by thread: Re: does this crash make sense to anyone?
  • Index(es):
    • Date
    • Thread