Skip to content
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

Swing application UI freezes at sun.lwawt.macosx.CAccessibility.getChildrenAndRoles #132

Open
privetyaolega opened this issue Jun 9, 2023 · 3 comments

Comments

@privetyaolega
Copy link

In my Swing application, I utilize a JTree component with approximately 120 TreeNodes. Each node has around 100-120 child nodes, spanning up to three hierarchical steps. The issue arises when I expand a TreeNode with a large number of children (more than 50), causing my application to become unresponsive for several minutes.

Upon investigation, I discovered that the code responsible for the slowdown is the calculation in sun.lwawt.macosx.CAccessibility.getChildrenAndRolesRecursive. After a duration of 2-3 minutes, the application becomes responsive again.

I found a similar bug with the same problem in a JetBrainsRuntime project, which was resolved in this commit. As a result, I was able to resolve my issue by using the JDK jbr_jcef-17.0.7-osx-aarch64-b966.2 from JetBrains.

My request is whether Corretto 17 could implement a similar fix as the one implemented in the JetBrains project. I greatly appreciate any assistance provided.

Platform information

MacBook Pro M1, 2020
OS: macOS Monterey Version 12.5
Version Amazon Correto 17.0.5
@earthling-amzn
Copy link
Contributor

Thank you for bringing this to our attention. That's some good sleuthing work to find a fix for your issue. We'll review the patch and keep this ticket updated. It looks like it may be related to: https://bugs.openjdk.org/browse/JDK-8068222 - do you have any voice overs or other accessibility options enabled?

earthling-amzn referenced this issue in JetBrains/JetBrainsRuntime Jun 9, 2023
@earthling-amzn
Copy link
Contributor

I've contacted the patch author about upstreaming.

@privetyaolega
Copy link
Author

Thank you for the prompt assistance.
I have disabled voice overs and other accessibility options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants