CoreData - crashes on 10.4.3, okay on 10.4.2
CoreData - crashes on 10.4.3, okay on 10.4.2
- Subject: CoreData - crashes on 10.4.3, okay on 10.4.2
- From: Simon Liu <email@hidden>
- Date: Thu, 22 Dec 2005 00:42:09 +0000
The same application with the same store loads and runs fine on
10.4.2, but crashes on launch on 10.4.3. It seems the problem comes
down to a single binding in my MainMenu.nib file. For an array
controller which automatically prepares content I bind 'contentArray'
to 'email@hiddenity'.
This binding doesn't cause any problems on 10.4.2, but kaputs on
10.4.3. It seems to get caught in a loop or some kind of recursion
and there are hundreds of stack frames. If I remove this binding from
the NIB file, and set it programmatically in -awakeFromNib: the
crashing still occurs.
However, if I set it programatically based on a user action (toggling
an on/off switch) it works fine. Could there be some sort of
contention issue under 10.4.3 where CoreData struggles to handle
multiple fetch requests from controllers?
I've attached some crash log output, to see if it looks familiar to
anybody. Two examples below.
--Simon
#0 0x9073c04c in __CFStringEncodeByteStream ()
#1 0x928c85bc in -[NSString(NSStringOtherEncodings)
getBytes:maxLength:filledLength:encoding:allowLossyConversion:range:remainingRange:]
()
#2 0x928de1b4 in -[NSString(NSStringOtherEncodings)
getCString:maxLength:range:remainingRange:] ()
#3 0x928de118 in -[NSString(NSStringOtherEncodings) getCString:] ()
#4 0x9298ef90 in -[NSArray(NSKeyValueCoding) valueForKeyPath:] ()
#5 0x928eb360 in -[NSObject(NSKeyValueCoding) valueForKeyPath:] ()
#6 0x938abbd8 in -[NSBinder
_valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:] ()
#7 0x938ab874 in -[NSBinder valueForBinding:resolveMarkersToPlaceholders:] ()
#8 0x938d25d8 in -[NSArrayDetailBinder _refreshDetailContentInBackground:] ()
#9 0x92962144 in -[NSObject(NSKeyValueObservingPrivate)
_notifyObserversForKeyPath:change:] ()
#10 0x938d3bec in -[NSController _notifyObserversForKeyPath:change:] ()
...
0 libSystem.B.dylib 0x90010154 __sfvwrite + 20
1 libSystem.B.dylib 0x900140e8 __vfprintf + 15016
2 libSystem.B.dylib 0x90029b38 snprintf + 280
3 com.apple.Foundation 0x929381b0 NSKeyValueMethodForPattern + 108
4 com.apple.Foundation 0x9298efac -[NSArray(NSKeyValueCoding)
valueForKeyPath:] + 308
5 com.apple.Foundation 0x928eb360 -[NSObject(NSKeyValueCoding)
valueForKeyPath:] + 168
6 com.apple.AppKit 0x938abbd8 -[NSBinder
_valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:] + 692
7 com.apple.AppKit 0x938ab874 -[NSBinder
valueForBinding:resolveMarkersToPlaceholders:] + 144
8 com.apple.AppKit 0x938d25d8 -[NSArrayDetailBinder
_refreshDetailContentInBackground:] + 444
9 com.apple.Foundation 0x92962144
-[NSObject(NSKeyValueObservingPrivate)
_notifyObserversForKeyPath:change:] + 892
10 com.apple.AppKit 0x938d3bec -[NSController
_notifyObserversForKeyPath:change:] + 236
_______________________________________________
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