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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com