Crash in objc_msgSend_rtp when calling add action of NSArrayController
Crash in objc_msgSend_rtp when calling add action of NSArrayController
- Subject: Crash in objc_msgSend_rtp when calling add action of NSArrayController
- From: Camillo Lugaresi <email@hidden>
- Date: Fri, 23 Dec 2005 22:46:13 +0100
I have a table view with two columns bound to an NSArrayController
which is in turn bound to an NSMutableArray. A button which invokes
the add: action is connected to the NSArrayController.
Viewing and sorting the table works fine, but when I click the button
the program crashes inside objc_msgSend_rtp. The stack trace looks
like this:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x80005edc
Thread 0 Crashed:
0 <<00000000>> 0xfffeff20 objc_msgSend_rtp + 32
1 com.apple.AppKit 0x93b3af70
_NSValueOfClassWithSpecialSpecificErrorMessage + 132
2 com.apple.AppKit 0x938d56f8 -[NSArrayDetailBinder
_refreshDetailContentInBackground:] + 732
3 com.apple.AppKit 0x93b66830 -[NSArrayDetailBinder
_performArrayBinderOperation:singleObject:multipleObjects:singleIndex:mu
ltipleIndexes:selectionMode:] + 1748
4 com.apple.AppKit 0x93b669c0 -[NSArrayDetailBinder
insertObjectIntoMasterArrayRelationship:atIndex:selectionMode:] + 52
5 com.apple.AppKit 0x93b5ab7c -[NSArrayController
_insertObject:atArrangedObjectIndex:objectHandler:] + 140
6 com.apple.AppKit 0x93b5c284 -[NSArrayController
_executeInsert:didCommitSuccessfully:actionSender:] + 248
7 libobjc.A.dylib 0x909c4214 objc_msgSendv + 180
8 com.apple.Foundation 0x928da1c8 -[NSInvocation invoke] + 944
9 com.apple.Foundation 0x928da778 -[NSInvocation
invokeWithTarget:] + 64
10 com.apple.AppKit 0x93b3c0b4 _NSSendCommitEditingSelector
+ 288
11 com.apple.AppKit 0x93b5f5d0 -[NSController
_controllerEditor:didCommit:contextInfo:] + 156
12 libobjc.A.dylib 0x909c4214 objc_msgSendv + 180
13 com.apple.Foundation 0x928da1c8 -[NSInvocation invoke] + 944
14 com.apple.Foundation 0x928da778 -[NSInvocation
invokeWithTarget:] + 64
15 com.apple.Foundation 0x928e9138 __NSFireDelayedPerform + 304
16 com.apple.CoreFoundation 0x90770aec __CFRunLoopDoTimer + 184
17 com.apple.CoreFoundation 0x9075d464 __CFRunLoopRun + 1680
18 com.apple.CoreFoundation 0x9075ca18 CFRunLoopRunSpecific + 268
19 com.apple.HIToolbox 0x931861e0 RunCurrentEventLoopInMode + 264
20 com.apple.HIToolbox 0x93185874 ReceiveNextEventCommon + 380
21 com.apple.HIToolbox 0x931856e0
BlockUntilNextEventMatchingListInMode + 96
22 com.apple.AppKit 0x93684904 _DPSNextEvent + 384
23 com.apple.AppKit 0x936845c8 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
24 com.apple.AppKit 0x93680b0c -[NSApplication run] + 472
I set a breakpoint on objc_msgSend_rtp that logs the method being
called and continues. The logging command is:
printf "%c[%s %s]\n", $r3&&(*((int**)$r3))[4]&2?'+':'-', $r3?(*
((int**)$r3))[2]:"nil", $r4
And here is the last page of logged messages before the crash:
-[NSKVONotifying_ServerList didChange:valuesAtIndexes:forKey:]
-[NSKeyValueUnnestedProperty keyPath]
+[NSNumber alloc]
+[NSNumber allocWithZone:]
-[NSPlaceholderNumber initWithInt:]
-[NSCFNumber release]
-[NSIndexSet retain]
-[NSArrayDetailBinder observeValueForKeyPath:ofObject:change:context:]
-[NSArrayDetailBinder _handleObservingRefresh]
-[_NSExpectedObservingInfo
shouldSuppressNotificationFromObject:keyPath:]
-[nil release]
-[nil release]
-[NSCFString release]
-[NSKVONotifying_ServerList release]
-[NSIndexSet release]
-[NSIndexSet release]
-[NSIndexSet dealloc]
-[NSArrayDetailBinder _refreshDetailContentInBackground:]
-[NSArrayDetailBinder valueForBinding:resolveMarkersToPlaceholders:]
-[NSArrayDetailBinder _bindingInfoForBinding:]
-[NSArrayDetailBinder _bindingInfoIndexForBinding:]
-[NSCFArray count]
-[NSCFArray objectAtIndex:]
-[_NSBindingInfo binding]
-[NSCFArray objectAtIndex:]
-[_NSBindingInfo binding]
-[NSCFString isEqual:]
-[NSCFString isKindOfClass:]
-[NSCFArray objectAtIndex:]
-[_NSBindingInfo key]
-[_NSBindingInfo controller]
-[_NSBindingInfo raisesForNotApplicableKeys]
-[NSArrayDetailBinder
_valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:]
-[NSKVONotifying_ServerList valueForKeyPath:]
-[NSCFString length]
-[NSCFString length]
-[NSCFString length]
-[NSKVONotifying_ServerList valueForKey:]
-[NSCFString hash]
-[NSArrayDetailBinder
_applyValueTransformerToValue:forBindingInfo:reverse:]
-[_NSBindingInfo valueTransformer]
+[NSArray self]
+[NSSet self]
Cannot access memory at address 0x6e696c10
Program received signal: "EXC_BAD_ACCESS".
I found a message with a similar problem in the list archives from
2004, but it received no replies. Can anybody help me shed some light
on this crash?
Camillo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden