You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NetBeans IDE processes do not terminate, and cannot be cancelled. #5634
I also notice that for "Refreshing status" and "Background scanning". Funny is that it finishes when we kill the IDE, but not the normal cancel process.
Michael,
There is no exception. The processes just keep adding up as they are run, and when the attempt is made to select and cancel them, nothing happens when clicking on the x (the entry does not go away, and the process is still there).
The only way to terminate those processes is to exit NetBeans, then answer the question (twice) of do you want to terminate these processes.
Regards, Bruce
Michael,
That red error notification is the one from the other report submitted (the one with the “unexpected error”) for which I forwarded the log file.
Clearing that notification has no effect on the “processes-still-running” issue.
Regards, Bruce
BTW, do you have idea of when the copy-and-paste issue will be fixed. I teach and am forever attempting to copy snippets from code to emails and other documentation, or the other round, or trying to copy-and-paste class files from one project to another (the workaround for this last one is to use “Copy” in “Refactor”). Copy-and-paste of code within NetBeans is OK.
i see, thanks, so you say stopping your program via the stop button on the output window does also not work?
off topic: regarding copy and paste
regarding the copy and paste issue:
we don't have enough contributors who use windows, I don't even have windows installed anywhere right now. This issue is also not always reproducible - so I can't really say when someone will start another attempt to fix it.
you could try setting: -J-Dorg.netbeans.NbClipboard.level=FINEST
or -J-Dnetbeans.slow.system.clipboard.hack=false
or -J-DTopSecurityManager.disable=true
to your netbeans.conf and check if it has any effect.
@BruceKHaddon I cannot replicate with either the ASF or Codelerity (community) installer using the default Ant project on Windows 11. That's why the logs or actual project might be useful. You can attach files to issues and comments in the GitHub UI. You can't do it via email, and please don't reply to issues via email as it spams comments with a lot of useless text.
Can you also see if the community installer works for you. That bundles a local JDK for the IDE, and I'm curious whether that also replicates what you're seeing on your system.
I'm not sure if this is the same as the original report, as it's very RCP specific.
I didn't have JavaFx support enabled in Tools / Plugins. I enabled it but still the same issue. I am using openJDK 17.0.7 with JavaFx included. There is no html4j dependency on my platform application.
The issue is still existing
@neilcsmith-net Executing a dep tree with maven or looking under "Dependencies" drop-down list on Netbeans doesn't show any html4j dependency so I don't know where to exclude it since it's not there in the first place.
Here are the files that I tried to send by email (cannot use email in the 21st century?)
The zip file is a Netbeans export file with just a "Hello, World" program. On my machine, it
has the same behavior as all other projects (processes not terminating completely).
@BruceKHaddon looking at the log I suspect this might be related to #5633 given the stack trace of that error in your log. There are lots of other messages around the classpath that seem suspect too. Have you tried the suggestion from that issue and deleted the userdir and cachedir (or renamed if you want to backup the configuration)?
Michael,
Thank you for finding (and fixing) this problem (I have been restarting NetBeans
4 or 5 times a day to clean up non-terminating processes).
Have you any idea which release will have this bug-fix included?
Regards Bruce
the change does not fix the root of the issue since it is not known how the config files are getting corrupted on windows. It adds defensive measures to prevent the import of corrupted files into the next NB version and handles property files with invalid keys a bit better in some cases.
But to answer the question: the change should be in NB 19
You could reset the netbeans config which should fix this issue too.
Activity
mbien commentedon Mar 8, 2023
what is the exception?
Chris2011 commentedon Mar 8, 2023
I also notice that for "Refreshing status" and "Background scanning". Funny is that it finishes when we kill the IDE, but not the normal cancel process.
BruceKHaddon commentedon Mar 8, 2023
mbien commentedon Mar 8, 2023
I mainly asked since I see a red error notification on the screenshot you posted.
What happens if you kill your program by pressing the stop button in the output window?
BruceKHaddon commentedon Mar 8, 2023
mbien commentedon Mar 8, 2023
i see, thanks, so you say stopping your program via the stop button on the output window does also not work?
off topic: regarding copy and paste
regarding the copy and paste issue: we don't have enough contributors who use windows, I don't even have windows installed anywhere right now. This issue is also not always reproducible - so I can't really say when someone will start another attempt to fix it.
but going through old mails, e.g https://lists.apache.org/thread/0r9qm9rkmvl6nxs5zcyr4145xrfwbbq3
you could try setting:
-J-Dorg.netbeans.NbClipboard.level=FINESTor
-J-Dnetbeans.slow.system.clipboard.hack=falseor
-J-DTopSecurityManager.disable=trueto your netbeans.conf and check if it has any effect.
lkishalmi commentedon Mar 9, 2023
BruceKHaddon commentedon Mar 9, 2023
mbien commentedon Mar 9, 2023
lkishalmi commentedon Mar 10, 2023
BruceKHaddon commentedon Mar 10, 2023
neilcsmith-net commentedon Mar 13, 2023
16 remaining items
mbien commentedon Jun 13, 2023
thanks. just repeated the same test above in an ant project and it did work too. Is this a windows specific issue?
I also tried to stop it in a debugging session while it is on a break point, that worked too.
mbien commentedon Jun 13, 2023
@BruceKHaddon this is not a mailing list, it is an issue tracker, we won't see any files.
BruceKHaddon commentedon Jun 14, 2023
neilcsmith-net commentedon Jun 14, 2023
@BruceKHaddon I cannot replicate with either the ASF or Codelerity (community) installer using the default Ant project on Windows 11. That's why the logs or actual project might be useful. You can attach files to issues and comments in the GitHub UI. You can't do it via email, and please don't reply to issues via email as it spams comments with a lot of useless text.
Can you also see if the community installer works for you. That bundles a local JDK for the IDE, and I'm curious whether that also replicates what you're seeing on your system.
ibrayock commentedon Jun 14, 2023
I didn't have JavaFx support enabled in Tools / Plugins. I enabled it but still the same issue. I am using openJDK 17.0.7 with JavaFx included. There is no html4j dependency on my platform application.
The issue is still existing
Thanks
neilcsmith-net commentedon Jun 14, 2023
@ibrayock have you specifically excluded html4j from the platform as covered in that thread?
ibrayock commentedon Jun 14, 2023
@neilcsmith-net Executing a dep tree with maven or looking under "Dependencies" drop-down list on Netbeans doesn't show any html4j dependency so I don't know where to exclude it since it's not there in the first place.
BruceKHaddon commentedon Jun 14, 2023
1060_01_ZAHelloWorld.zip
messages.log
messages.1.log
messages.2.log
Here are the files that I tried to send by email (cannot use email in the 21st century?)
The zip file is a Netbeans export file with just a "Hello, World" program. On my machine, it
has the same behavior as all other projects (processes not terminating completely).
neilcsmith-net commentedon Jun 15, 2023
@BruceKHaddon looking at the log I suspect this might be related to #5633 given the stack trace of that error in your log. There are lots of other messages around the classpath that seem suspect too. Have you tried the suggestion from that issue and deleted the userdir and cachedir (or renamed if you want to backup the configuration)?
neilcsmith-net commentedon Jun 15, 2023
@BruceKHaddon you could also take a look at #6076 (comment) and whether following that process fixes things for you.
BruceKHaddon commentedon Jul 4, 2023
mbien commentedon Jul 4, 2023
the change does not fix the root of the issue since it is not known how the config files are getting corrupted on windows. It adds defensive measures to prevent the import of corrupted files into the next NB version and handles property files with invalid keys a bit better in some cases.
But to answer the question: the change should be in NB 19
You could reset the netbeans config which should fix this issue too.