-
Notifications
You must be signed in to change notification settings - Fork 874
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
Attempting to Add a Dependency Locks up NetBeans #7588
Comments
I have confirmed this problem also exists if you try to edit the pom.xml manually:
At this point, NetBeans is completely frozen. |
can you post your messages.log from next time when this happens. instead of killing the process, can you create a thread dump and attach it? Using VisualVM is probably the easiest way to do that on windows. |
There is nothing in the messages log when it happens, but here is the thread dump from VisualVM:
|
Actually, I take that back. After being frozen for a couple of minutes, The Add Dependency dialog automatically closed and a bunch of new stuff did get dumped into the messages log. Unfortunately, the log entries are not timestamped so I can't correlate them with when it froze up or when it finally unfroze and closed the Add Dependency dialog.
|
Java's event dispatch thread was still in "runnable" state when you took the thread dump:
the warning in the log however clearly says that EDT was blocked for a long time:
So this doesn't look like the blocked UI is due to a locking issue. Was a core pinned to 100% when this happened? You also mentioned that it was frozen "for a couple of minutes", does this mean that it worked after that again, or did you kill the process after that time? |
Sorry for the delayed response. Sometimes I killed it. Other times the dialog box simply disappeared after a few minutes without actually adding the dependency. The CPU was not pegged at 100%. It was around 20% or so. Again, the same problem occurred when I tried to edit the pom.xml file by hand. |
Apache NetBeans version
Apache NetBeans 22
What happened
Opened a project, right-clicked on Dependencies , then "Add Dependency". It opened the dialog to add a new Maven dependency. Clicked on GroupID and started typing. NetBeans locked up.
This is not consistently reproducible, but attempting to add maven dependencies through this dialog causes NetBeans to lock up more often than it succeeds.
Language / Project Type / NetBeans Component
Java / POM Project
How to reproduce
At this point, it will often lock up and you can do nothing except force kill NetBeans and try again.
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows 10 Professional
JDK
openjdk version 22.0.1 | OpenJDK Runtime Environment (build 22.0.1+8-16) | OpenJDK 64-Bit Server VM (build 22.0.1+8-16, mixed mode, sharing)
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
Problem occurs more than 50% of the time.
Are you willing to submit a pull request?
If it can help? Maybe. But I don't know how to do this.
The text was updated successfully, but these errors were encountered: