lnicola opened a new issue, #9827: URL: https://github.com/apache/netbeans/issues/9827
### Apache NetBeans version Apache NetBeans 33 latest daily build ### What happened I ran into this in an application using NetBeans, SNAP (NetBeans 21, but bear with me): ``` $ sudo snap --nosplash --nogui --modules --refresh --update-all OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release. WARNING: package com.sun.java.swing.plaf.windows not in java.desktop Refreshing SNAP Supported Plugins Refreshing SNAP Core Refreshing SNAP Community Plugins Refreshing SNAP Toolboxes Updates not found. updates=0 WARNING: A terminally deprecated method in java.lang.System has been called WARNING: System::setSecurityManager has been called by org.netbeans.TopSecurityManager (file:/opt/esa-snap/platform/lib/boot.jar) WARNING: Please consider reporting this to the maintainers of org.netbeans.TopSecurityManager WARNING: System::setSecurityManager will be removed in a future release ``` Then it hangs. A cursory investigation brought me to https://github.com/apache/netbeans/blob/4261a87/platform/autoupdate.services/src/org/netbeans/modules/autoupdate/updateprovider/NetworkAccess.java#L61, which seems to start an executor but never shuts it down, nor does it set its thread as daemon. I suspect this causes the app to hang unless the `Task` happens to get GCed. [nb.txt](https://github.com/user-attachments/files/35334957/nb.txt) ### Language / Project Type / NetBeans Component Auto-updater ### How to reproduce - download https://download.esa.int/step/snap/14.0/installers/esa-snap_sentinel_linux-14.0.0.sh - install using `chmod +x esa-snap_sentinel_linux-14.0.0.sh && sudo ./esa-snap_sentinel_linux-14.0.0.sh` - `sudo snap --nosplash --nogui --modules --refresh --update-all` ### Did this work correctly in an earlier version? No / Don't know ### Operating System Fedora 44 ### JDK Bellsoft OpenJDK 21 ### Apache NetBeans packaging Other ### Anything else https://senbox.atlassian.net/browse/SNAP-927 ### Are you willing to submit a pull request? Yes -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
