WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
16757
ASSERTION FAILED: maxWidth >= 0
https://bugs.webkit.org/show_bug.cgi?id=16757
Summary
ASSERTION FAILED: maxWidth >= 0
Matt Lilek
Reported
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()
Attachments
Add attachment
proposed patch, testcase, etc.
Frances Cornwall
Comment 1
2024-05-07 21:22:07 PDT
The webpage url no longer exists.
Alexey Proskuryakov
Comment 2
2024-05-08 08:58:38 PDT
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
Comment 3
2024-05-08 10:03:23 PDT
Confirmed using Debug build (
278510@main
) - it does not assert using
Comment 02
URL on WK1 and WK2 (both).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug