• 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: Crash with no code of mine. How to debug? (_NSModelObservingTracker)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash with no code of mine. How to debug? (_NSModelObservingTracker)


  • Subject: Re: Crash with no code of mine. How to debug? (_NSModelObservingTracker)
  • From: Pierre Bernard <email@hidden>
  • Date: Tue, 12 Jun 2007 06:59:42 -0700

Thanks Nelson.

The catch here is that I don't even know which object that code expected to still be retained.

Sometimes. But only sometimes, I prefer Java where I can decompile anything for the purpose of debugging....

Pierre.


On Jun 12, 2007, at 6:53 AM, Nelson Santos wrote:

Hi Pierre,

I get errors like this as well. I've learned that whenever I see
EXC_BAD_ACCESS, I need to focus my efforts on my object inits and releases.
It most likely means that an object has been released yet still being
referenced. Look for missing retains.


I don't know of any better way to pinpoint the problem's specific location
in the program better than that.


Nelson



-----Original Message-----
From: cocoa-dev-bounces+nelsonsantos=email@hidden
[mailto:cocoa-dev-bounces+nelsonsantos=email@hidden] On Behalf Of
Pierre Bernard
Sent: Tuesday, June 12, 2007 9:48 AM
To: Cocoa-Dev (Apple)
Subject: Crash with no code of mine. How to debug?
(_NSModelObservingTracker)


Hi!

I am on occasion getting crash reports like the one below.

What happens is that HoudahGeo was loading images (i.e creating
CoreData objects) on a background thread. Apparently the main thread
decided to redraw the table which binds to an array controller of
said Image objects.

What I don't get is why does it fail? It doesn't fail often. Actually
I have not yet been able to reproduce it.

How can I track down a problem where no line of code of mine is in
the thread's stack trace?

Thanks in advance for your help

Best,
Pierre Bernard


Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000006

Thread 0:
0 libSystem.B.dylib 0x9002c768
semaphore_wait_signal_trap + 8
1 libSystem.B.dylib 0x9003124c pthread_cond_wait + 480
2 com.apple.Foundation 0x92be0bcc -[NSRecursiveLock
lock] + 68
3 com.apple.Foundation 0x92c662e4 -[NSObject
(NSKeyValueObserverRegistration)
addObserver:forKeyPath:options:context:] + 84
4 com.apple.AppKit 0x939f390c -
[_NSModelObservingTracker
_registerOrUnregister:observerNotificationsForModelObject:] + 92
5 com.apple.AppKit 0x939f373c -
[_NSModelObservingTracker startObservingModelObjectAtReferenceIndex:]
+ 160
6 com.apple.AppKit 0x939f3630 -
[_NSModelObservingTracker setObservingToModelObjectsRange:] + 428
7 com.apple.AppKit 0x939f3444 -[_NSBindingAdaptor
tableView:updateVisibleRowInformation:] + 148
8 com.apple.AppKit 0x9384f900 -[NSTableView
drawRect:] + 224
9 com.apple.AppKit 0x937e4858 -[NSView
_drawRect:clip:] + 2128
10 com.apple.AppKit 0x937e3e18 -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 404
11 com.apple.AppKit 0x937e33e0 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisib le
RectForView:topView:] + 196
12 com.apple.AppKit 0x937e39a8 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisib le
RectForView:topView:] + 1676
13 com.apple.AppKit 0x937e39a8 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisib le
RectForView:topView:] + 1676
14 com.apple.AppKit 0x937e39a8 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisib le
RectForView:topView:] + 1676
15 com.apple.AppKit 0x937e39a8 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisib le
RectForView:topView:] + 1676
16 com.apple.AppKit 0x93804044 -[NSThemeFrame
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisib le
RectForView:topView:] + 192
17 com.apple.AppKit 0x937dd054 -[NSView
_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
+ 384
18 com.apple.AppKit 0x937d2348 -[NSView
displayIfNeeded] + 248
19 com.apple.AppKit 0x937d21b8 -[NSWindow
displayIfNeeded] + 180
20 com.apple.AppKit 0x937d2064
_handleWindowNeedsDisplay + 200
21 com.apple.CoreFoundation 0x907de76c __CFRunLoopDoObservers
+ 352
22 com.apple.CoreFoundation 0x907dea0c __CFRunLoopRun + 420
23 com.apple.CoreFoundation 0x907de4ac CFRunLoopRunSpecific +
268
24 com.apple.HIToolbox 0x93298b20
RunCurrentEventLoopInMode + 264
25 com.apple.HIToolbox 0x932981b4 ReceiveNextEventCommon
+ 380
26 com.apple.HIToolbox 0x93298020
BlockUntilNextEventMatchingListInMode + 96
27 com.apple.AppKit 0x9379eae4 _DPSNextEvent + 384
28 com.apple.AppKit 0x9379e7a8 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
29 com.apple.AppKit 0x9379acec -[NSApplication run] +
472
30 com.apple.AppKit 0x9388b87c NSApplicationMain + 452
31 com.houdah.HoudahGeo 0x00002888 0x1000 + 6280
32 com.houdah.HoudahGeo 0x0000258c 0x1000 + 5516



--- Pierre Bernard http://www.bernard-web.com/pierre http://www.houdah.com



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
40mac.com


This email sent to email@hidden


- - - Houdah Software s. à r. l. http://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Powerful Spotlight frontend



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Crash with no code of mine. How to debug? (_NSModelObservingTracker)
      • From: Dorian J <email@hidden>
References: 
 >RE: Crash with no code of mine. How to debug? (_NSModelObservingTracker) (From: "Nelson Santos" <email@hidden>)

  • Prev by Date: RE: Crash with no code of mine. How to debug? (_NSModelObservingTracker)
  • Next by Date: RE: Error and Exception Handling: When to use
  • Previous by thread: RE: Crash with no code of mine. How to debug? (_NSModelObservingTracker)
  • Next by thread: Re: Crash with no code of mine. How to debug? (_NSModelObservingTracker)
  • Index(es):
    • Date
    • Thread