You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Intermittent reftest failure in pixel_snapping_border_a.html #7730
(left:1600, right:1280) means that one image was 1600 pixels wide, while the other was 1280 pixels wide. If both correctly used --device-pixel-ratio 2 as set in the manifest for this test, this means that one was rendered with a viewport of 800px and the other 640px.
Servo's default window size is 800px as set in util::opts::default_ops, but compositor::headless::NullCompositor::create resizes the window to 640px. Perhaps there's a race condition that causes the screenshot to sometimes be taken before this resize and sometimes after.
I have no idea where a height of 863 or 864 is coming from. The default window height is 600px and this test sets a 2× scale factor, which should result in a height of 1200 pixels.
Mac seems to use some kind of heuristic to determine where to place new windows. When running several tests in parallel, they can be opened in a way that they are partially off screen.
Previously this would result in a similar bug - the output image would be the clipped size. I thought this was fixed by using an FBO to render reftest output on mac. But perhaps this has changed, or perhaps it uses the window size to write the FBO image output, or something like that?
Presumably this test triggers the problem just because its window is so big. Perhaps we can give it a custom window size that's smaller, as a workaround.
Yep - I suspect that's why this test is triggering the bug more often, and that would probably work around it. We should fix the underlying problem too though :)
I guess the question is what are the value of window width/height in these instances? I would have thought it would be the requested size rather than clipped to the screen.
What I can recall from setting up the mac builders is that if a window appears partially offscreen, the framebuffer created for the window is clipped to the actual visible area. To address this, we set the screen size large enough that ref tests wouldn't appear offscreen.
Lars has upgraded the mac builders a few times, so vncing into the mac builders and ensuring they have a large resolution is probably a worthwhile sanity check. I think we only do offscreen rendering on linux.
Activity
mbrubeck commentedon Sep 24, 2015
(left:1600, right:1280)means that one image was 1600 pixels wide, while the other was 1280 pixels wide. If both correctly used--device-pixel-ratio 2as set in the manifest for this test, this means that one was rendered with a viewport of 800px and the other 640px.Servo's default window size is 800px as set in util::opts::default_ops, but compositor::headless::NullCompositor::create resizes the window to 640px. Perhaps there's a race condition that causes the screenshot to sometimes be taken before this resize and sometimes after.
Use same default window size in headless compositor
Auto merge of #7805 - mbrubeck:headless-dpr, r=mrobinson
Start the constellation with the correct pixel ratio
Auto merge of #7808 - mbrubeck:headless-dpr, r=mrobinson
Auto merge of #7808 - mbrubeck:headless-dpr, r=mrobinson
jdm commentedon Oct 4, 2015
Now we get:
So the heights differ by one pixel now??
mbrubeck commentedon Oct 5, 2015
I have no idea where a height of 863 or 864 is coming from. The default window height is 600px and this test sets a 2× scale factor, which should result in a height of 1200 pixels.
Possibly relevant? 864 = 600 × 1.44 exactly.
1 remaining item
glennw commentedon Oct 7, 2015
Mac seems to use some kind of heuristic to determine where to place new windows. When running several tests in parallel, they can be opened in a way that they are partially off screen.
Previously this would result in a similar bug - the output image would be the clipped size. I thought this was fixed by using an FBO to render reftest output on mac. But perhaps this has changed, or perhaps it uses the window size to write the FBO image output, or something like that?
mbrubeck commentedon Oct 7, 2015
Presumably this test triggers the problem just because its window is so big. Perhaps we can give it a custom window size that's smaller, as a workaround.
glennw commentedon Oct 7, 2015
Yep - I suspect that's why this test is triggering the bug more often, and that would probably work around it. We should fix the underlying problem too though :)
jdm commentedon Oct 7, 2015
initialize_pngis given the window width and height and uses them fortex_image_2d.glennw commentedon Oct 7, 2015
I guess the question is what are the value of window width/height in these instances? I would have thought it would be the requested size rather than clipped to the screen.
jdm commentedon Oct 7, 2015
From the builder in a failing instance:
jdm commentedon Oct 7, 2015
In particular, we initialize our
window_sizemember withwindow.framebuffer_size(), and our glutin port has this:metajack commentedon Oct 7, 2015
What I can recall from setting up the mac builders is that if a window appears partially offscreen, the framebuffer created for the window is clipped to the actual visible area. To address this, we set the screen size large enough that ref tests wouldn't appear offscreen.
Lars has upgraded the mac builders a few times, so vncing into the mac builders and ensuring they have a large resolution is probably a worthwhile sanity check. I think we only do offscreen rendering on linux.
Don't check for equal image size and all white pixels for flaky tests.
Workaround for servo#7730.
Auto merge of #7916 - glennw:flaky-mac, r=jdm
Auto merge of #7920 - glennw:flaky-snap, r=mbrubeck
Require the argument to WebSocket#send() (fixes servo#7858).
jdm commentedon Apr 22, 2016
Hasn't been seen in months, not disabled => close.