Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash under WebChromeClient::setStatusbarText(WebCore::String const&)



So far one beta tester of our product hit the following crash (not
sure what exactly they happened to be doing at the time). The crash is
under WebKit and the only place we use WebKit in our product is via a
WebView that we load with a html file that contains only inlined CSS.
We load this html file after the nib containing the WebView is loaded
by controlling class (nib owner). While our product runs we add DOM
nodes using the DOM API and that is about it. At no time do we have
the WebView attempting to load remote resources nor do we have
anything like a status bar.

I am at a loss for an explanation for the following crash. Any ideas?
(except for this one crash we have had no issues)

Snippet of some related code...

    // Load our msg_log HTML into WebView, this file contains the
inline style sheet and no body content
    NSURL* url = [NSURL fileURLWithPath:[[NSBundle mainBundle]
pathForResource:@"msg_log" ofType:@"html"]];
    [[messageOutputWebView mainFrame] loadRequest:[NSURLRequest
requestWithURL:url]];

...

    DOMHTMLDocument* doc = (DOMHTMLDocument*)[[messageOutputWebView
mainFrame] DOMDocument];
    if (doc == nil) {
        return;
    }

    if ([[doc body] hasChildNodes] ) {
        [[doc body] appendChild:[doc createElement:@"br"]];
    }

    DOMHTMLDivElement* entry = (DOMHTMLDivElement*)[doc createElement:@"div"];
    [entry setClassName:[@"msg_entry chat " stringByAppendingString:type]];

    if ([header length] > 0) {
        DOMText* headerText = [doc createTextNode:header];
        DOMElement* headerElement = [doc createElement:@"h1"];
        [headerElement appendChild:headerText];
        [entry appendChild:headerElement];
    }

    if ([message length] > 0) {
        DOMText* messageText = [doc createTextNode:message];
        DOMElement* messageElement = [doc createElement:@"p"];
        [messageElement appendChild:messageText];
        [entry appendChild:messageElement];
    }

    [[doc body] appendChild:entry];

    // Have our WebView scroll the top of the newly added node into
view... (requires JavaScript)
    [[doc body] setValue:[entry valueForKey:@"offsetTop"] forKey:@"scrollTop"];

------

OS Version:      Mac OS X 10.5.2 (9C31)

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000c59c80b3
Crashed Thread:  0

Thread 0 Crashed:
0   libobjc.A.dylib		0x9540f6e8 objc_msgSend + 24
1   com.apple.WebKit		0x965b526a
WebChromeClient::setStatusbarText(WebCore::String const&) + 122
2   com.apple.WebCore		0x95dfbdf0
WebCore::Chrome::setStatusbarText(WebCore::Frame*, WebCore::String
const&) + 128
3   com.apple.WebCore		0x95dfbd4b
WebCore::Frame::setJSStatusBarText(WebCore::String const&) + 75
4   com.apple.WebCore		0x95dfb5e4
WebCore::FrameLoader::didOpenURL(WebCore::KURL const&) + 196
5   com.apple.WebCore		0x95df9311
WebCore::FrameLoader::commitProvisionalLoad(WTF::PassRefPtr<WebCore::CachedPage>)
+ 449
6   com.apple.WebCore		0x95df90f5 WebCore::DocumentLoader::commitIfReady() + 85
7   com.apple.WebCore		0x95e4d093
WebCore::DocumentLoader::commitLoad(char const*, int) + 35
8   com.apple.WebCore		0x95e4cc52
WebCore::ResourceLoader::didReceiveData(char const*, int, long long,
bool) + 82
9   com.apple.WebCore		0x95e4cbc7
WebCore::MainResourceLoader::didReceiveData(char const*, int, long
long, bool) + 71
10  com.apple.WebCore		0x95e4cb78
WebCore::ResourceLoader::didReceiveData(WebCore::ResourceHandle*, char
const*, int, int) + 56
11  com.apple.WebCore		0x95e4cb20 -[WebCoreResourceHandleAsDelegate
connection:didReceiveData:lengthReceived:] + 160
12  com.apple.Foundation	0x947b53b7
-[NSURLConnection(NSURLConnectionReallyInternal)
sendDidReceiveData:originalLength:] + 119
13  com.apple.Foundation	0x947b531e _NSURLConnectionDidReceiveData + 94
14  com.apple.CFNetwork		0x900160af sendDidReceiveDataCallback + 518
15  com.apple.CFNetwork		0x9001376d _CFURLConnectionSendCallbacks + 1559
16  com.apple.CFNetwork		0x900130d9 muxerSourcePerform + 283
17  com.apple.CoreFoundation	0x966ea62e CFRunLoopRunSpecific + 3166
18  com.apple.CoreFoundation	0x966ead18 CFRunLoopRunInMode + 88
19  com.apple.HIToolbox		0x9268d6a0 RunCurrentEventLoopInMode + 283
20  com.apple.HIToolbox		0x9268d4b9 ReceiveNextEventCommon + 374
21  com.apple.HIToolbox		0x9268d32d BlockUntilNextEventMatchingListInMode + 106
22  com.apple.AppKit		0x91d4f7d9 _DPSNextEvent + 657
23  com.apple.AppKit		0x91d4f08e -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
24  com.apple.AppKit		0x91d480c5 -[NSApplication run] + 795
25  com.apple.AppKit		0x91d1530a NSApplicationMain + 574
26  blah  			0x00002872 0x1000 + 6258
27  blah  			0x00002799 0x1000 + 6041

...many other unrelated threads...

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x15061f40  ebx: 0x965b52cd  ecx: 0x954a81c4  edx: 0xc59c8093
  edi: 0x00757880  esi: 0xbfffe3cc  ebp: 0xbfffe368  esp: 0xbfffe2c8
   ss: 0x0000001f  efl: 0x00010202  eip: 0x9540f6e8   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0xc59c80b3

...no obvious haxies...
0x91d0f000 - 0x9250cfef  com.apple.AppKit 6.5.2 (949.26)
<bc4593edd8a224409fb6953a354505a0>
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x9265d000 - 0x92965fff  com.apple.HIToolbox 1.5.2 (???)
<7449d6f2da33ded6936243a92e307459>
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x94746000 - 0x949c0fe7  com.apple.Foundation 6.5.4 (677.15)
<6216196287f98a65ddb654d04d773e7b>
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x96678000 - 0x967aafef  com.apple.CoreFoundation 6.5.1 (476.10)
<d5bed2688a5eea11a6dc3a3c5c17030e>
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x95ddf000 - 0x962f5fff  com.apple.WebCore 5523.15.1 (5523.15.1)
<23d5f6fe4905a5361b31b25bb4de04d6>
/System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore
0x965ac000 - 0x96667fe3  com.apple.WebKit 5523.15.1 (5523.15.1)
<176c97b181ca68b309ecded2ed53b923>
/System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.