Bug 16757
| Summary: | ASSERTION FAILED: maxWidth >= 0 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Matt Lilek <dev+webkit> |
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | ahmad.saleem792, ap, frances_c |
| Priority: | P2 | Keywords: | NeedsReduction, PlatformOnly |
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| URL: | http://www.kxan.com/Global/story.asp?S=7566757&nav=0s3dR2zM | ||
Matt Lilek
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()
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Frances Cornwall
The webpage url no longer exists.
Alexey Proskuryakov
There is a copy saved at https://web.archive.org/web/20080106043906/http://www.kxan.com/Global/story.asp?S=7566757&nav=0s3dR2zM, seems worth checking with a debug build if this reproduces.
Ahmad Saleem
Confirmed using Debug build (278510@main) - it does not assert using Comment 02 URL on WK1 and WK2 (both).