Crash while drawing cell in NSOutlineView
In code based largely on Apple's SourceView, I am drawing by IconAndTextCell and getting a crash... Anyone seen this and know what it might be? I have added code to draw a badge which I am updating frequently - if I only call it once, it works ok... But if it is called rapidly I get: Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x7fff818ab120 objc_msgSend + 44 1 com.apple.CoreFoundation 0x7fff867ac246 _CFAutoreleasePoolPop + 230 2 com.apple.AppKit 0x7fff81a69d3d -[NSTableView drawRow:clipRect:] + 1343 3 com.apple.AppKit 0x7fff81a695cb -[NSTableView drawRowIndexes:clipRect:] + 369 4 com.apple.AppKit 0x7fff81a6944c -[NSOutlineView drawRowIndexes:clipRect:] + 131 5 com.apple.AppKit 0x7fff81a67f78 -[NSTableView drawRect:] + 1302 6 com.apple.AppKit 0x7fff81a5e05e -[NSView _drawRect:clip:] + 3566 7 com.apple.AppKit 0x7fff81a5b834 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRect ForView:topView:] + 2112 8 com.apple.AppKit 0x7fff81a5c1bf -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRect ForView:topView:] + 4555 9 com.apple.AppKit 0x7fff81a5c1bf -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRect ForView:topView:] + 4555 10 com.apple.AppKit 0x7fff81a5c1bf -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRect ForView:topView:] + 4555 11 com.apple.AppKit 0x7fff81a5c1bf -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRect ForView:topView:] + 4555 12 com.apple.AppKit 0x7fff81a5ae17 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRect ForView:topView:] + 254 13 com.apple.AppKit 0x7fff81a576bf -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2683 14 com.apple.AppKit 0x7fff819d0f37 -[NSView displayIfNeeded] + 969 ___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Crash while drawing cell in NSOutlineView
Trygve Inda (cocoa...@xericdesign.com) on 2010-02-14 22:13 said: In code based largely on Apple's SourceView, I am drawing by IconAndTextCell and getting a crash... Anyone seen this and know what it might be? I have added code to draw a badge which I am updating frequently - if I only call it once, it works ok... But if it is called rapidly I get: Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x7fff818ab120 objc_msgSend + 44 Have you read this? http://www.sealiesoftware.com/blog/archive/2008/09/22/ objc_explain_So_you_crashed_in_objc_msgSend.html Sean -- It is difficult to get a man to understand something when his salary depends upon him not understanding it. - Upton Sinclair ___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Crash while drawing cell in NSOutlineView
Trygve Inda (cocoa...@xericdesign.com) on 2010-02-14 22:13 said: In code based largely on Apple's SourceView, I am drawing by IconAndTextCell and getting a crash... Anyone seen this and know what it might be? I have added code to draw a badge which I am updating frequently - if I only call it once, it works ok... But if it is called rapidly I get: Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x7fff818ab120 objc_msgSend + 44 Have you read this? http://www.sealiesoftware.com/blog/archive/2008/09/22/ objc_explain_So_you_crashed_in_objc_msgSend.html Sean -- It is difficult to get a man to understand something when his salary depends upon him not understanding it. - Upton Sinclair Most excellent! Thank you for this reference... As obviously I had not come across it. Maybe I will get to do some non-work this Saturday night. Cheers, Trygve ___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Crash while drawing cell in NSOutlineView
On Feb 13, 2010, at 7:57 PM, Trygve Inda wrote: Trygve Inda (cocoa...@xericdesign.com) on 2010-02-14 22:13 said: In code based largely on Apple's SourceView, I am drawing by IconAndTextCell and getting a crash... Anyone seen this and know what it might be? I have added code to draw a badge which I am updating frequently - if I only call it once, it works ok... But if it is called rapidly I get: Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x7fff818ab120 objc_msgSend + 44 Have you read this? http://www.sealiesoftware.com/blog/archive/2008/09/22/ objc_explain_So_you_crashed_in_objc_msgSend.html Sean -- It is difficult to get a man to understand something when his salary depends upon him not understanding it. - Upton Sinclair Most excellent! Thank you for this reference... As obviously I had not come across it. Maybe I will get to do some non-work this Saturday night. One bit caught my eye immediately: Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x7fff818ab120 objc_msgSend + 44 1 com.apple.CoreFoundation 0x7fff867ac246 _CFAutoreleasePoolPop + 230 2 com.apple.AppKit 0x7fff81a69d3d -[NSTableView drawRow:clipRect:] + 1343 3 com.apple.AppKit 0x7fff81a695cb -[NSTableView Possibly something got released that should not have been released ? Cheers, . . . . . . . .Henry = iPhone App Development and Developer Education . . . Visit www.nonatomic-retain.com Mac OSX Application Development, Plus a Great Deal More . . . Visit www.trilithon.com ___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com