Re: Project open hangs

2022-03-23 Thread antonio



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 (java.base@11.0.14).


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=0x00082c06c800 nid=0x36285 waiting on condition 
[0x7fffddfdd000]

   java.lang.Thread.State: WAITING (parking)
at jdk.internal.misc.Unsafe.park(java.base@11.0.14/Native Method)
	- parking to wait for  <0x0010019c3660> (a 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
	at 
java.util.concurrent.locks.LockSupport.park(java.base@11.0.14/LockSupport.java:194)
	at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.14/AbstractQueuedSynchronizer.java:2081)
	at 
java.awt.EventQueue.getNextEvent(java.desktop@11.0.14/EventQueue.java:566)
	at 
java.awt.EventDispatchThread.pumpOneEventForFilters(java.desktop@11.0.14/EventDispatchThread.java:190)
	at 
java.awt.EventDispatchThread.pumpEventsForFilter(java.desktop@11.0.14/EventDispatchThread.java:124)
	at 
java.awt.EventDispatchThread.pumpEventsForFilter(java.desktop@11.0.14/EventDispatchThread.java:117)
	at 
java.awt.WaitDispatchSupport$2.run(java.desktop@11.0.14/WaitDispatchSupport.java:190)
	at 
java.awt.WaitDispatchSupport$4.run(java.desktop@11.0.14/WaitDispatchSupport.java:235)
	at 
java.awt.WaitDispatchSupport$4.run(java.desktop@11.0.14/WaitDispatchSupport.java:233)
	at java.security.AccessController.doPrivileged(java.base@11.0.14/Native 
Method)
	at 
java.awt.WaitDispatchSupport.enter(java.desktop@11.0.14/WaitDispatchSupport.java:233)

at java.awt.Dialog.show(java.desktop@11.0.14/Dialog.java:1070)
	at 
javax.swing.JFileChooser.showDialog(java.desktop@11.0.14/JFileChooser.java:769)
	at 
javax.swing.JFileChooser.showOpenDialog(java.desktop@11.0.14/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 :


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: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Project open hangs

2022-03-23 Thread Jürgen Weber
I append the thread dump.

Am So., 20. März 2022 um 10:26 Uhr schrieb antonio :
>
> 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: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>


netbeans-fopen-jstack
Description: Binary data

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists