Re: isTemporaryID unrecognized selector - how do I debug this?
Re: isTemporaryID unrecognized selector - how do I debug this?
- Subject: Re: isTemporaryID unrecognized selector - how do I debug this?
- From: Gideon King <email@hidden>
- Date: Sat, 4 Sep 2010 13:30:58 +1000
Thanks Jerry
If I do a PO on the object that it says the message is being sent to, it shows the object that I deleted:
2010-09-04 13:16:35.818 NovaMind5TP[39867:a0f] -[NMTopicMapViewMO isTemporaryID]: unrecognized selector sent to instance 0x1046f51c0
(gdb) po 0x1046f51c0
<NMTopicMapViewMO: 0x1046f51c0> (entity: TopicMapView; id: 0x114cbf6b0 <x-coredata://4020B0CD-0565-4D39-9F84-D55D908FD4A2/TopicMapView/p456DDA50-9E1E-413C-B021-D8A44696B1CA> ; data: {
...
Those look like really useful resources you sent the links to, but I don't completely understand how to make use of them for this purpose, and on I64. Here's the register info:
(gdb) info reg
rax 0x121eb1b00 4864023296
rbx 0x1046f51c0 4369371584
rcx 0x7fffffe00080 140737486258304
rdx 0x1011592f8 4313158392
rsi 0x121eb1b00 4864023296
rdi 0x121eb1b00 4864023296
rbp 0x7fff5fbfcc40 0x7fff5fbfcc40
rsp 0x7fff5fbfcc20 0x7fff5fbfcc20
r8 0x0 0
r9 0x121efc0a4 4864327844
r10 0x7fff8356d690 140735396894352
r11 0x121eb1da0 4864023968
r12 0x121eb13f0 4864021488
r13 0x7fff70514930 140735077763376
r14 0x0 0
r15 0x1046f51c0 4369371584
rip 0x7fff874570da 0x7fff874570da <objc_exception_throw+20>
eflags 0x202 514
cs 0x27 39
ss 0x0 0
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
Then printing each of the registers, the following are the only ones that came up with anything interesting:
(gdb) po $rax
-[NMTopicMapViewMO isTemporaryID]: unrecognized selector sent to instance 0x1046f51c0
(gdb) po $rbx
<NMTopicMapViewMO: 0x1046f51c0> (entity: TopicMapView; id: 0x114cbf6b0 <x-coredata://4020B0CD-0565-4D39-9F84-D55D908FD4A2/TopicMapView/p456DDA50-9E1E-413C-B021-D8A44696B1CA> ; data: {
...
})
(gdb) po $rsi
-[NMTopicMapViewMO isTemporaryID]: unrecognized selector sent to instance 0x1046f51c0
(gdb) po $rdi
-[NMTopicMapViewMO isTemporaryID]: unrecognized selector sent to instance 0x1046f51c0
(gdb) po $r12
-[NMTopicMapViewMO isTemporaryID]
(gdb) po $r13
%@: unrecognized selector sent to instance %p
(gdb) po $r14
0x0 does not appear to point to a valid object.
(gdb) po $r15
<NMTopicMapViewMO: 0x1046f51c0> (entity: TopicMapView; id: 0x114cbf6b0 <x-coredata://4020B0CD-0565-4D39-9F84-D55D908FD4A2/TopicMapView/p456DDA50-9E1E-413C-B021-D8A44696B1CA> ; data: {
...})
Does any of that help?
Regards
Gideon
> ...
> Because it says that it's being sent to some generic NSObject, not your custom object, not even an NSManagedObject.
>
> Click on line #1 in the debugger. Then, print that object in gdb. It is the first parameter (self) to the method. The procedure is explained here:
>
_______________________________________________
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