Submitted On 03-OCT-2008
aston_chan
If you put invokeLater() around the call to rescanCurrentDirectory(), then the deadlock will go away. I.e. replace
fc.rescanCurrentDirectory();
with
SwingUtilities.invokeLater( new Runnable() {
public void run() {
fc.rescanCurrentDirectory();
}
});
-Aston
Submitted On 14-OCT-2008
lbarowski
Even without a rescanCurrentDirectory(), this bug can occur in the normal course of business. Here are the relevant parts of a stack trace of another deadlock under 1.6.0_07:
"Basic L&F File Loading Thread" prio=6 tid=0x03987c00 nid=0xb68
waiting on condition [0x0505f000..0x0505fc14]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x22978368> (a java.util.concurrent.FutureTask$Sync)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
...
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
...
at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryModel.java:216)
"Swing-Shell" daemon prio=6 tid=0x02c34800 nid=0xaac runnable
[0x046df000..0x046dfd94]
java.lang.Thread.State: RUNNABLE
at sun.awt.shell.Win32ShellFolder2.getAttributes0(Native Method)
...
at sun.awt.shell.Win32ShellFolder2.isDirectory(Win32ShellFolder2.java:589)
at py.b(py.java)
at v4.accept(v4.java:15)
at javax.swing.JFileChooser.accept(JFileChooser.java:1576)
at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread$1.call(BasicDirectoryModel.java:235)
...
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Win32ShellFolderManager2.java:458)
at java.lang.Thread.run(Thread.java:619)
"AWT-EventQueue-0" prio=6 tid=0x02c62000 nid=0xe4 waiting on condition
[0x03cff000..0x03cffa14]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x2298be38> (a java.util.concurrent.FutureTask$Sync)
...
at sun.awt.shell.Win32ShellFolder2.hasAttribute(Win32ShellFolder2.java:520)
at sun.awt.shell.Win32ShellFolder2.isHidden(Win32ShellFolder2.java:746)
at nt.a(nt.java:134)
at r4.getListCellRendererComponent(r4.java:10)
...
at java.awt.Container.validate(Container.java:1491)
...
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Submitted On 14-OCT-2008
lbarowski
Oops, original bug has nothing to do with Nimbus L&F. L&F change was left in after modifying another bug report example.
Submitted On 14-OCT-2008
lbarowski
The Swing-Shell thread in the above trace is runnable, so maybe this is more like the NetBeans problem.
Submitted On 17-FEB-2009
Naresh_Devasani
Same problem occurs with JDK 6u11 also. And it is happening on only one (XP)machine.
Submitted On 12-MAR-2009
really a duplicate of 6741890
Submitted On 19-MAR-2009
Hi,
Is there any workaround for this ?
Thank you and regards,
Igor
Submitted On 26-MAR-2009
I want my day back
Submitted On 20-APR-2009
kisslas
Possible workaround added to 6741890. Any feedback there would be appreciated.
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|