FROM : Mike Abdullah
DATE : Mon May 12 18:20:37 2008
Looks to me like you're releasing (and then deallocating) an object in
the outline view without first informing the view that it's gone. It
is very important to remember that outline views do NOT retain their
items; that is the responsibility of your data source. Running with
NSZombieEnabled may help further.
Mike.
On 12 May 2008, at 15:18, Mitchell Livingston wrote:
> Hello,
>
> I have code where i manually reorder an outline view, and when it is
> reordered it automatically resizes to fit all the items. A crash
> consistently happens when I move a subitem from one group to another
> (in other words, when I drag a row so that it is originally in one
> expandable row and is put in another). I have spent a day trying to
> track this down with no luck, and it works fine when I rearrange
> rows in their own subgroup (as in they stay under the same
> expandable row).
>
> Exception Type: EXC_BAD_ACCESS (SIGBUS)
> Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000020
> Crashed Thread: 0
>
> Thread 0 Crashed:
> 0 libobjc.A.dylib 0x95e806e8 objc_msgSend + 24
> 1 com.apple.AppKit 0x9020d58b -[NSOutlineView
> _dataSourceIsItemExpandable:] + 125
> 2 com.apple.AppKit 0x901b605f -[NSOutlineView
> _drawDropHighlight] + 138
> 3 com.apple.AppKit 0x901b4f9b -[NSTableView
> drawRect:] + 4552
> 4 com.apple.AppKit 0x90244bbe -[NSView
> _drawRect:clip:] + 3765
> 5 com.apple.AppKit 0x90243751 -[NSView
> _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1050
> 6 com.apple.AppKit 0x90243aa5 -[NSView
> _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1902
> 7 com.apple.AppKit 0x90243aa5 -[NSView
> _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1902
> 8 com.apple.AppKit 0x90243aa5 -[NSView
> _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1902
> 9 com.apple.AppKit 0x90243aa5 -[NSView
> _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1902
> 10 com.apple.AppKit 0x902420b4 -[NSView
> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView
> :] + 759
> 11 com.apple.AppKit 0x902419f7 -[NSThemeFrame
> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView
> :] + 306
> 12 com.apple.AppKit 0x9023e52d -[NSView
> _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
> + 3090
> 13 com.apple.AppKit 0x9017ef09 -[NSView
> displayIfNeeded] + 933
> 14 com.apple.AppKit 0x9023162f -[NSWindow
> _setFrameCommon:display:stashSize:] + 2031
> 15 com.apple.AppKit 0x90230e3a -[NSWindow
> setFrame:display:] + 78
> 16 com.apple.AppKit 0x902834a5
> _NSMoveHelperTimerCallBack + 1330
> 17 com.apple.CoreFoundation 0x91e24b5e CFRunLoopRunSpecific +
> 4494
> 18 com.apple.CoreFoundation 0x91e24d18 CFRunLoopRunInMode + 88
> 19 com.apple.AppKit 0x903dfcdf -[NSMoveHelper
> _doAnimation] + 889
> 20 com.apple.AppKit 0x9045ec93 -[NSMoveHelper
> _resizeWindow:toFrame:display:] + 407
> 21 com.apple.AppKit 0x9026bf6c -[NSWindow
> setFrame:display:animate:] + 1038
> 22 org.m0k.transmission 0x00016ef6 -[Controller
> setWindowSizeToFit] + 293 (Controller.m:3874)
> 23 org.m0k.transmission 0x0000cd95 -[Controller
> applyFilter:] + 3082 (Controller.m:2041)
> 24 org.m0k.transmission 0x00010448 -[Controller
> outlineView:acceptDrop:item:childIndex:] + 1253 (Controller.m:2696)
> 25 com.apple.AppKit 0x90682d90 -[NSOutlineView
> performDragOperation:] + 242
> 26 com.apple.AppKit 0x9044ff15 NSCoreDragReceiveProc
> + 1411
> 27 com.apple.HIServices 0x909c155c DoDropMessage + 97
> 28 com.apple.HIServices 0x909c14d2 SendDropMessage + 41
> 29 com.apple.HIServices 0x909be83a DragInApplication + 492
> 30 com.apple.HIServices 0x909bd2de CoreDragStartDragging
> + 539
> 31 com.apple.AppKit 0x9044dd9d -[NSCoreDragManager
> _dragUntilMouseUp:accepted:] + 597
> 32 com.apple.AppKit 0x9044ccc2 -[NSCoreDragManager
> dragImage:fromWindow:at:offset:event:pasteboard:source:slideBack:] +
> 1452
> 33 com.apple.AppKit 0x9044c70c -[NSWindow(NSDrag)
> dragImage:at:offset:event:pasteboard:source:slideBack:] + 127
> 34 com.apple.AppKit 0x90682822 -[NSOutlineView
> dragImage:at:offset:event:pasteboard:source:slideBack:] + 195
> 35 com.apple.AppKit 0x9044c354 -[NSTableView
> _doImageDragUsingRowsWithIndexes:event:pasteboard:source:slideBack:]
> + 762
> 36 com.apple.AppKit 0x90294390 -[NSTableView
> _performDragFromMouseDown:] + 718
> 37 com.apple.AppKit 0x902922ea -[NSTableView
> mouseDown:] + 741
> 38 com.apple.AppKit 0x902a3edf -[NSOutlineView
> mouseDown:] + 611
> 39 org.m0k.transmission 0x0001e278 -[TorrentTableView
> mouseDown:] + 515 (TorrentTableView.m:399)
> 40 com.apple.AppKit 0x9024aac3 -[NSWindow sendEvent:]
> + 5381
> 41 com.apple.AppKit 0x90217714 -[NSApplication
> sendEvent:] + 2780
> 42 com.apple.AppKit 0x901750f9 -[NSApplication run] +
> 847
> 43 com.apple.AppKit 0x9014230a NSApplicationMain + 574
> 44 org.m0k.transmission 0x0000238b main + 181 (main.m:38)
> 45 org.m0k.transmission 0x000022bb _start + 209
> 46 org.m0k.transmission 0x000021e9 start + 41
>
> If more information is needed, or if you need to see the code,
> please let me know.
>
> Cheers,
> Mitch
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/<email_removed>
>
> This email sent to <email_removed>
DATE : Mon May 12 18:20:37 2008
Looks to me like you're releasing (and then deallocating) an object in
the outline view without first informing the view that it's gone. It
is very important to remember that outline views do NOT retain their
items; that is the responsibility of your data source. Running with
NSZombieEnabled may help further.
Mike.
On 12 May 2008, at 15:18, Mitchell Livingston wrote:
> Hello,
>
> I have code where i manually reorder an outline view, and when it is
> reordered it automatically resizes to fit all the items. A crash
> consistently happens when I move a subitem from one group to another
> (in other words, when I drag a row so that it is originally in one
> expandable row and is put in another). I have spent a day trying to
> track this down with no luck, and it works fine when I rearrange
> rows in their own subgroup (as in they stay under the same
> expandable row).
>
> Exception Type: EXC_BAD_ACCESS (SIGBUS)
> Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000020
> Crashed Thread: 0
>
> Thread 0 Crashed:
> 0 libobjc.A.dylib 0x95e806e8 objc_msgSend + 24
> 1 com.apple.AppKit 0x9020d58b -[NSOutlineView
> _dataSourceIsItemExpandable:] + 125
> 2 com.apple.AppKit 0x901b605f -[NSOutlineView
> _drawDropHighlight] + 138
> 3 com.apple.AppKit 0x901b4f9b -[NSTableView
> drawRect:] + 4552
> 4 com.apple.AppKit 0x90244bbe -[NSView
> _drawRect:clip:] + 3765
> 5 com.apple.AppKit 0x90243751 -[NSView
> _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1050
> 6 com.apple.AppKit 0x90243aa5 -[NSView
> _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1902
> 7 com.apple.AppKit 0x90243aa5 -[NSView
> _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1902
> 8 com.apple.AppKit 0x90243aa5 -[NSView
> _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1902
> 9 com.apple.AppKit 0x90243aa5 -[NSView
> _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1902
> 10 com.apple.AppKit 0x902420b4 -[NSView
> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView
> :] + 759
> 11 com.apple.AppKit 0x902419f7 -[NSThemeFrame
> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView
> :] + 306
> 12 com.apple.AppKit 0x9023e52d -[NSView
> _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
> + 3090
> 13 com.apple.AppKit 0x9017ef09 -[NSView
> displayIfNeeded] + 933
> 14 com.apple.AppKit 0x9023162f -[NSWindow
> _setFrameCommon:display:stashSize:] + 2031
> 15 com.apple.AppKit 0x90230e3a -[NSWindow
> setFrame:display:] + 78
> 16 com.apple.AppKit 0x902834a5
> _NSMoveHelperTimerCallBack + 1330
> 17 com.apple.CoreFoundation 0x91e24b5e CFRunLoopRunSpecific +
> 4494
> 18 com.apple.CoreFoundation 0x91e24d18 CFRunLoopRunInMode + 88
> 19 com.apple.AppKit 0x903dfcdf -[NSMoveHelper
> _doAnimation] + 889
> 20 com.apple.AppKit 0x9045ec93 -[NSMoveHelper
> _resizeWindow:toFrame:display:] + 407
> 21 com.apple.AppKit 0x9026bf6c -[NSWindow
> setFrame:display:animate:] + 1038
> 22 org.m0k.transmission 0x00016ef6 -[Controller
> setWindowSizeToFit] + 293 (Controller.m:3874)
> 23 org.m0k.transmission 0x0000cd95 -[Controller
> applyFilter:] + 3082 (Controller.m:2041)
> 24 org.m0k.transmission 0x00010448 -[Controller
> outlineView:acceptDrop:item:childIndex:] + 1253 (Controller.m:2696)
> 25 com.apple.AppKit 0x90682d90 -[NSOutlineView
> performDragOperation:] + 242
> 26 com.apple.AppKit 0x9044ff15 NSCoreDragReceiveProc
> + 1411
> 27 com.apple.HIServices 0x909c155c DoDropMessage + 97
> 28 com.apple.HIServices 0x909c14d2 SendDropMessage + 41
> 29 com.apple.HIServices 0x909be83a DragInApplication + 492
> 30 com.apple.HIServices 0x909bd2de CoreDragStartDragging
> + 539
> 31 com.apple.AppKit 0x9044dd9d -[NSCoreDragManager
> _dragUntilMouseUp:accepted:] + 597
> 32 com.apple.AppKit 0x9044ccc2 -[NSCoreDragManager
> dragImage:fromWindow:at:offset:event:pasteboard:source:slideBack:] +
> 1452
> 33 com.apple.AppKit 0x9044c70c -[NSWindow(NSDrag)
> dragImage:at:offset:event:pasteboard:source:slideBack:] + 127
> 34 com.apple.AppKit 0x90682822 -[NSOutlineView
> dragImage:at:offset:event:pasteboard:source:slideBack:] + 195
> 35 com.apple.AppKit 0x9044c354 -[NSTableView
> _doImageDragUsingRowsWithIndexes:event:pasteboard:source:slideBack:]
> + 762
> 36 com.apple.AppKit 0x90294390 -[NSTableView
> _performDragFromMouseDown:] + 718
> 37 com.apple.AppKit 0x902922ea -[NSTableView
> mouseDown:] + 741
> 38 com.apple.AppKit 0x902a3edf -[NSOutlineView
> mouseDown:] + 611
> 39 org.m0k.transmission 0x0001e278 -[TorrentTableView
> mouseDown:] + 515 (TorrentTableView.m:399)
> 40 com.apple.AppKit 0x9024aac3 -[NSWindow sendEvent:]
> + 5381
> 41 com.apple.AppKit 0x90217714 -[NSApplication
> sendEvent:] + 2780
> 42 com.apple.AppKit 0x901750f9 -[NSApplication run] +
> 847
> 43 com.apple.AppKit 0x9014230a NSApplicationMain + 574
> 44 org.m0k.transmission 0x0000238b main + 181 (main.m:38)
> 45 org.m0k.transmission 0x000022bb _start + 209
> 46 org.m0k.transmission 0x000021e9 start + 41
>
> If more information is needed, or if you need to see the code,
> please let me know.
>
> Cheers,
> Mitch
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Mitchell Livingsto… | May 12, 16:18 | |
| Mike Abdullah | May 12, 18:20 | |
| Corbin Dunn | May 12, 19:14 |






Cocoa mail archive

