Unrecognized selector sent to NSMapTable
Unrecognized selector sent to NSMapTable
- Subject: Unrecognized selector sent to NSMapTable
- From: Ivan Sergeyenko <email@hidden>
- Date: Wed, 14 Apr 2010 14:08:25 -0400
Hi,
I keep getting segfaults and "unrecognized selector" exceptions in my
garbage-collected code running on 10.5.8, while the same code works
fine on 10.6.3 (stack traces posed below). It doesn't help that the
crashes/exceptions happen deep in the framework code and I can't find
any documentation on it (NSFireDelayedPerform? NSClassicMap?) Has
anyone seen something like this before?
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xfc7f4e78
0x91877f18 in -[NSArray indexOfObjectIdenticalTo:] ()
(gdb) bt
#0 0x91877f18 in -[NSArray indexOfObjectIdenticalTo:] ()
#1 0x94124c30 in -[NSActionBinder
_performActionWithCommitEditing:didCommit:contextInfo:] ()
#2 0x9438a960 in _NSSendCommitEditingSelector ()
#3 0x9419c7c4 in -[NSController _controllerEditor:didCommit:contextInfo:] ()
#4 0x918889ac in __invoking___ ()
#5 0x91888234 in -[NSInvocation invoke] ()
#6 0x918882dc in -[NSInvocation invokeWithTarget:] ()
#7 0x96b64eb4 in __NSFireDelayedPerform ()
#8 0x9181581c in CFRunLoopRunSpecific ()
#9 0x93845b18 in RunCurrentEventLoopInMode ()
#10 0x9384593c in ReceiveNextEventCommon ()
#11 0x9384577c in BlockUntilNextEventMatchingListInMode ()
#12 0x93de5248 in _DPSNextEvent ()
#13 0x93de4c00 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#14 0x93dde8a0 in -[NSApplication run] ()
#15 0x93daf29c in NSApplicationMain ()
#16 0x000023e4 in start ()
------------------------------------------------------------------------------------------------------------------------------------------------------
*** -[NSClassicMapTable indexOfObjectIdenticalTo:]: unrecognized
selector sent to instance 0x10c6240
Breakpoint 1, 0x936934c0 in objc_exception_throw ()
(gdb) bt
#0 0x936934c0 in objc_exception_throw ()
#1 0x91889eb8 in -[NSObject doesNotRecognizeSelector:] ()
#2 0x918884b4 in ___forwarding___ ()
#3 0x91888748 in __forwarding_prep_0___ ()
#4 0x94124c30 in -[NSActionBinder
_performActionWithCommitEditing:didCommit:contextInfo:] ()
#5 0x9438a960 in _NSSendCommitEditingSelector ()
#6 0x9419c7c4 in -[NSController _controllerEditor:didCommit:contextInfo:] ()
#7 0x918889ac in __invoking___ ()
#8 0x91888234 in -[NSInvocation invoke] ()
#9 0x918882dc in -[NSInvocation invokeWithTarget:] ()
#10 0x96b64eb4 in __NSFireDelayedPerform ()
#11 0x9181581c in CFRunLoopRunSpecific ()
#12 0x93845b18 in RunCurrentEventLoopInMode ()
#13 0x9384593c in ReceiveNextEventCommon ()
#14 0x9384577c in BlockUntilNextEventMatchingListInMode ()
#15 0x93de5248 in _DPSNextEvent ()
#16 0x93de4c00 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#17 0x93dde8a0 in -[NSApplication run] ()
#18 0x93daf29c in NSApplicationMain ()
#19 0x000023e4 in start ()
Thanks,
Ivan
_______________________________________________
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