Intermittent crash that's driving me nuts... any ideas?
Intermittent crash that's driving me nuts... any ideas?
- Subject: Intermittent crash that's driving me nuts... any ideas?
- From: "a.d. jensen" <email@hidden>
- Date: Mon, 18 Dec 2006 21:04:36 -0600
I've a program that is basically a mini browser, with only one
window, with a Webview in it. A week or so ago, we added a second
window to the program, and now, if you have the two windows open,
about 15% of the time, it will crash when you quit. Unfortunately,
it's dying deep in the [NSApplication terminate:] method, so I'm
really not sure what I might be goofing up. It's always on a
"undoManager" line, but I don't do anything with undoManager, and
even tried setting it to nil with the [NSDocument setUndoManager:]
without making a difference.
I thought I'd post the stack crawl in case anyone else recognizes
something obvious I'm missing. The only piece of my code in there is
"[myDocument dropOut:] which simply calls [NSApplication terminate:]
Thanks for any ideas!
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x65010000
Thread 0 Crashed:
0 libobjc.A.dylib 0x90a53398 objc_msgSend + 40
1 com.apple.AppKit 0x932e238a -[NSWindow undoManager] + 41
2 com.apple.WebKit 0x95165da1 -[WebView(WebViewEditing)
undoManager] + 93
3 com.apple.AppKit 0x932e221a -[NSTextView undoManager] + 204
4 com.apple.WebCore 0x9540b64f -[KWQTextArea
viewWillMoveToWindow:] + 61
5 com.apple.AppKit 0x932837ef -[NSView _setWindow:] + 70
6 com.apple.AppKit 0x932a63a2 -[NSScrollView _setWindow:]
+ 134
7 com.apple.AppKit 0x93289da8 __NSViewRecursionHelper + 40
8 com.apple.CoreFoundation 0x90839f26 CFArrayApplyFunction + 307
9 com.apple.AppKit 0x93283b2b -[NSView _setWindow:] + 898
10 com.apple.AppKit 0x93289da8 __NSViewRecursionHelper + 40
11 com.apple.CoreFoundation 0x90839f26 CFArrayApplyFunction + 307
12 com.apple.AppKit 0x93283b2b -[NSView _setWindow:] + 898
13 com.apple.AppKit 0x93289da8 __NSViewRecursionHelper + 40
14 com.apple.CoreFoundation 0x90839f26 CFArrayApplyFunction + 307
15 com.apple.AppKit 0x93283b2b -[NSView _setWindow:] + 898
16 com.apple.AppKit 0x932a63a2 -[NSScrollView _setWindow:]
+ 134
17 com.apple.AppKit 0x93289da8 __NSViewRecursionHelper + 40
18 com.apple.CoreFoundation 0x90839f26 CFArrayApplyFunction + 307
19 com.apple.AppKit 0x93283b2b -[NSView _setWindow:] + 898
20 com.apple.AppKit 0x93289da8 __NSViewRecursionHelper + 40
21 com.apple.CoreFoundation 0x90839f26 CFArrayApplyFunction + 307
22 com.apple.AppKit 0x93283b2b -[NSView _setWindow:] + 898
23 com.apple.AppKit 0x93289da8 __NSViewRecursionHelper + 40
24 com.apple.CoreFoundation 0x90839f26 CFArrayApplyFunction + 307
25 com.apple.AppKit 0x93283b2b -[NSView _setWindow:] + 898
26 com.apple.AppKit 0x93289da8 __NSViewRecursionHelper + 40
27 com.apple.CoreFoundation 0x90839f26 CFArrayApplyFunction + 307
28 com.apple.AppKit 0x93283b2b -[NSView _setWindow:] + 898
29 com.apple.AppKit 0x933100d7 -[NSWindow dealloc] + 531
30 com.apple.CoreFoundation 0x90809437 CFRelease + 130
31 com.apple.CoreFoundation 0x9080ccda __CFArrayReleaseValues + 451
32 com.apple.CoreFoundation 0x9080950c _CFRelease + 188
33 com.apple.Foundation 0x925d9a0f NSPopAutoreleasePool + 530
34 com.apple.Foundation 0x925f88a2 +[NSAutoreleasePool
releaseAllPools] + 57
35 com.apple.AppKit 0x933f67eb -[NSApplication
_deallocHardCore:] + 305
36 com.apple.AppKit 0x933f62a5 -[NSApplication terminate:]
+ 629
37 com.ntractive.elements 0x00004507 -[MyDocument dropOut:] + 38
38 com.apple.Foundation 0x9263c36a __NSFireTimer + 199
39 com.apple.CoreFoundation 0x90828bc9 CFRunLoopRunSpecific + 3341
40 com.apple.CoreFoundation 0x90827eb5 CFRunLoopRunInMode + 61
41 com.apple.HIToolbox 0x92dcdb90 RunCurrentEventLoopInMode + 285
42 com.apple.HIToolbox 0x92dcd297 ReceiveNextEventCommon + 385
43 com.apple.HIToolbox 0x92dcd0ee
BlockUntilNextEventMatchingListInMode + 81
44 com.apple.AppKit 0x9326f465 _DPSNextEvent + 572
45 com.apple.AppKit 0x9326f056 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 137
46 com.apple.AppKit 0x93268ddb -[NSApplication run] + 512
47 com.apple.AppKit 0x9325cd2f NSApplicationMain + 573
48 com.ntractive.elements 0x000046d8 main + 24
49 com.ntractive.elements 0x00002e1a _start + 228 (crt.c:272)
50 com.ntractive.elements 0x00002d35 start + 41
dale
--
email@hidden http://homepage.mac.com/adjensen/
Only a fool turns away from an angel,
Vision in white steps through the door,
Holds out her hand, I say 'No I'm not ready'
I open my eyes and let the dream fade away.
-- echolyn, "on any given nite"
_______________________________________________
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