RFR: 8326027: [TEST_BUG]Comparing buffered images of white background frame fails in Mac

Tejesh R tr at openjdk.org
Wed Oct 23 13:30:11 UTC 2024


On Tue, 22 Oct 2024 21:53:14 GMT, Phil Race <prr at openjdk.org> wrote:

> What makes it intermittent ? Does it fail on a non-retina ? or a retina ? or both ? The test systems should all be set up with sRGB color profile, so that ought not to be the issue. Have you seen it fail locally on a retina laptop screen (with sRGB profile of course) ? Mac these days doesn't always do the simple 2x scale they used to .. my macbook is natively 3072x1920 but 1792 x 1120 is the default virtual size. That's a scale of 1.71 .. I would have to change to 1536x960 to get the 2x scale.
> 
> Still interpolating white and white ought to result in white ... but the hardware could be inaccurate ...
> 
> If you can reproduce it locally check your scale vs the native.
> 
> You could use -Dsun.java2d.uiScale=1 but I suspect that in this case it isn't going to help

I have not seen it fail on local machine, as I have mentioned in JBS the failure occurred on particular host (Which I failed to mention in JBS comment). And also I observed similar issue while working on this bug - [JDK-8338153](https://bugs.openjdk.org/browse/JDK-8338153), hence proposing this fix. Since I'm not able to reproduce the issue either on my local machine or in CI system currently, should I close this bug ?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20760#issuecomment-2432175239


More information about the client-libs-dev mailing list