This looks like a JDK bug.
If you invoke javax.swing.JFileChooser.showOpenDialog you don't expect
the thread (invoking JDK classes, not Netbeans' classes) to get stuck in
a "WAITING" (parking) condition, I think. [2]
It seems people is reporting similar hangs in different applications
[1], with similar JDKs ([email protected]).
Any chances to upgrade your JDK?
Cheers,
Antonio
[1]
IntelliJ Idea
https://intellij-support.jetbrains.com/hc/en-us/community/posts/4419533666962-Remote-Development-max-out-CPU-Need-server-reboot-to-close-all-threads
NSA ghidra.
https://github.com/NationalSecurityAgency/ghidra/issues/3916
[2]
"AWT-EventQueue-0" #20 prio=6 os_prio=15 cpu=5912.93ms elapsed=139.99s
tid=0x000000082c06c800 nid=0x36285 waiting on condition
[0x00007fffddfdd000]
java.lang.Thread.State: WAITING (parking)
at jdk.internal.misc.Unsafe.park([email protected]/Native Method)
- parking to wait for <0x00000010019c3660> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at
java.util.concurrent.locks.LockSupport.park([email protected]/LockSupport.java:194)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await([email protected]/AbstractQueuedSynchronizer.java:2081)
at
java.awt.EventQueue.getNextEvent([email protected]/EventQueue.java:566)
at
java.awt.EventDispatchThread.pumpOneEventForFilters([email protected]/EventDispatchThread.java:190)
at
java.awt.EventDispatchThread.pumpEventsForFilter([email protected]/EventDispatchThread.java:124)
at
java.awt.EventDispatchThread.pumpEventsForFilter([email protected]/EventDispatchThread.java:117)
at
java.awt.WaitDispatchSupport$2.run([email protected]/WaitDispatchSupport.java:190)
at
java.awt.WaitDispatchSupport$4.run([email protected]/WaitDispatchSupport.java:235)
at
java.awt.WaitDispatchSupport$4.run([email protected]/WaitDispatchSupport.java:233)
at java.security.AccessController.doPrivileged([email protected]/Native
Method)
at
java.awt.WaitDispatchSupport.enter([email protected]/WaitDispatchSupport.java:233)
at java.awt.Dialog.show([email protected]/Dialog.java:1070)
at
javax.swing.JFileChooser.showDialog([email protected]/JFileChooser.java:769)
at
javax.swing.JFileChooser.showOpenDialog([email protected]/JFileChooser.java:666)
El 23/3/22 a las 13:41, Jürgen Weber escribió:
I append the thread dump.
Am So., 20. März 2022 um 10:26 Uhr schrieb antonio <[email protected]>:
Tips:
- "jps" prints the process ids of running Java programs.
- "jstack pid" dumps the stack trace of the give pid.
The stack trace will print deadlocks, if any.
Hope this helps,
Antonio
El 19/3/22 a las 20:29, Jürgen Weber escribió:
Any tips?
---------------------------------------------------------------------
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
---------------------------------------------------------------------
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
---------------------------------------------------------------------
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