Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8273506

java/awt/event/KeyEvent/KeyCharTest/KeyCharTest.html is timing out on macOS 12

    XMLWordPrintable

    Details

      Description

      Historically this closed test has been a bit flaky but it is timing out here on macOS 12 for some reason that needs investigating.

      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

          Activity

            People

            Assignee:
            pbansal Pankaj Bansal
            Reporter:
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: