Bug 16757 - ASSERTION FAILED: maxWidth >= 0
Summary: ASSERTION FAILED: maxWidth >= 0
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://www.kxan.com/Global/story.asp?...
Keywords: NeedsReduction, PlatformOnly
Depends on:
Blocks:
 
Reported: 2008-01-05 15:05 PST by Matt Lilek
Modified: 2008-01-05 15:30 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Lilek 2008-01-05 15:05:36 PST
Go to <http://www.kxan.com/Global/story.asp?S=7566757&nav=0s3dR2zM> and click the link under "More Inside" on the left side of the page.  It will attempt to open a new window but hit the following assertion failure in a debug build.  Doesn't seem to do anything bad in a release build or on OS X in either configuration.

ASSERTION FAILED: maxWidth >= 0
..\platform\graphics\StringTruncator.cpp(108) : WebCore::truncateString

>	WebKit.dll!WebCore::truncateString(const WebCore::String & string={...}, float maxWidth=-8.0000000, const WebCore::Font & font={...}, unsigned int (const WebCore::String &, unsigned int, unsigned int, wchar_t *)* truncateToBuffer=0x00a66bb0, bool disableRoundingHacks=false)  Line 108 + 0x29 bytes	C++
 	WebKit.dll!WebCore::StringTruncator::centerTruncate(const WebCore::String & string={...}, float maxWidth=-8.0000000, const WebCore::Font & font={...}, bool disableRoundingHacks=false)  Line 186 + 0x21 bytes	C++
 	WebKit.dll!CenterTruncateStringToWidth(const wchar_t * text=0x001c9200, int length=6, const WebFontDescription & description={...}, float width=-8.0000000, wchar_t * buffer=0x0019f490)  Line 126 + 0x34 bytes	C++
 	Safari.exe!004600d5()