• 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 heartbeat thread while progress indicator showing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash in heartbeat thread while progress indicator showing


  • Subject: Re: Crash in heartbeat thread while progress indicator showing
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 09 Aug 2012 13:40:48 -0500

On Aug 9, 2012, at 11:41 AM, Jerry Krinock wrote:

> A user reported a non-reproducible crash in the heartbeat thread while my app was showing an alert window with a progress indicator.  In list archives I've read that this may be due to (a) a memory management bug in my code or (b) a bug in Mac OS X.  Both of these seem unlikely since I've been shipping that code for 5 years, and the bug in Mac OS X was back in 2004.
>
> Any ideas?
>
> Thread 3 Crashed:: com.apple.appkit-heartbeat
> 0   com.apple.CoreFoundation      	0x94b28dfe CFStringCreateWithFormat + 46
> 1   com.apple.CoreFoundation      	0x94b63b09 __CFAllocateObject2 + 89
> 2   com.apple.CoreFoundation      	0x94c463e9 +[__NSArrayM __new:::::] + 73
> 3   com.apple.CoreFoundation      	0x94b63a06 -[__NSPlaceholderArray initWithCapacity:] + 134
> 4   com.apple.CoreFoundation      	0x94b29286 CFArrayCreateMutable + 198
> 5   com.apple.AppKit              	0x91c2b0bb -[NSFocusState addSpecialGStateView:] + 57

First, it would be helpful if you were to indicate which version of Mac OS X this was on.  Actually, there's a bunch of information in the crash log header that would be useful.

That said, looking at the disassembly of __CFAllocateObject2(), it seems to only call CFStringCreateWithFormat() with the following format string:

*** NSAllocateObject(): attempt to allocate object of class '%s' failed

No doubt CFStringCreateWithFormat() then failed because it, too, could not allocate memory.  I would say you've either smashed your heap so badly that malloc can't work or you really have exhausted your address space (4GB for an apparently 32-bit process).

Regards,
Ken


_______________________________________________

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: Crash in heartbeat thread while progress indicator showing
      • From: Jerry Krinock <email@hidden>
References: 
 >Crash in heartbeat thread while progress indicator showing (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: How to...
  • Next by Date: Re: How to...
  • Previous by thread: Crash in heartbeat thread while progress indicator showing
  • Next by thread: Re: Crash in heartbeat thread while progress indicator showing
  • Index(es):
    • Date
    • Thread