RFR: JDK-8357082 : Stabilize and add debug logs to CopyAreaOOB.java

Harshitha Onkar honkar at openjdk.org
Tue May 27 23:53:51 UTC 2025


On Tue, 27 May 2025 23:34:32 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

>> For external use in apps we can recommend it so it will be unified for swing and awt, but for internal use we cannot simply switch to EDT as a cleanup or a bug fix. The code related to awt/2d runs in various threads and must be properly synchronized.
>
> @mrserb 
> 
> I can remove the EDT but I do think retaining them will stabilize this test based on the context of test failure.
> 
> - Test does NOT fail when it is run multiple times on macos-aarch64 but only when entire test suite is run. Can it still be synchronization issue if it is not reproducible when test is run multiple times?   
> 
> - The test repeated fails on macos-aarch64 only when the entire test suite is run so I suspect this could be the effect of couple of Graphics tests that was recently open-sourced and indeed this matches with the timeline that this test started to fail repeatedly on macos-aarch64.
> 
> - I didn't see any recent source code changesets that has direct relation to this test failure. There was one recent change to copyArea and ongoing subsequent change https://github.com/openjdk/jdk/pull/25340 but the test does not hit the code path in Blit.c or MaskBlit.c so that eliminates these changes as the cause.

At the very least test requires to be de-problemlisted to obtain the screenshots at the time of failure to see the state of the Frame.

This test repeatedly fails due to the same error at the same point (at x=267 y=212) which is about mid-way of the frame where the color is expected to be black but the actual is white.


java.lang.RuntimeException: Test failed for background region at x=267 y=212 (expected=ff000000 actual=ffffffff)
at CopyAreaOOB.testRegion(CopyAreaOOB.java:97)
at CopyAreaOOB.paint(CopyAreaOOB.java:77)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25279#discussion_r2110553753


More information about the client-libs-dev mailing list