Skip to content

NetBeans IDE processes do not terminate, and cannot be cancelled. #5634

Closed

Description

@BruceKHaddon

Apache NetBeans version

Apache NetBeans 17

What happened

On any execution of a project (run, debug, javadoc) the process does not end. The only way to end the processes is to close the IDE.
Screenshot 2023-03-08 123855
Screenshot 2023-03-08 123855
Screenshot 2023-03-08 123628

How to reproduce

Compile and run anything.

This problem was not present in NetBeans 15 but was/is present in NetBeans 16 and 17

Did this work correctly in an earlier version?

Apache NetBeans 15

Operating System

Windows 10 Pro, version 21H2, build 19044-2694, Intel i7 x64 16.0 GB

JDK

openjdk-19.0.1_windows-x64_bin.zip

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

Every time.

Are you willing to submit a pull request?

No

Activity

  1. added
    kind:bug
    needs:triage
    on Mar 8, 2023
  2. mbien commented on Mar 8, 2023

    @mbien
    Member

    what is the exception?

  3. Chris2011 commented on Mar 8, 2023

    @Chris2011
    Contributor

    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.

  4. BruceKHaddon commented on Mar 8, 2023

    @BruceKHaddon
    Author
  5. mbien commented on Mar 8, 2023

    @mbien
    Member

    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?

  6. BruceKHaddon commented on Mar 8, 2023

    @BruceKHaddon
    Author
  7. mbien commented on Mar 8, 2023

    @mbien
    Member

    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=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.

  8. lkishalmi commented on Mar 9, 2023

    @lkishalmi
  9. BruceKHaddon commented on Mar 9, 2023

    @BruceKHaddon
    Author
  10. mbien commented on Mar 9, 2023

    @mbien
  11. lkishalmi commented on Mar 10, 2023

    @lkishalmi
  12. BruceKHaddon commented on Mar 10, 2023

    @BruceKHaddon
    Author
  13. added
    pending-response
    on Mar 10, 2023
  14. neilcsmith-net commented on Mar 13, 2023

    @neilcsmith-net
  15. 16 remaining items

  16. mbien commented on Jun 13, 2023

    @mbien
    Member

    The build system is Ant.

    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.

  17. mbien commented on Jun 13, 2023

    @mbien
    Member

    Project that behaves as described (export file attached).

    @BruceKHaddon this is not a mailing list, it is an issue tracker, we won't see any files.

  18. added and removed
    needs:triage
    on Jun 13, 2023
  19. BruceKHaddon commented on Jun 14, 2023

    @BruceKHaddon
    Author
  20. neilcsmith-net commented on Jun 14, 2023

    @neilcsmith-net
    Member

    @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.

  21. ibrayock commented on Jun 14, 2023

    @ibrayock

    @ibrayock OK, as you said you're using the platform I suspect it's still related to https://lists.apache.org/thread/6l3tg4brq4522gcmc956jjtj855p6710 Do you have the JavaFX support enabled in Tools / Plugins, or are you running the IDE on a JDK with that included? Also try excluding the html4j libraries from the platform application.

    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

    Thanks

  22. neilcsmith-net commented on Jun 14, 2023

    @neilcsmith-net
    Member

    @ibrayock have you specifically excluded html4j from the platform as covered in that thread?

  23. ibrayock commented on Jun 14, 2023

    @ibrayock

    @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.

  24. BruceKHaddon commented on Jun 14, 2023

    @BruceKHaddon
    Author

    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).

  25. neilcsmith-net commented on Jun 15, 2023

    @neilcsmith-net
    Member

    @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)?

  26. neilcsmith-net commented on Jun 15, 2023

    @neilcsmith-net
    Member

    @BruceKHaddon you could also take a look at #6076 (comment) and whether following that process fixes things for you.

  27. BruceKHaddon commented on Jul 4, 2023

    @BruceKHaddon
    Author
  28. mbien commented on Jul 4, 2023

    @mbien
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugos:windowspending-response

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions