Details
-
Bug
-
Resolution: Fixed
-
P3
-
8, 16, 17, 18
-
b21
-
os_x
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8290151 | 17.0.5-oracle | Suman Rajkumaar Kodandarama | P3 | Resolved | Fixed | b02 |
JDK-8290950 | 17.0.5 | Goetz Lindenmaier | P3 | Resolved | Fixed | b01 |
JDK-8290213 | 11.0.17-oracle | Suman Rajkumaar Kodandarama | P3 | Resolved | Fixed | b03 |
Description
The test runs through sending keypressed and keyreleased events to a window for keycodes 32 to 127.
When it reaches keycode 77, the test slows down so that every event sent causes a 10 seconds delay.
Robot.waitForIdle() now seems to think that it has to wait for what seems like just over 10000 ms between every subsequent keypress/release
Not coincidentally waitForIdle calls Toolkit.realSync(10000) where 10000 come from SunToolkit.DEFAULT_WAIT_TIME.
It isn't clear from what I see on screen what is happening.
It doesn't look like focus is lost and indeed explicitly giving focus to *any* window on the desktop gets things going again.
But without some such kick 20 seconds per iteration will exceed the 240 second time out before the test finishes.
It needs debugging as to
1) What keycode 77 does to provoke this
2) what is Robot doing in those 10 seconds
Attachments
Issue Links
- backported by
-
JDK-8290151 java Robot API did the 'm' keypress and caused /awt/event/KeyEvent/KeyCharTest/KeyCharTest.html is timing out on macOS 12
- Resolved
-
JDK-8290213 java Robot API did the 'm' keypress and caused /awt/event/KeyEvent/KeyCharTest/KeyCharTest.html is timing out on macOS 12
- Resolved
-
JDK-8290950 java Robot API did the 'm' keypress and caused /awt/event/KeyEvent/KeyCharTest/KeyCharTest.html is timing out on macOS 12
- Resolved
- duplicates
-
JDK-8273520 SubMenuShowTest.java times out on macOS 12
- Closed
-
JDK-8276074 Recurrence of JMenu test bug4515762.java fails on macos
- Closed
-
JDK-8283729 [macos12] AWT Robot swallows some keyboard events
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/b6454bcc
-
Commit openjdk/jdk/39e50c2d
-
Review openjdk/jdk17u-dev/580
-
Review openjdk/jdk/8320