New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8202667: java/awt/Debug/DumpOnKey/DumpOnKey.java times out on Windows #6194
Conversation
Remove test from problem list. Double the robot autodelay to 100. Add explicit toFront() and requestFocus() on window. Dispose window on EDT and then wait for 2 seconds before exiting test.
|
@azuev-java The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
From the stack traces in the bug report, it seems that the problem was in some kind of deadlock in the SunToolkit.waitForIdle |
I was not able to reproduce the deadlock scenario - and i ran this test about 3 hours non-stop which resulted in more than 2000 invocations. I had couple of false positives where dump was expected but did not happened due to the mismatch between the windows that receiving key pressed and key released events and that is what i tried to fix to make test more stable. But neither locally nor on remote test machines i was not able to reproduce it exactly the way it reported. Giving the extensive use of Robot.waitForIdle() in other tests without any issue my only approach is to make this test more stable and enable it for execution and then see if it will timeout again. I doubt so. |
When originally reported this test frequently timed out. So if it didn't have the same timeout in 2000 iterations |
@azuev-java This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 109 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.
|
There were some modifications to the problematic methods in SunToolkit including JDK-8196100 which would be the reason this test stopped deadlocking in that particular method. |
/integrate |
Going to push as commit cd778f5.
Your commit was automatically rebased without conflicts. |
@azuev-java Pushed as commit cd778f5. |
Looks like the problem occurs when system is slow to actually close windows,
then keyboard events are going to the wrong window. The idea of the fix is to
bring the new window to front before actual testing starts and close window
on EDT and then wait for 2 seconds for actual hardware window to disappear.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6194/head:pull/6194
$ git checkout pull/6194
Update a local copy of the PR:
$ git checkout pull/6194
$ git pull https://git.openjdk.java.net/jdk pull/6194/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6194
View PR using the GUI difftool:
$ git pr show -t 6194
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6194.diff