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 244908 - Long UI freeze
Summary: Long UI freeze
Status: RESOLVED DUPLICATE of bug 244909
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: issues@web
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-05 11:58 UTC by Vladimir Kvashin
Modified: 2014-06-05 12:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
full thread dump (64.58 KB, text/plain)
2014-06-05 11:58 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2014-06-05 11:58:06 UTC
Created attachment 147582 [details]
full thread dump

I was working with mysql remote project over a rather slow network;
when I right-clicked editor, UI froze for halrf a minute or so.

Please see full thread dump in attachment,


What i see in EDT is

"AWT-EventQueue-0" prio=3 tid=0x097cd800 nid=0x2c waiting on condition [0x541fe000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0xe77b46e0> (a java.util.concurrent.locks.ReentrantLock$FairSync)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:867)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1197)
	at java.util.concurrent.locks.ReentrantLock$FairSync.lock(ReentrantLock.java:229)
	at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:290)
	at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:195)
	at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106)
	at org.netbeans.modules.css.refactoring.CssActionsImplementationProvider.isRefactorableEditorElement(CssActionsImplementationProvider.java:225)
	at org.netbeans.modules.css.refactoring.CssActionsImplementationProvider.canFindUsages(CssActionsImplementationProvider.java:155)
	at org.netbeans.modules.refactoring.api.impl.ActionsImplementationFactory.canFindUsages(ActionsImplementationFactory.java:100)
	at org.netbeans.modules.refactoring.spi.impl.WhereUsedAction.enable(WhereUsedAction.java:92)
	at org.netbeans.modules.refactoring.spi.impl.RefactoringGlobalAction$ContextAction.isEnabled(RefactoringGlobalAction.java:182)
	at org.openide.awt.Actions$MenuBridge.updateState(Actions.java:1234)
	at org.openide.awt.Actions$Bridge.addNotify(Actions.java:909)
	at org.openide.awt.Actions$MenuBridge.prepare(Actions.java:1219)
	at org.openide.awt.Actions.connect(Actions.java:201)
	at org.openide.awt.Actions$MenuItem.<init>(Actions.java:1571)
	at org.netbeans.modules.refactoring.spi.impl.RefactoringGlobalAction$ContextAction.getPopupPresenter(RefactoringGlobalAction.java:215)
	at org.netbeans.modules.editor.NbEditorKit.createLocalizedMenuItem(NbEditorKit.java:356)
	at org.netbeans.modules.editor.NbEditorKit.access$400(NbEditorKit.java:136)
	at org.netbeans.modules.editor.NbEditorKit$NbBuildPopupMenuAction.addAction(NbEditorKit.java:767)
	at org.netbeans.modules.editor.NbEditorKit$NbBuildPopupMenuAction.buildPopupMenu(NbEditorKit.java:743)
	at org.netbeans.editor.ext.ExtKit$BuildPopupMenuAction.actionPerformed(ExtKit.java:282)
	at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:337)
	at org.netbeans.spi.editor.AbstractEditorAction.actionPerformed(AbstractEditorAction.java:462)
	at org.netbeans.editor.EditorUI.showPopupMenu(EditorUI.java:1781)
	at org.netbeans.editor.EditorUI$7.run(EditorUI.java:1714)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
Comment 1 Vladimir Kvashin 2014-06-05 12:18:58 UTC
Slowness detector was off since IDE ran in debugging mode.

I also saw 2 warnings in condole:

WARNING [org.netbeans.modules.parsing.impl.TaskProcessor]: ParserManager.parse called in AWT event thread by: org.netbeans.modules.css.refactoring.CssActionsImplementationProvider.isRefactorableEditorElement(CssActionsImplementationProvider.java:225)

WARNING [org.netbeans.modules.parsing.impl.TaskProcessor]: ParserManager.parse called in AWT event thread by: org.netbeans.modules.css.prep.editor.refactoring.CPActionsImplementationProvider.isRefactorableEditorElement(CPActionsImplementationProvider.java:171)

In my stack it's 
org.netbeans.modules.css.refactoring.CssActionsImplementationProvider
who calls parser in EDT
Comment 2 Vladimir Kvashin 2014-06-05 12:22:48 UTC
What makes this especially unpleasant to user is that I did not have neither Web. nor Java NetBeans component installed - only pure C/C++ pack.

And file I clicked within was a source or header C or C++ file (I don't remember exactly which of these)

And it's this C/C++-only configuration that is used as a platform for Oracle Solaris Studio.

So this looks pretty serious.
Comment 3 Vladimir Kvashin 2014-06-05 12:50:40 UTC

*** This bug has been marked as a duplicate of bug 244909 ***