Re: crash in -[_NSArrayControllerTreeNode _safeNodeAtIndexPath:]
Re: crash in -[_NSArrayControllerTreeNode _safeNodeAtIndexPath:]
- Subject: Re: crash in -[_NSArrayControllerTreeNode _safeNodeAtIndexPath:]
- From: Steve Christensen <email@hidden>
- Date: Tue, 09 Jun 2009 08:56:23 -0700
Thanks for the pointer, Dave. I'm at WWDC this week but will give it a
try on my 10.4 system when I get home.
Steve
On Jun 8, 2009, at 2:52 PM, Dave Fernandes wrote:
Looks very similar to a known problem on 10.4 with Core Data +
NSTreeController. See
http://www.cocoadev.com/index.pl?NSTreeControllerBugOrDeveloperError
The post from Frank at the bottom of the above page gives a solution
that worked for me. However, you should only use this code on 10.4.
The problem was fixed on 10.5.
Dave
On Jun 6, 2009, at 4:32 PM, Steve Christensen wrote:
I'm seeing a crash in -[_NSArrayControllerTreeNode
_safeNodeAtIndexPath:] but I'm not really sure why. That would be
"why" in the sense of what -[_NSArrayControllerTreeNode
_safeNodeAtIndexPath:] might be doing or of something I should or
shouldn't have done vs. saying that it crashed because of a nil
pointer. :)
A little more background: I am using Karelia's iMediaBrowser
framework in a project. I have created a custom media parser that
generates information for the browser to display in an outline
view. There is also a button in the UI that refreshes the data. It
is in response to clicking that button that [someMutableArray
setArray:...] is being called and then is crashing down in the
bowels of AppKit.
Thoughts?
Steve
------------------------------
OS Version: 10.4.11 (Build 8S2167)
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000010
Thread 0 Crashed:
0 com.apple.AppKit 0x93836ca1 -[_NSArrayControllerTreeNode
_safeNodeAtIndexPath:] + 150
1 com.apple.AppKit 0x93838585 -[NSTreeController
_prepareArrayControllerTree] + 337
2 com.apple.AppKit 0x9383bec5 -[NSTreeController
setContent:] + 478
3 com.apple.AppKit 0x935347ac -[NSArrayDetailBinder
_refreshDetailContentInBackground:] + 1559
4 com.apple.Foundation 0x928cb174 -
[NSObject(NSKeyValueObserverNotification)
didChange:valuesAtIndexes:forKey:] + 1029
5 com.apple.Foundation 0x928c7aeb -
[NSKeyValueNotifyingMutableArray removeLastObject] + 192
6 com.apple.Foundation 0x928018d4 -[NSMutableArray
removeAllObjects] + 64
7 com.apple.Foundation 0x9281a749 -[NSMutableArray setArray:] + 38
...
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x93836c19 ecx: 0x90aade80 edx: 0x00000001
edi: 0x00000000 esi: 0x00000000 ebp: 0xbfffe728 esp: 0xbfffe6f0
ss: 0x0000001f efl: 0x00010293 eip: 0x93836ca1 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
_______________________________________________
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
_______________________________________________
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