• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data _NSFaultingMutableSet Exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data _NSFaultingMutableSet Exception


  • Subject: Re: Core Data _NSFaultingMutableSet Exception
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Tue, 22 Dec 2009 14:50:21 +0700

On 22 Dec 2009, at 13:38, Graham Cox wrote:

>
> On 22/12/2009, at 4:05 PM, Gerriet M. Denkmann wrote:
>
>> When later I reset the filterPredicates back to the simple (working) mode, I get another exception:
>> HIToolbox: ignoring exception 'Cannot remove an observer <arrayController1> for the key path "theBs.bValue" from <A-entity 0x114f02a10> because it is not registered as an observer.' that raised inside Carbon event dispatch
>>
>> 1. This is a Cocoa document based app, using Core Data. Why this "Carbon event dispatch". And who is HIToolbox?
>
>
> Cocoa sits atop Carbon. So all this means is that an exception didn't get caught until it reached the Carbon layers. I don't think such exceptions were previously logged before 10.6, though they undoubtedly did occur.
>
> You need to concentrate on where the exception came from and stop it from being raised, not where it ended up getting caught.

Sigh - I had hoped that this Carbon-message would indicate the source of the problem - obviously I was wrong.

The backtrace for the first exception '[<_NSFaultingMutableSet 0x10048a950> addObserver:forKeyPath:options:context:] is not supported. Key path: bValue' when setting the predicate 'aValue BEGINSWITH[n] "a" AND ANY theBs.bValue == "xx"' is:

	0   CoreFoundation                      0x00007fff80b73444 __exceptionPreprocess + 180
	1   libobjc.A.dylib                     0x00007fff854630f3 objc_exception_throw + 45
	2   CoreFoundation                      0x00007fff80b73267 +[NSException raise:format:arguments:] + 103
	3   CoreFoundation                      0x00007fff80b731f4 +[NSException raise:format:] + 148
	4   Foundation                          0x00007fff8343480e -[NSSet(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 116
	5   Foundation                          0x00007fff8335b16d -[NSKeyValueNestedProperty object:didAddObservance:recurse:] + 229
	6   Foundation                          0x00007fff83359f3b -[NSObject(NSKeyValueObserverRegistration) _addObserver:forProperty:options:context:] + 511
	7   Foundation                          0x00007fff833588e0 -[NSObject(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 125
	8   AppKit                              0x00007fff8267d92c -[_NSModelObservingTracker _registerOrUnregister:observerNotificationsForKeyPath:] + 273
	9   AppKit                              0x00007fff82b4c269 -[_NSModelObservingTracker registerModelKeyPaths:unregisterModelKeyPaths:] + 421
	10  AppKit                              0x00007fff82715d35 -[NSArrayController _updateAutomaticRearrangementKeysPaths] + 240
	11  AppKit                              0x00007fff8271e5da -[NSArrayController _didChangeArrangementCriteriaWithOperationsMask:useBasis:] + 79
	12  AppKit                              0x00007fff8271e18d -[NSArrayController setFilterPredicate:] + 1344
	13  ไทย Dict Both 3               0x0000000100004d8e -[MyDocument(MyDocumentPrivate) newFilters] + 1473

but there is nothing here what helps me answering why the exception was raised (although it answers where it came from).

Kind regards,

Gerriet.

_______________________________________________

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

References: 
 >Core Data _NSFaultingMutableSet Exception (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Core Data _NSFaultingMutableSet Exception (From: Graham Cox <email@hidden>)

  • Prev by Date: Interfacing cocoa/obj-c within a C plug-in API
  • Next by Date: IOHIDManagerRegisterDeviceMatchingCallback called twice when device pluggedin
  • Previous by thread: Re: Core Data _NSFaultingMutableSet Exception
  • Next by thread: Re: Core Data _NSFaultingMutableSet Exception
  • Index(es):
    • Date
    • Thread