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

Expanding project tree item in Project Explorer with Option-Key pressed hangs Eclipse IDE in native AppKit code #1120

Open
kohlschuetter opened this issue Mar 16, 2024 · 3 comments
Labels
help wanted Extra attention is needed macOS happens on macOS

Comments

@kohlschuetter
Copy link
Contributor

kohlschuetter commented Mar 16, 2024

Describe the bug
When clicking on a tree item chevron of a project in the "Project Explorer" view in Eclipse.app (Java or Java EE perspective), the application becomes completely unresponsive (hangs indefinitely, can only be quit forcibly). As a consequence, data loss can occur.

A spindump indicates a hang somewhere in AppKit's [NSTextFieldCell cellSizeForBounds:].

To Reproduce
Open Eclipse, Java perspective, with a Maven project that has source folders. Click the project-level chevron to open the project subtree. Close again to hide the project subtree. Now click again, holding down the Option (Alt) key, which is supposed to recursively open all sub-tree items, packages, etc.

Expected behavior
The entire subtree is shown; Eclipse doesn't hang.

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • All OS
    • Windows
    • Linux
    • macOS
  1. Additional OS info (e.g. OS version, Linux Desktop, etc)
    Seen in macOS 12, 13, 14 (can't remember exactly about macOS 11)
    If I remember correctly, this is due to some change in macOS AppKit a few years ago. Probably some previously made assumptions no longer hold true.

  2. JRE/JDK version
    doesn't matter

Version since
Eclipse or SWT version since when the behavior is seen [e.g. 4.23]
seen for a while, still a problem with 4.31.0

Workaround (or) Additional context

Any known workarounds for the problem?

Don't click on the chevron with the Option key down.

See attached sample output
Sample of Eclipse.txt

@iloveeclipse
Copy link
Member

Can you please also create and attach jstack thread dump?

@kohlschuetter
Copy link
Contributor Author

Adding jstack log from vanilla 4.31.0 jstack1.log

@Phillipus
Copy link
Contributor

Same in the Package Explorer. There's a lot of child nodes in the "JRE System Library" and "Plug-in Dependencies" nodes. If you add a filter for "Libraries from External" to hide these ones it's better (although not the solution).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed macOS happens on macOS
Projects
None yet
Development

No branches or pull requests

3 participants