• 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
Weird Core Data and Cocoa Bindings related crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird Core Data and Cocoa Bindings related crash


  • Subject: Weird Core Data and Cocoa Bindings related crash
  • From: "R. Tyler Ballance" <email@hidden>
  • Date: Sun, 25 Jun 2006 08:25:07 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm getting a weird core data and cocoa bindings related crash that seems to stem purely from cocoa bindings itself. Here's a bit of the stack trace:
- ------------------------------------------------------
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000


Thread 0 Crashed:
0 com.apple.CoreFoundation 0x908074cd CFRetain + 56
1 com.apple.Foundation 0x927cd6d1 _NSKeyValueObservationInfoCreateByRemoving + 444
2 com.apple.Foundation 0x927cd4bc -[NSObject (NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 56
3 com.apple.Foundation 0x927cd434 -[NSObject (NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 554
4 com.apple.AppKit 0x93948876 -[_NSArrayControllerTreeNode _clearObserving] + 81
5 com.apple.AppKit 0x93948b1e -[_NSArrayControllerTreeNode setObservedObject:] + 50
6 com.apple.AppKit 0x9394a9f4 -[NSTreeController _prepareArrayControllerTree] + 632
7 com.apple.AppKit 0x9394e1f7 -[NSTreeController setContent:] + 478
8 com.apple.AppKit 0x938fc8b8 -[_NSManagedProxy _managedObjectsChangedInContext:] + 1368
9 com.apple.Foundation 0x9272104f _nsnote_callback + 230
10 com.apple.CoreFoundation 0x9084c649 __CFXNotificationPost + 345
11 com.apple.CoreFoundation 0x90843e80 _CFXNotificationPostNotification + 600
12 com.apple.Foundation 0x927196b4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 121
13 com.apple.CoreData 0x93dd0deb -[NSManagedObjectContext (_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:] + 82
14 com.apple.CoreData 0x93dd0d6a -[NSManagedObjectContext (_NSInternalChangeProcessing) _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes :] + 366
15 com.apple.CoreData 0x93dd011d -[NSManagedObjectContext (_NSInternalChangeProcessing) _processRecentChanges:] + 1054
16 com.apple.CoreData 0x93dcfced -[NSManagedObjectContext processPendingChanges] + 41
17 com.apple.CoreData 0x93de7a24 -[NSManagedObjectContext (_NSInternalNotificationHandling) _processEndOfEventNotification:] + 144
18 com.apple.Foundation 0x9272104f _nsnote_callback + 230
19 com.apple.CoreFoundation 0x9084c649 __CFXNotificationPost + 345
20 com.apple.CoreFoundation 0x90843e80 _CFXNotificationPostNotification + 600
21 com.apple.Foundation 0x927196b4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 121
22 com.apple.Foundation 0x9272059d -[NSNotificationCenter postNotificationName:object:] + 55
23 com.apple.Foundation 0x927835cd -[NSUndoManager (NSUndoManagerPrivate) _postCheckpointNotification] + 85
24 com.apple.Foundation 0x92783496 -[NSUndoManager endUndoGrouping] + 69
25 com.apple.Foundation 0x927833fd -[NSSet makeObjectsPerformSelector:withObject:] + 171
26 com.apple.Foundation 0x9273c0f5 +[NSUndoManager (NSUndoManagerPrivate) _endTopLevelGroupings] + 109
27 com.apple.AppKit 0x9339d11e -[NSApplication run] + 571
28 com.apple.AppKit 0x93391037 NSApplicationMain + 573
29 com.bleepsoft.BuildFactory 0x0000304a _start + 228 (crt.c:272)
30 com.bleepsoft.BuildFactory 0x00002f65 start + 41
- ------------------------------------------------------


I found a similar problem that this fellow is having: http:// www.cocoabuilder.com/archive/message/cocoa/2006/6/22/166084
As well as this fellow: http://domainofthebored.blogspot.com/2006/01/ have-you-seen-this-crash.html


But in my case, there is no code that seems to be executed. It happens when you edit a check box that is bound to a boolean attribute in a Core Data entity, and then click a toolbar item. I've set break points precisely at where the toolbar's action is being called and the crash occurs before it hits this break point.

I'm really lost here, I've tried setting break points sporadically through out my code, and none of my code is being executed before the interface throws the EXC_BAD_ACCESS exception and crashes the application.

For what it's worth, most of the user interface is bound with Cocoa bindings through an NSTreeController and NSArrayController (that both are bound to the same root entity)


Cheers,

- -R. Tyler Ballance
Lead Developer, bleep. LLC
http://www.bleepsoft.com



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFEno61qO6nEJfroRsRAv4qAKCCBnzjxYN0k5ObgYB+jMYJrHGLNACeP8Fb
dJ0tsyUwA0BGf5pQX4re79o=
=yPqt
-----END PGP SIGNATURE-----
_______________________________________________
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


  • Prev by Date: space bar keyboard short cut
  • Next by Date: How to update toolbar item text label?
  • Previous by thread: Re: space bar keyboard short cut
  • Next by thread: How to update toolbar item text label?
  • Index(es):
    • Date
    • Thread