RFR: 8284888 : [macos] javax/swing/JInternalFrame/8146321/JInternalFrameIconTest.java failed with "NimbusLookAndFeel] : ERROR: icon and imageIcon not same."

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Tue Apr 26 03:52:01 UTC 2022


On Mon, 25 Apr 2022 09:37:10 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> Test used to fail in specific CI macos M1 system owing to miniscule color difference 
> 
> 
> x 0 y 0 red1 171 red2 171 green1 174 green2 175 blue1 184 blue2 184
> x 0 y 1 red1 172 red2 173 green1 177 green2 177 blue1 185 blue2 185
> x 0 y 2 red1 173 red2 174 green1 177 green2 178 blue1 187 blue2 187
> x 0 y 6 red1 0 red2 0 green1 1 green2 0 blue1 0 blue2 0
> x 0 y 15 red1 1 red2 0 green1 0 green2 0 blue1 0 blue2 0
> 
> 
> SInce we already have color-tolerance check present, there is no need of exact color value check.
> Also, made the frame undecorated and remove unneeded library being built. 
> Several iterations of the test passed in the same system (where it used to fail 4/10) along with other platforms (link in JBS)

The bug is made public.
The images looks alike visually. I could not find anything wrong with rendering or robot which otherwise could have caused issue in other systems and platforms but it's only failing in this CI system (but color profile setting is ok). As per [JDK-8266247](https://bugs.openjdk.java.net/browse/JDK-8266247) which also happens in same mc, some faulty video memory is doubted.
Also, it's not happening everytime but intermittently so seeing all this, I have just relaxed color check a bit

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

PR: https://git.openjdk.java.net/jdk/pull/8380



More information about the client-libs-dev mailing list