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 175836 - assertion error when adding SS toolchain
Summary: assertion error when adding SS toolchain
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-31 04:54 UTC by Thomas Preisler
Modified: 2009-11-03 10:24 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 Thomas Preisler 2009-10-31 04:54:56 UTC
I tried to manually add a SS 12.2 toolchain.The compilers are in a structure like this:

.../opt/SUNWspro/bin

and I add ../opt/SUNWspro as base dir. It then throws the following assertion error (but toolchain is correctly added):

java.lang.Exception: Should not be called from UI thread
    at org.netbeans.modules.nativeexecution.support.Logger.assertTrue(Logger.java:71)
    at org.netbeans.modules.nativeexecution.support.Logger.assertFalse(Logger.java:82)
    at org.netbeans.modules.nativeexecution.support.Logger.assertNonUiThread(Logger.java:86)
    at org.netbeans.modules.nativeexecution.api.util.HostInfoUtils.getHostInfo(HostInfoUtils.java:187)
    at org.netbeans.modules.dlight.procfs.processinfo.ProcBasedProcessInfoProviderFactory.getProvider(ProcBasedProcessInfoProviderFactory.java:62)
    at org.netbeans.modules.nativeexecution.AbstractNativeProcess.findInfoProvider(AbstractNativeProcess.java:390)
    at org.netbeans.modules.nativeexecution.AbstractNativeProcess.createAndStart(AbstractNativeProcess.java:129)
    at org.netbeans.modules.nativeexecution.api.NativeProcessBuilder.call(NativeProcessBuilder.java:203)
    at org.netbeans.modules.cnd.makeproject.api.compilers.CCCCompiler.getSystemIncludesAndDefines(CCCCompiler.java:240)
    at org.netbeans.modules.cnd.makeproject.api.compilers.SunCCCCompiler.getFreshSystemIncludesAndDefines(SunCCCCompiler.java:79)
    at org.netbeans.modules.cnd.makeproject.api.compilers.CCCCompiler.getSystemIncludesAndDefines(CCCCompiler.java:164)
    at org.netbeans.modules.cnd.makeproject.api.compilers.CCCCompiler.getSystemIncludeDirectories(CCCCompiler.java:122)
    at org.netbeans.modules.cnd.makeproject.api.compilers.SunCCCompiler.createCopy(SunCCCompiler.java:63)
    at org.netbeans.modules.cnd.makeproject.api.compilers.SunCCCompiler.createCopy(SunCCCompiler.java:51)
    at org.netbeans.modules.cnd.api.compilers.CompilerSet.createCopy(CompilerSet.java:318)
    at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.completeSunStudioCompilerSet(CompilerSetManager.java:846)
    at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.completeCompilerSets(CompilerSetManager.java:793)
    at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.add(CompilerSetManager.java:1020)
    at org.netbeans.modules.cnd.ui.options.ToolsPanel.addCompilerSet(ToolsPanel.java:213)
    at org.netbeans.modules.cnd.ui.options.ToolsPanel.actionPerformed(ToolsPanel.java:616)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6216)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
    at java.awt.Component.processEvent(Component.java:5981)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4583)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4413)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2475)
    at java.awt.Component.dispatchEvent(Component.java:4413)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:125)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Alexander Simon 2009-11-02 10:48:02 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/02cbcef2dad3
Comment 2 Quality Engineering 2009-11-03 10:24:58 UTC
Integrated into 'main-golden', will be available in build *200911030222* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/02cbcef2dad3
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed IZ#175836 assertion error when adding SS toolchain