Re: EXC_BAD_ACCESS down inside [NSOutlineView reloadItem:reloadChildren];
Re: EXC_BAD_ACCESS down inside [NSOutlineView reloadItem:reloadChildren];
- Subject: Re: EXC_BAD_ACCESS down inside [NSOutlineView reloadItem:reloadChildren];
- From: Graham Cox <email@hidden>
- Date: Tue, 3 Feb 2009 11:02:14 +1100
On 3 Feb 2009, at 10:44 am, Corbin Dunn wrote:
On Feb 2, 2009, at 3:34 PM, Graham Cox wrote:
I'm getting a crash (EXC_BAD_ACCESS) inside an internal
NSOutlineView method. I'm sure it's my own fault but I'd like to
know where I should be looking to fix it. The stack trace is:
#0 0x92abf112 in -[NSOutlineView
_adjustSelectionForItemEntry:numberOfRows:adjustFieldEditorIfNecessary
:]
#1 0x92c1ef9a in -[NSOutlineView reloadItem:reloadChildren:]
#2 0x0009cfce in -[DKOLayerController layerStatusChange:] at
DKOLayerController.m:278
#3 0x941c3e1a in _nsnote_callback
What's your complete backtrace and crash report look like? Something
may accidentally be reentering some code that doesn't handle it well.
Backtrace below. It doesn't look like re-entrancy.
Are you using variable row heights?
No.
The usual question: have you tried running with NSZombieEnabled=YES?
Yes - it crashes the same either way.
The operation is merely a reordering of an array, and it has all been
completed by the time the notification is sent (the notification is
the very last thing done by the reordering method). Makes me suspect
that it's a subtle interaction between the outline view and the array
in the data model but I'm having trouble really seeing what it could be.
--Graham
#0 0x92abf112 in -[NSOutlineView
_adjustSelectionForItemEntry:numberOfRows:adjustFieldEditorIfNecessary:]
#1 0x92c1ef9a in -[NSOutlineView reloadItem:reloadChildren:]
#2 0x0009cfce in -[DKOLayerController layerStatusChange:] at
DKOLayerController.m:278
#3 0x941c3e1a in _nsnote_callback
#4 0x93ce68da in __CFXNotificationPost
#5 0x93ce6bb3 in _CFXNotificationPostNotification
#6 0x941c1080 in -[NSNotificationCenter
postNotificationName:object:userInfo:]
#7 0x941ca8c8 in -[NSNotificationCenter postNotificationName:object:]
#8 0x0027ec0c in -[DKLayerGroup moveLayer:toIndex:] at DKLayerGroup.m:
1094
#9 0x0027e5c9 in -[DKLayerGroup moveLayerToBottom:] at DKLayerGroup.m:
995
#10 0x0029ca84 in -[DKViewController layerSendToBack:] at
DKViewController.m:1029
#11 0x93d84a3d in __invoking___
#12 0x93d84428 in -[NSInvocation invoke]
#13 0x93d844f8 in -[NSInvocation invokeWithTarget:]
#14 0x002425a8 in -[DKDrawingView forwardInvocation:] at
DKDrawingView.m:1723
#15 0x93d8496a in ___forwarding___
#16 0x93d849d2 in __forwarding_prep_0___
#17 0x92aff53b in -[NSApplication sendAction:to:from:]
#18 0x92bae17c in -[NSMenu performActionForItemAtIndex:]
#19 0x92bade81 in -[NSCarbonMenuImpl
performActionWithHighlightingForItemAtIndex:]
#20 0x92b8ab5a in AppKitMenuEventHandler
#21 0x94f8e143 in DispatchEventToHandlers
#22 0x94f8d57d in SendEventToEventTargetInternal
#23 0x94fa9ed2 in SendEventToEventTarget
#24 0x94fde23d in SendHICommandEvent
#25 0x95004a8f in SendMenuCommandWithContextAndModifiers
#26 0x95004a4c in SendMenuItemSelectedEvent
#27 0x9500495e in FinishMenuSelection
#28 0x94fe14ec in MenuSelectCore
#29 0x94fe0ed7 in _HandleMenuSelection2
#30 0x94fe0d4b in _HandleMenuSelection
#31 0x92ac750b in _NSHandleCarbonMenuEvent
#32 0x92a2e26a in _DPSNextEvent
#33 0x92a2d630 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
#34 0x92a2666b in -[NSApplication run]
#35 0x929f38a4 in NSApplicationMain
#36 0x00005645 in main at main.m:13
_______________________________________________
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