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 248576 - Slowness when setting binary location in "Create Project from Binary" wizard
Summary: Slowness when setting binary location in "Create Project from Binary" wizard
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-11 15:12 UTC by Vladimir Kvashin
Modified: 2016-06-18 03:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2014-11-11 15:12:48 UTC
Here is call stack that shows that we perform remote operations in EDT


"AWT-EventQueue-0" prio=3 tid=0x08628800 nid=0x1e in Object.wait() [0xf292a000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0xca2bf0b8> (a com.jcraft.jsch.Channel$MyPipedInputStream)
	at java.io.PipedInputStream.read(PipedInputStream.java:327)
	- locked <0xca2bf0b8> (a com.jcraft.jsch.Channel$MyPipedInputStream)
	at java.io.PipedInputStream.read(PipedInputStream.java:378)
	- locked <0xca2bf0b8> (a com.jcraft.jsch.Channel$MyPipedInputStream)
	at java.io.InputStream.read(InputStream.java:101)
	at org.openide.filesystems.FileUtil.copy(FileUtil.java:559)
	at org.netbeans.modules.remote.impl.fs.MagicCache.updateCache(MagicCache.java:231)
	at org.netbeans.modules.remote.impl.fs.MagicCache.readCache(MagicCache.java:112)
	at org.netbeans.modules.remote.impl.fs.MagicCache.get(MagicCache.java:82)
	- locked <0xca2b4328> (a org.netbeans.modules.remote.impl.fs.MagicCache)
	at org.netbeans.modules.remote.impl.fs.RemoteDirectory.getMagic(RemoteDirectory.java:1541)
	at org.netbeans.modules.remote.impl.fs.RemoteFileObjectBase.getMagic(RemoteFileObjectBase.java:365)
	at org.netbeans.modules.remote.impl.fs.RemoteFileObject.getInputStream(RemoteFileObject.java:387)
	at org.openide.filesystems.MIMESupport$CachedFileObject.getInputStream(MIMESupport.java:402)
	at org.netbeans.modules.openide.filesystems.declmime.FileElement$Type$FilePattern.match(FileElement.java:314)
	at org.netbeans.modules.openide.filesystems.declmime.FileElement$Type.accept(FileElement.java:634)
	at org.netbeans.modules.openide.filesystems.declmime.FileElement$Type.access$300(FileElement.java:156)
	at org.netbeans.modules.openide.filesystems.declmime.FileElement.resolve(FileElement.java:99)
	at org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl$Impl.findMIMEType(MIMEResolverImpl.java:440)
	at org.openide.filesystems.MIMESupport$CachedFileObject.resolveMIME(MIMESupport.java:371)
	at org.openide.filesystems.MIMESupport$CachedFileObject.getMIMEType(MIMESupport.java:312)
	at org.openide.filesystems.MIMESupport.findMIMEType(MIMESupport.java:136)
	at org.openide.filesystems.FileUtil.getMIMEType(FileUtil.java:1315)
	at org.openide.filesystems.FileObject.getMIMEType(FileObject.java:658)
	at org.netbeans.modules.remote.impl.fs.RemoteFileObject.getMIMEType(RemoteFileObject.java:137)
	at org.netbeans.modules.cnd.makeproject.ui.wizards.SelectBinaryPanelVisual.validBinary(SelectBinaryPanelVisual.java:895)
	at org.netbeans.modules.cnd.makeproject.ui.wizards.SelectBinaryPanelVisual.valid(SelectBinaryPanelVisual.java:875)
	at org.netbeans.modules.cnd.makeproject.ui.wizards.SelectBinaryPanel.validate(SelectBinaryPanel.java:143)
	at org.netbeans.modules.cnd.makeproject.ui.wizards.SelectBinaryPanel.access$000(SelectBinaryPanel.java:62)
	at org.netbeans.modules.cnd.makeproject.ui.wizards.SelectBinaryPanel$BinaryWizardStorage.setBinaryPath(SelectBinaryPanel.java:191)
	at org.netbeans.modules.cnd.makeproject.ui.wizards.SelectBinaryPanelVisual$1.actionPerformed(SelectBinaryPanelVisual.java:163)
	at org.netbeans.modules.cnd.utils.ui.EditableComboBox$1.insertUpdate(EditableComboBox.java:189)
	at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:202)
	at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:749)
Comment 1 Vladimir Kvashin 2014-11-11 15:14:05 UTC
That's what I experienced in Studio, i.e. in 8.0.1 patch1
Probably this has already gone after recent project wizards rework.
Comment 2 Alexander Simon 2016-06-15 16:59:14 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/88a5e68a047c
Comment 3 Quality Engineering 2016-06-18 03:11:55 UTC
Integrated into 'main-silver', will be available in build *201606180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/88a5e68a047c
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #248576 Slowness when setting binary location in "Create Project from Binary" wizard