This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 239343 - IDE hung when exiting
Summary: IDE hung when exiting
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-11 06:51 UTC by Vladimir Kvashin
Modified: 2014-02-07 09:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Full thread dump (76.49 KB, text/plain)
2013-12-11 06:51 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2013-12-11 06:51:43 UTC
Created attachment 143043 [details]
Full thread dump

I tried to quit IDE, but it hanged. See thread dump in the attachment
Comment 1 Vladimir Kvashin 2013-12-11 07:16:43 UTC
A first glance at thread dumps shows that

1) AWT-EventQueue-1 waits for parsing task to finish:
  ...
  at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
  at org.netbeans.modules.parsing.impl.Installer.close(Installer.java:115)
  ...

2) The thread "Editor Parsing Loop (20131206-14bf4eeb70cd)"
performs semantic highlighting; it goes into APT and is
waiting to lock <0x00000000c3ad81a0> (a org.netbeans.modules.cnd.apt.impl.support.APTDriverImpl$APTSyncCreator)

3) This lock is held by Code Model Parser 1, which in turn stays in 
RemoteDirectory.ensureChildSync(RemoteDirectory.java:1243)
(i.e. waits for CommonTasksSupport.downloadFile to finish)


4) There are two SFTP threads both trying to download inexistent files from MacOS
"SFTP: : Downloading .... /MacOSX10.7.sdk ... 

5) One of these SFTP threads are waiting to lock <0x00000000c07d50d0> (a java.lang.Object) in ConnectionManager$ConnectionManagerAccessorImpl.openAndAcquireChannel(ConnectionManager.java:552)

while another one holds this lock and waits in
JSchChannelsSupport.acquireChannel(JSchChannelsSupport.java:132)
Comment 2 Vladimir Kvashin 2014-02-07 09:33:25 UTC
Should be fixed as a side effect of fixing issue 241326 by
http://hg.netbeans.org/cnd-main/rev/18e26bd0d110