-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8202667: java/awt/Debug/DumpOnKey/DumpOnKey.java times out on Windows #6194
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
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.
|
👋 Welcome back kizune! A progress list of the required criteria for merging this PR into |
|
@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. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. 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. ➡️ To integrate this PR with the above commit message to the |
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. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
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
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6194/head:pull/6194$ git checkout pull/6194Update a local copy of the PR:
$ git checkout pull/6194$ git pull https://git.openjdk.java.net/jdk pull/6194/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6194View PR using the GUI difftool:
$ git pr show -t 6194Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6194.diff