nogpu reftests seem to have a lot of failures when running on the latest windows major update (24H2)
Categories
(Core :: Graphics, defect)
Tracking
()
People
(Reporter: jmaher, Unassigned, NeedInfo)
References
(Blocks 1 open bug)
Details
Attachments
(2 obsolete files)
currently our unittests run on windows11 22H2 and we are looking to upgrade to 24H2 (2 years difference - we have done a lot of small updates like patch tuesday stuff in between).
I did a try push on the new system and you can see a lot of failed jobs for the nogpu.
As this seems to be isolated to the no gpu test variant, I wanted to reach out as there might be a bug in firefox or something specific with the OS config that we should be doing.
If needed I can make a lot of changes to reftest.list files.
Comment 1•1 year ago
|
||
I looked at a sample of the failures. They all looked reasonable to fuzz. What is surprising though is that we have very few nogpu annotations currently, so this many new annotations is surprising. I will look a little more.
| Reporter | ||
Comment 2•1 year ago
|
||
thanks! It seems odd there is so much, I suspect something off with the config.
In addition web-platform-test reftest on 32 bit builds seem to have a ton of reftest failures:
https://treeherder.mozilla.org/jobs?repo=try&tier=1%2C2%2C3&searchStr=test-windows11-32%2Cweb-platform%2Creftest&revision=ba82a811062dda58034b02465644e386f11d4e41
might be related?!? the 64 bit builds have 1 failure, so again I suspect something off with the config- why did this work before the 24h2 update (our current CI)
Comment 3•1 year ago
|
||
Hmm, I looked at the /css/CSS2/normal-flow/min-height-106.xht failure in Wr2, it looked like greyscale AA vs cleartype AA difference on fonts. Maybe Jonathan has some thoughts on that.
Comment 4•1 year ago
|
||
There is more than just font AA going on here though, plenty of other fuzz issues in non-fonts.
Comment 5•1 year ago
|
||
(In reply to Timothy Nikkel (:tnikkel) from comment #3)
Hmm, I looked at the /css/CSS2/normal-flow/min-height-106.xht failure in Wr2, it looked like greyscale AA vs cleartype AA difference on fonts.
RIght, it seems that the "test" image just has grayscale AA on the descriptive text, while the "reference" image has cleartype. Checking in the metadata directory, though, I notice that we already have a relevant annotation for that test:
[min-height-106.xht]
fuzzy:
if os == "win": maxDifference=92;totalPixels=5487
which almost matches the fuzz of the new failure (93, 5499). So what's happening here is not really a significant behavior change, just a slight (imperceptible) change to the details of antialiasing. This can safely be ignored, I think.
(In reply to Timothy Nikkel (:tnikkel) from comment #4)
There is more than just font AA going on here though, plenty of other fuzz issues in non-fonts.
Agreed. An interesting example is /svg/shapes/reftests/pathlength-003.svg. Highlighting the differences in the reftest analyzer, what I notice is that the "bad" area seems to cut horizontally across the circle and the "e" glyph, even though at that point the text is at approx a 45° angle. This shows, I think, that the problem is not at the level of rendering the glyph itself (as it would be if it were a cleartype-AA issue, for example), but rather it's affecting an arbitrary area of the content, independent of the text and graphics rendered within that area.
Checking the coordinates, the "bad" area appears to start at 256px from the top, and extends to 512px; below that, things are OK again. And the badness does not extend as far as the right-hand side of the circle; only the left side is affected. Assuming the "bad" area is 256px wide (as well as tall), that makes sense, because x=256 falls about 2/3 of the way across the circle, below the "a" of the text.
What we have here, then, is one 256x256-pixel "tile" of the SVG image where the test vs reference rendering is slightly different. My first thought was that some kind of rounding error meant that it was composited at a fractional offset from where it should be, but I can't see that there's actually any shift in position. The discrepancy seems to be just a single-unit difference in the exact pixel values within the antialiased edges.
Given how this affects both the text and the stroked circle (only within that single "tile"), my guess is that the discrepancy does not come from the rasterization of the individual glyphs and the stroked path, but arises when the tile as a whole is composited to the final destination. But I don't know much (anything, really!) about all this architecture, so this should be taken as wild speculation rather than an actual diagnosis.
Another odd example is /css/css-contain/content-visibility/content-visibility-033.sub.https.html. Here, the discrepancy in rendering is limited to a single glyph: the initial "T" of the descriptive text. But it's unclear exactly what the problem is. It's not grayscale vs cleartype AA: both test and reference clearly show colored subpixel fringing. It seems more like the compositing discrepancy just described for the SVG example above; but this time it's affecting exactly one glyph, not one tile of the overall rendering. There seems no obvious reason why that single glyph (from the same simple text run as the following text) should be treated differently.
Note that this is not a unique example; the same kind of single-glyph issue appears in /css/css-contain/content-visibility/content-visibility-028.html (again, the initial "T") and in /_mozilla/mathml/menclose/menclose-4.html (the "P" of the word "Pass"). Curious that in each case, it's the very first glyph that is affected, and after that everything's fine. I don't really have any idea what the root cause here might be.
Comment 6•1 year ago
|
||
Looking at another log (this one from x64 R2) at https://treeherder.mozilla.org/jobs?repo=try&searchStr=reftest-nogpu&revision=4f2245b2abb22f7f896b6d6b0c12928dc4616d52&selectedTaskRun=BFG4cllYR9KxMZ1ZBpsMVg.0: I can again see a number of SVG tests where the issues seem to be specific to 256px-sized tiles of the image. E.g. see layout/reftests/svg/paint-order-02.svg, where the mismatch starts at x=256px, just inside the "h" in "there" (notice that its left-hand serifs are unaffected). Similarly see layout/reftests/svg/text-in-link-01.svg, where just the end of the word "green" (beginning part-way through the second "e") is affected. Again this seems to be a tile edge at x=256px.
One more note: In the case of paint-order-02.svg, it looks like the discrepancy is affecting only antialiasing in the horizontal direction (i.e. on the left and right sides of vertical or slanted strokes); the antialiasing of horizontal strokes (i.e. "blurring" in the vertical axis) is unaffected. This suggests to me that perhaps there is some position-related issue involved here after all: although I can't see any "shift" in the glyphs, a tiny floating-point mismatch in coordinates during compositing might account for such a tiny difference in the rendering, and in this case only the x-coordinate is affected (whereas in other examples, it seems to be happening in both the x- and y-axis).
| Reporter | ||
Comment 7•1 year ago
|
||
I am not sure if there is anything specific to change on the OS/config, test scripts, or if we just need to add fuzzing annotations to a lot of tests?
Comment 8•1 year ago
|
||
(In reply to Joel Maher ( :jmaher ) (UTC -8) from comment #7)
I am not sure if there is anything specific to change on the OS/config, test scripts, or if we just need to add fuzzing annotations to a lot of tests?
Before we consider just adding fuzz annotations everywhere, I think we should try to understand why we're seeing this odd behavior described in comments 5 and 6 whereby certain 256-pixel "tiles" of the page seem to be getting rendered/composited with slightly different antialiasing (or with different gamma in effect, or at a fractionally-wrong position, or something...).
If this is inconsistency is purely internal to the Windows graphics stack, maybe there's nothing we can do about it; but if it's related to something (e.g. inconsistent rounding somewhere?) in what we're passing to the system, perhaps it can be resolved on our side and made to behave more consistently.
:tnikkel, do you think you or someone else on the Graphics side of things could look into this further?
Updated•1 year ago
|
| Reporter | ||
Comment 9•1 year ago
|
||
I would like to move forward here and get our tests and/or manifests ready for migration. Is there anything I can do to help here? Any changes to the OS, etc. that could help troubleshoot?
| Reporter | ||
Comment 10•1 year ago
|
||
following up here- I am planning in 2 weeks to start migrating tests to the new OS update. Without any updates here, I will either:
- turn off nogpu variant for win11
- annotate the large volume of tests
option 1 is less work, but I am happy to run scripts and cleanup option 2 as needed.
| Reporter | ||
Comment 11•1 year ago
|
||
Updated•1 year ago
|
| Reporter | ||
Comment 12•1 year ago
|
||
| Reporter | ||
Comment 13•1 year ago
|
||
I attached a patch that would be used to add fuzzy-if to green up this enough to land. It still has some intermittents that could be cleaned up with time by the sheriffs once migrated.
The other solution I could do is to not run reftest-nogpu on windows.
Any other solution would be in the code or setting preference values to fix this.
Updated•1 year ago
|
Description
•