Closed
Bug 551034
Opened 15 years ago
Closed 15 years ago
intermittent Windows reftest failure in 385569-1a.html/385569-1b.html
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: Gavin, Assigned: jfkthame)
References
Details
(Keywords: intermittent-failure)
Attachments
(1 file, 1 obsolete file)
1.57 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1268085619.1268087032.672.gz&fulltext=1#err0
REFTEST TEST-UNEXPECTED-FAIL | file:///e:/builds/moz2_slave/mozilla-central-win32-opt-unittest-reftest/build/reftest/tests/layout/reftests/bugs/385569-1a.html |
REFTEST TEST-UNEXPECTED-FAIL | file:///e:/builds/moz2_slave/mozilla-central-win32-opt-unittest-reftest/build/reftest/tests/layout/reftests/bugs/385569-1b.html |
Looks like a subtle anti-aliasing issue, maybe?
Reporter | ||
Updated•15 years ago
|
Summary: intermittent Windows reftest failure in 385569-1a/385569-1b → intermittent Windows reftest failure in 385569-1a.html/385569-1b.html
Assignee | ||
Comment 1•15 years ago
|
||
(In reply to comment #0)
> Looks like a subtle anti-aliasing issue, maybe?
Yes, it is. A few antialiasing pixels at the top of the curve of the 'f' sometimes get clipped, but it apparently depends on details of timing/repainting. (Perhaps something about the timing of the window refresh in relation to the downloadable font initialization.)
Assignee | ||
Comment 2•15 years ago
|
||
Assignee | ||
Comment 3•15 years ago
|
||
We're seeing occasional failures on tinderbox with this test, but I haven't been able to reproduce them locally. I tried adding padding to the testcases but that did not stop the failures.
To try and stabilize the behavior, this patch adds reftest-wait to the testcases to ensure that the onload scripts have had a chance to run. I don't know if this will necessarily fix the tinderbox failures, but it seems like it can't hurt, anyhow. Are there other tweaks that might also help?
Assignee: nobody → jfkthame
Attachment #431375 -
Flags: review?(roc)
I don't think this patch will change behavior at all. Reftests already wait for 'load' to finish.
Comment 5•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1268151013.1268152605.1805.gz
WINNT 5.2 mozilla-central opt test reftest on 2010/03/09 08:10:13
s: mw32-ix-slave04
Attachment #431375 -
Flags: review?(roc) → review-
Assignee | ||
Comment 6•15 years ago
|
||
Ok, I've been looking at the failures more closely and I think I understand what's happening. The first thing to realize is that on the tinderboxes, the Windows system is running an older Uniscribe that doesn't apply ligatures in Latin script, so this test isn't really working as designed anyhow. (The original bug was reported on Mac OS.)
This also means that in the testcases where the "i" is added dynamically, we don't have to redraw the "f", so the two glyphs get painted separately. And the "f" has 6 antialiasing pixels along the top that fall outside the bounding rect that cairo gets (from GDI) for the glyph. Therefore, these pixels fail to paint; cairo's drawing (when the destination is canvas) is clipped tightly to what it believes to be the glyph's bbox. However, in the reference, we paint the "fi" as a single string, and the "i" is taller; therefore the bbox is higher, and the AA pixels from the "f" don't get clipped.
So this patch aims to resolve this by adding an initial "i" to the text, before the "f". This should get painted along with the "f" in all cases, and should therefore ensure that we get an equally high clipping rect in both the testcases and the reference.
Attachment #431375 -
Attachment is obsolete: true
Attachment #431478 -
Flags: review?(roc)
Attachment #431478 -
Flags: review?(roc) → review+
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1268176281.1268180518.20524.gz&fulltext=1
WINNT 5.2 mozilla-central debug test reftest at 2010/03/09 14:24:00
s: mw32-ix-slave08
Assignee | ||
Comment 8•15 years ago
|
||
Assignee | ||
Comment 9•15 years ago
|
||
Landed http://hg.mozilla.org/mozilla-central/rev/b354554ea352
I believe this should stop the failures; please re-open if it happens again.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Keywords: intermittent-failure
Updated•13 years ago
|
Whiteboard: [orange]
You need to log in
before you can comment on or make changes to this bug.
Description
•