• 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 in initWithCoder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crash in initWithCoder


  • Subject: Re: crash in initWithCoder
  • From: James Maxwell <email@hidden>
  • Date: Wed, 16 Mar 2011 11:14:34 -0700

Ah, got it. Thanks!
Unfortunately, Guard Malloc doesn't appear to reveal anything special.
Here's the top several lines of my log:

GuardMalloc: Allocations will be placed on 16 byte boundaries.
GuardMalloc:  - Some buffer overruns may not be noticed.
GuardMalloc:  - Applications using vector instructions (e.g., SSE or Altivec) should work.
GuardMalloc: GuardMalloc version 23
2011-03-16 11:03:49.011 ManuScore[80074:903] Starting unarchive of CbCM hierarchy file...
warning: Unable to restore previously selected frame.
(gdb) bt
bt
#0  0x001648be in GMmalloc_zone_malloc_internal ()
#1  0x94920a13 in _CFRuntimeCreateInstance ()
#2  0x94943482 in CFNumberCreate ()
#3  0x949586f2 in __CFBinaryPlistCreateObject2 ()
#4  0x94985fe0 in __CFBinaryPlistCreateObject ()
#5  0x9823eb11 in _decodeObjectBinary ()
#6  0x98240314 in -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] ()
#7  0x98240981 in -[NSArray(NSArray) initWithCoder:] ()
#8  0x9823f508 in _decodeObjectBinary ()
#9  0x9823e800 in _decodeObject ()
#10 0x000ced15 in -[CbCM_Node initWithCoder:] (self=0xc1f0ffa0, _cmd=0x9433805c, aDecoder=0x1d279fb0) at /Volumes/Wheet-Docs/jamesmaxwell/Documents/xcode/rubato/ManuScore+MusiCOG/ManuScore Test Build/ManuScore/CbCM_Node.m:552

J.

On 2011-03-16, at 10:43 AM, Alex Kac wrote:

> Edit your Scheme and go to the "Run" section. Then go to the Diagnostics tab.
>
> On Mar 16, 2011, at 12:35 PM, Sean McBride wrote:
>
>> On Wed, 16 Mar 2011 10:31:26 -0700, James Maxwell said:
>>
>>> Okay, strange discovery.
>>>
>>> I wasn't sure how to enable Guard Malloc in Xcode 4
>>
>> Someone on the Xcode list could probably help there...
>>
>>> , so I just ran it
>>> with the Allocations Instrument. Lo and behold, it doesn't crash. This
>>> didn't make much sense to me, so I tried running the release build,
>>> rather than the debug build. No crash. Switch back to debug.... boom.
>>>
>>> Any thoughts on what this might mean?
>>
>> Have you looked at the Debugging Magic technote?  It's well worth
>> reading in its entirety.
>>
>> <http://developer.apple.com/library/mac/#technotes/tn2004/tn2124.html>
>>
>> All the bits about memory management should help you debug this.
>>
>> --
>> ____________________________________________________________
>> Sean McBride, B. Eng                 email@hidden
>> Rogue Research                        www.rogue-research.com
>> Mac Software Developer              Montréal, Québec, Canada
>>
>>
>> _______________________________________________
>>
>> 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
>
> Alex Kac - President and Founder
> Web Information Solutions, Inc.
>
> "It is useless for sheep to pass a resolution in favor of vegetarianism while wolves remain of a different opinion."
> -- William Randolph Inge
>
>
>
>
>
> _______________________________________________
>
> 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

James B Maxwell
Composer/Doctoral Student
School for the Contemporary Arts (SCA)
School for Interactive Arts + Technology (SIAT)
Simon Fraser University
email@hidden
email@hidden

_______________________________________________

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

References: 
 >crash in initWithCoder (From: James Maxwell <email@hidden>)
 >Re: crash in initWithCoder (From: Greg Parker <email@hidden>)
 >Re: crash in initWithCoder (From: James Maxwell <email@hidden>)
 >Re: crash in initWithCoder (From: James Maxwell <email@hidden>)
 >Re: crash in initWithCoder (From: Sean McBride <email@hidden>)
 >Re: crash in initWithCoder (From: Alex Kac <email@hidden>)

  • Prev by Date: Re: crash in initWithCoder
  • Next by Date: Creating an NSExpression with a keypath and variable
  • Previous by thread: Re: crash in initWithCoder
  • Next by thread: Re: crash in initWithCoder
  • Index(es):
    • Date
    • Thread