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 230181 - Should not be called from UI thread
Summary: Should not be called from UI thread
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.4
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-23 13:42 UTC by Vladimir Voskresensky
Modified: 2013-11-15 14:49 UTC (History)
1 user (show)

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 Voskresensky 2013-05-23 13:42:18 UTC
INFO [dlight.libs.common.logger]: Should not be called from UI thread
java.lang.Exception: Should not be called from UI thread
	at org.netbeans.modules.dlight.libs.common.DLightLibsCommonLogger.assertNonUiThread(DLightLibsCommonLogger.java:119)
	at org.netbeans.modules.dlight.libs.common.DLightLibsCommonLogger.assertNonUiThreadOnce(DLightLibsCommonLogger.java:129)
	at org.netbeans.modules.remote.support.LocalFileSystemProvider.urlToFileObject(LocalFileSystemProvider.java:255)
	at org.netbeans.modules.remote.spi.FileSystemProvider.urlToFileObject(FileSystemProvider.java:276)
	at org.netbeans.modules.cnd.remote.fs.CndFileSystemProviderImpl.toFileObjectImpl(CndFileSystemProviderImpl.java:87)
	at org.netbeans.modules.cnd.spi.utils.CndFileSystemProvider$DefaultProvider.toFileObjectImpl(CndFileSystemProvider.java:242)
	at org.netbeans.modules.cnd.spi.utils.CndFileSystemProvider.toFileObject(CndFileSystemProvider.java:135)
	at org.netbeans.modules.cnd.utils.cache.CndFileUtils.toFileObject(CndFileUtils.java:216)
	at org.netbeans.modules.cnd.api.remote.RemoteFileUtil.getFileObject(RemoteFileUtil.java:120)
	at org.netbeans.modules.cnd.makeproject.api.configurations.Item.getFileObjectImpl(Item.java:453)
	at org.netbeans.modules.cnd.makeproject.api.configurations.Item.getDataObject(Item.java:470)
	at org.netbeans.modules.cnd.makeproject.api.configurations.Item.getDefaultTool(Item.java:586)
	at org.netbeans.modules.cnd.makeproject.ui.BrokenViewItemNode.getIcon(BrokenViewItemNode.java:103)
	at org.openide.nodes.FilterNode.getIcon(FilterNode.java:557)
	at org.openide.explorer.view.VisualizerNode.getIcon(VisualizerNode.java:558)
	at org.openide.explorer.view.NodeRenderer.configureFrom(NodeRenderer.java:215)
	at org.openide.explorer.view.NodeRenderer.getTreeCellRendererComponent(NodeRenderer.java:147)
	at javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:2786)
	at javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:492)
	at javax.swing.tree.FixedHeightLayoutCache.getBounds(FixedHeightLayoutCache.java:552)
	at javax.swing.tree.FixedHeightLayoutCache.getBounds(FixedHeightLayoutCache.java:198)
	at javax.swing.plaf.basic.BasicTreeUI.getPathBounds(BasicTreeUI.java:528)
	at javax.swing.plaf.basic.BasicTreeUI.getPathBounds(BasicTreeUI.java:521)
	at javax.swing.plaf.basic.BasicTreeUI$Handler.valueChanged(BasicTreeUI.java:3758)
	at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:634)
	at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1092)
	at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:293)
	at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:187)
	at javax.swing.JTree.setSelectionPath(JTree.java:1631)
	at org.openide.explorer.view.TreeView$ExplorerTree$ModelHandler.treeNodesRemoved(TreeView.java:2289)
	at javax.swing.tree.DefaultTreeModel.fireTreeNodesRemoved(DefaultTreeModel.java:548)
	at javax.swing.tree.DefaultTreeModel.nodesWereRemoved(DefaultTreeModel.java:328)
	at org.openide.explorer.view.NodeTreeModel$Listener.removed(NodeTreeModel.java:259)
	at org.openide.explorer.view.VisualizerChildren.removed(VisualizerChildren.java:290)
	at org.openide.explorer.view.VisualizerEvent$Removed.run(VisualizerEvent.java:135)
	at org.openide.util.Mutex.readAccess(Mutex.java:367)
	at org.openide.util.Mutex$1R.run(Mutex.java:1309)
	at org.openide.nodes.Children$ProjectManagerDeadlockDetector.execute(Children.java:1921)
	at org.openide.util.Mutex.doWrapperAccess(Mutex.java:1328)
	at org.openide.util.Mutex.readAccess(Mutex.java:356)
	at org.openide.explorer.view.VisualizerNode$QP.processQueue(VisualizerNode.java:685)
	at org.openide.explorer.view.VisualizerNode$QP.access$000(VisualizerNode.java:624)
	at org.openide.explorer.view.VisualizerNode$QP$ProcessQueue.run(VisualizerNode.java:706)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:688)
	at java.awt.EventQueue$3.run(EventQueue.java:686)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Comment 1 Egor Ushakov 2013-05-23 14:52:29 UTC
fixed in:
http://hg.netbeans.org/cnd-main/rev/51aea362a642
Comment 2 Quality Engineering 2013-05-24 02:45:47 UTC
Integrated into 'main-golden', will be available in build *201305232300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/51aea362a642
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #230181 - Should not be called from UI thread
Comment 3 Alexander Simon 2013-10-09 07:37:44 UTC
the fix introduced NPE:
java.lang.NullPointerException
	at org.netbeans.modules.cnd.makeproject.ui.BrokenViewItemNode.getIcon(BrokenViewItemNode.java:104)
	at org.openide.nodes.FilterNode.getIcon(FilterNode.java:557)
Comment 4 Alexander Simon 2013-10-09 07:48:21 UTC
additional fix of NPE:
15c7f981f79b
Comment 5 Alexander Pepin 2013-11-15 14:49:09 UTC
Verified in build 201311142201.