On Thu, 21 Aug 2025 01:21:56 GMT, Damon Nguyen <dngu...@openjdk.org> wrote:

> Ubuntu machine has multiple failing java awt tests. When looking at the 
> screenshots of the desktop when each test fails, a white square can be seen 
> at the top-left of the desktop.
> 
> <img width="803" height="344" alt="Screenshot 2025-08-20 at 10 06 37 AM" 
> src="https://github.com/user-attachments/assets/52d023f6-18ff-46d4-98c4-e2e332ab6a03";
>  />
> 
> This seems to be similar to the white square that `FrameVisualTest.java` 
> creates so the frame was not disposed of properly during this failure. I have 
> tried re-creating this failure on Ubuntu 22.04, similar to the failure OS 
> that this originally occurred on, to no avail. I ran this test individually, 
> and with all of the listed failing tests back-to-back but all the tests pass 
> as normal. This stabilization fix to the test attempts to prevent this in 
> case it occurs again.

test/jdk/java/awt/Frame/FrameVisualTest.java line 60:

> 58:         robot = new Robot();
> 59:         robot.setAutoDelay(100);
> 60:         try {

I believe setAutoDelay was creating some nuisance in ubuntu22.04 system and we 
removed it to use explicit delay whenever needed. Maybe you can add a 
waitForIdle after createScreenCapture and/or a delay

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26871#discussion_r2289741724

Reply via email to