[Webkit-unassigned] [Bug 8677] New: wkSetUpFontCache() may be called before the SPIs are connected.
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Mon May 1 00:13:19 PDT 2006
http://bugzilla.opendarwin.org/show_bug.cgi?id=8677
Summary: wkSetUpFontCache() may be called before the SPIs are
connected.
Product: WebKit
Version: 420+ (nightly)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at opendarwin.org
ReportedBy: webkit-bugs at gentlyusedunderwear.com
If a menu (such as the bookmarks menu) is opened before a WebViewFrame is
created, then wkSetUpFontCache will be a NULL pointer. As the menu rendering
calls +[WebStringTruncator centerTruncateString:toWidth:] which then calls
+[WebTextRendererFactory sharedFactory] the wkSetUpFontCache pointer won't have
a chance to be "connected" and thus will cause a crash.
Thread 0 Crashed:
0 <<00000000>> 0x00000000 0 + 0
1 com.apple.WebCore 0x01b19068 +[WebTextRendererFactory
sharedFactory] + 124 (WebTextRendererFactory.mm:236)
2 com.apple.WebCore 0x01b0f404 truncateString(NSString*,
float, NSFont*, unsigned (*)(NSString*, unsigned, unsigned, unsigned short*)) +
520 (WebCoreStringTruncator.mm:119)
3 com.apple.WebCore 0x01b0fa34 +[WebCoreStringTruncator
centerTruncateString:toWidth:] + 72 (WebCoreStringTruncator.mm:207)
4 com.apple.WebKit 0x00319448 +[WebStringTruncator
centerTruncateString:toWidth:] + 92 (WebStringTruncator.m:37)
5 com.apple.Safari 0x00012948 0x1000 + 72008
6 com.apple.Safari 0x00049344 0x1000 + 295748
7 com.apple.Safari 0x00049fd0 0x1000 + 298960
8 com.apple.Safari 0x00049448 0x1000 + 296008
9 com.apple.Safari 0x00049fd0 0x1000 + 298960
10 com.apple.Safari 0x00049f18 0x1000 + 298776
11 com.apple.Safari 0x00049d5c 0x1000 + 298332
12 com.apple.Safari 0x00049c44 0x1000 + 298052
13 com.apple.AppKit 0x93818dac -[NSMenu _populate:] + 120
14 com.apple.AppKit 0x93818990 AppKitMenuEventHandler + 512
--
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list