Re: Odd Crash when adding table columns manually
Re: Odd Crash when adding table columns manually
- Subject: Re: Odd Crash when adding table columns manually
- From: Corbin Dunn <email@hidden>
- Date: Wed, 19 Jan 2011 15:23:41 -0800
On Jan 19, 2011, at 12:28 PM, Eric Gorr wrote:
> I believe my situation is a bit different and my stack trace is not the same.
>
> What I see in my stack trace is:
>
> #0 0x978f8edb in objc_msgSend
> #1 0x00516f60 in ??
> #2 0x98fbb3ea in -[NSTableView preparedCellAtColumn:row:]
> #3 0x98fd58bc in -[NSTableView _drawContentsAtRow:column:withCellFrame:]
> #4 0x98fd492a in -[NSTableView drawRow:clipRect:]
> #5 0x98fd4362 in -[NSTableView drawRowIndexes:clipRect:]
> #6 0x98fd2d3b in -[NSTableView drawRect:]
> #7 0x98fc88fd in -[NSView _drawRect:clip:]
> #8 0x98fc5fc9 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
> #9 0x98fc695c in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
> #10 0x98fc695c in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
> #11 0x98fc695c in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
> #12 0x98fc695c in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
> #13 0x98fc555b in -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
> #14 0x98fc1ea2 in -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
> #15 0x98f22a57 in -[NSView displayIfNeeded]
> #16 0x98eebd40 in -[NSWindow displayIfNeeded]
> #17 0x98f1d28a in _handleWindowNeedsDisplay
> #18 0x92548e02 in __CFRunLoopDoObservers
> #19 0x92504d8d in __CFRunLoopRun
> #20 0x92504464 in CFRunLoopRunSpecific
> #21 0x92504291 in CFRunLoopRunInMode
> #22 0x96351f87 in RunCurrentEventLoopInMode
> #23 0x964d9ba1 in GetNextEventMatchingMask
> #24 0x964d9de9 in EventAvail
> #25 0x00002183 in -[WindowTestAppDelegate applicationDidFinishLaunching:] at WindowTestAppDelegate.m:92
> ...
> ...
> ...
>
> However, if this is not a case where I should be setting the datasource and delegate to nil, but instead is a bug, I would be interested...
>
> My sample project will crash every time after the button is pushed.
Your probably not implementing -copyWithZone in your cell correctly (or at all).
Also, if you are crashing, use Instruments. Then after you have done that, you can ask why you get a zombie message. :). That's the first thing to do when you get a crash.
http://www.corbinstreehouse.com/blog/2007/10/instruments-on-leopard-how-to-debug-those-random-crashes-in-your-cocoa-app/
-corbin
_______________________________________________
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