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 178194 - C++ tools cannot be set. ToolsPanel throws Exceptions and hangs.
Summary: C++ tools cannot be set. ToolsPanel throws Exceptions and hangs.
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
: 178195 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-05 21:45 UTC by charlweed
Modified: 2010-03-12 08:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Showing blank, hung ToolsPanel (110.58 KB, image/png)
2009-12-05 21:48 UTC, charlweed
Details

Note You need to log in before you can comment on or make changes to this bug.
Description charlweed 2009-12-05 21:45:15 UTC
Attempting to open the C++ options window generates many exceptions, and the "busy" cursor never changes.
There is no default toolset, nor base directory. Because there is no toolset, C++ projects cannot be opened at all.
The IDE state bar shows a permanent message "Initializing compiler sets on localhost"

I will attach picture of  of ToolsPanel 

Product Version: NetBeans IDE Dev (Build 091205-01b8b3192cac)
Java: 1.6.0_17; Java HotSpot(TM) 64-Bit Server VM 14.3-b01
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Userdir: Q:\projects\3rdparty\netbeans\main\nbbuild\testuserdir

Exceptions are:

 [exec] SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.cnd.ui.options.ToolsPanel$2
    [exec] java.lang.NullPointerException
    [exec]     at org.netbeans.modules.nativeexecution.api.util.MacroMap.put(MacroMap.java:131)
    [exec]     at org.netbeans.modules.nativeexecution.api.util.MacroMap.prependPathVariable(MacroMap.java:184)
    [exec]     at org.netbeans.modules.cnd.makeproject.api.compilers.CCCCompiler.getSystemIncludesAndDefines(CCCCompiler.java:228)
    [exec]     at org.netbeans.modules.cnd.makeproject.api.compilers.GNUCCCCompiler.getFreshSystemIncludesAndDefines(GNUCCCCompiler.java:81)
    [exec]     at org.netbeans.modules.cnd.makeproject.api.compilers.CCCCompiler.getSystemIncludesAndDefines(CCCCompiler.java:160)
    [exec]     at org.netbeans.modules.cnd.makeproject.api.compilers.CCCCompiler.waitReady(CCCCompiler.java:151)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.completeCompilerSetsSettings(CompilerSetManager.java:861)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.completeCompilerSets(CompilerSetManager.java:854)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.initCompilerSetsImpl(CompilerSetManager.java:460)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.access$300(CompilerSetManager.java:90)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager$4.run(CompilerSetManager.java:386)
    [exec]     at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:641)
    [exec]     at org.openide.util.RequestProcessor$Processor.doEvaluate(RequestProcessor.java:1165)
    [exec]     at org.openide.util.RequestProcessor$Task.waitFinished(RequestProcessor.java:822)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.initCompilerSets(CompilerSetManager.java:389)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.<init>(CompilerSetManager.java:214)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.getDefaultImpl(CompilerSetManager.java:138)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.getDeepCopy(CompilerSetManager.java:314)
    [exec]     at org.netbeans.modules.cnd.ui.options.ToolsCacheManager.getCompilerSetManagerCopy(ToolsCacheManager.java:168)
    [exec]     at org.netbeans.modules.cnd.ui.options.ToolsPanel.initializeLong(ToolsPanel.java:145)
    [exec]     at org.netbeans.modules.cnd.ui.options.ToolsPanel.access$200(ToolsPanel.java:90)
    [exec]     at org.netbeans.modules.cnd.ui.options.ToolsPanel$2.run(ToolsPanel.java:346)
    [exec]     at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:641)
    [exec]     at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1123)
    [exec] Caused: org.openide.util.RequestProcessor$FastItem: task failed due to
    [exec] SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.cnd.ui.options.ToolsPanel$2
    [exec] java.lang.NullPointerException
    [exec]     at org.netbeans.modules.nativeexecution.api.util.MacroMap.put(MacroMap.java:131)
    [exec]     at org.netbeans.modules.nativeexecution.api.util.MacroMap.prependPathVariable(MacroMap.java:184)
    [exec]     at org.netbeans.modules.cnd.makeproject.api.compilers.CCCCompiler.getSystemIncludesAndDefines(CCCCompiler.java:228)
    [exec]     at org.netbeans.modules.cnd.makeproject.api.compilers.GNUCCCCompiler.getFreshSystemIncludesAndDefines(GNUCCCCompiler.java:81)
    [exec]     at org.netbeans.modules.cnd.makeproject.api.compilers.CCCCompiler.getSystemIncludesAndDefines(CCCCompiler.java:160)
    [exec]     at org.netbeans.modules.cnd.makeproject.api.compilers.CCCCompiler.waitReady(CCCCompiler.java:151)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.completeCompilerSetsSettings(CompilerSetManager.java:861)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.completeCompilerSets(CompilerSetManager.java:854)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.initCompilerSetsImpl(CompilerSetManager.java:460)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.access$300(CompilerSetManager.java:90)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager$4.run(CompilerSetManager.java:386)
    [exec]     at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:641)
    [exec]     at org.openide.util.RequestProcessor$Processor.doEvaluate(RequestProcessor.java:1165)
    [exec]     at org.openide.util.RequestProcessor$Task.waitFinished(RequestProcessor.java:822)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.initCompilerSets(CompilerSetManager.java:389)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.<init>(CompilerSetManager.java:214)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.getDefaultImpl(CompilerSetManager.java:138)
    [exec]     at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.getDeepCopy(CompilerSetManager.java:314)
    [exec]     at org.netbeans.modules.cnd.ui.options.ToolsCacheManager.getCompilerSetManagerCopy(ToolsCacheManager.java:168)
    [exec]     at org.netbeans.modules.cnd.ui.options.ToolsPanel.initializeLong(ToolsPanel.java:145)
    [exec]     at org.netbeans.modules.cnd.ui.options.ToolsPanel.access$200(ToolsPanel.java:90)
    [exec]     at org.netbeans.modules.cnd.ui.options.ToolsPanel$2.run(ToolsPanel.java:346)
    [exec]     at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:641)
    [exec]     at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1123)
    [exec] Caused: org.openide.util.RequestProcessor$FastItem: task failed due to
Comment 1 charlweed 2009-12-05 21:48:24 UTC
Created attachment 92175 [details]
Showing blank, hung  ToolsPanel
Comment 2 Alexander Simon 2009-12-06 00:17:07 UTC
It seems bug is a result of:
http://hg.netbeans.org/cnd-main?cmd=changeset;node=04b335aada02
Comment 3 Alexander Simon 2009-12-06 00:26:47 UTC
Change set 04b335aada02 is not in the release68 branch
Comment 4 charlweed 2009-12-12 13:26:47 UTC
A possible fix is posted as a patch on bug https://netbeans.org/bugzilla/show_bug.cgi?id=178195 178195
Comment 5 Leonid Lenyashin 2010-03-04 03:52:15 UTC
Is this fixed now?
Comment 6 Alexander Simon 2010-03-04 10:48:16 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/c55736ed00f1
Comment 7 Quality Engineering 2010-03-04 22:12:38 UTC
Integrated into 'main-golden', will be available in build *201003050200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c55736ed00f1
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed BZ#178194 C++ tools cannot be set. ToolsPanel throws Exceptions and hangs.
Comment 8 Alexander Simon 2010-03-12 08:24:37 UTC
*** Bug 178195 has been marked as a duplicate of this bug. ***