Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320723

Summary: Build console is something black
Product: [Tools] CDT Reporter: Marc Khouzam <marc.khouzam>
Component: cdt-buildAssignee: Andrew Gvozdev <angvoz.dev>
Status: RESOLVED FIXED QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 7.0   
Target Milestone: 7.0.1   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 214215    
Bug Blocks:    

Description Marc Khouzam CLA 2010-07-23 10:11:24 EDT
I'm still seeing the problem described in bug 270326
Comment 1 Andrew Gvozdev CLA 2010-07-23 10:16:03 EDT
I am fairly certain that it is another manifestation of bug 214215. Marking it dependent until we have a reason to believe that it is not.
Comment 2 Andrew Gvozdev CLA 2010-08-30 10:09:27 EDT
There is some relevant info in cdt-dev mailing list:
On Fri, Jul 23, 2010 at 11:00 AM, Doug Schaefer <cdtdoug@gmail.com> wrote:
> Actually, what I'm seeing is black text on a black background.
> I can highlight the text in the console and see that it's there.
> Often, it's just creating a test project. I'll try to remember which
> one it was, either Executable or Makefile, the next time I see it. But
> that shouldn't really matter since the coloring should be independent
> from the choice of builder.
Comment 3 Andrew Gvozdev CLA 2010-09-15 10:52:38 EDT
Got another case here as following. Build Automatically is enabled. A file got changed in CDT project which triggered rebuild. Now Out Of Memory error occurred and eclipse is being killed. After restart build is triggered automatically in background and black console appears.
Comment 4 Andrew Gvozdev CLA 2010-09-18 23:56:41 EDT
Committed the fix (a better workaround) to HEAD (8.0) and a smaller one to 7.0.1. Because of mistyping it got attributed to bug 270326 in CVS. I'll still use this bug for the record.
Comment 5 Doug Schaefer CLA 2015-04-06 12:26:06 EDT
Wow, this workaround has come around to bite me in the ass. This line in CUIPlugin start():

		// A workaround for black console bug 320723.
		BuildConsolePreferencePage.initDefaults(getPreferenceStore());

causes all of the CDT UI preferences to get initialized. During this initialization, we get the colors from the theme which triggers the workbench theme manager to init and that can only be done on the UI thread. I get the SWT invalid thread access exception which blows up the theme manager which causes an NPE later and crashes the workbench.

Might want to find a better workaround.
Comment 6 Doug Schaefer CLA 2015-04-06 12:27:05 EDT
Opened bug 463981 to try and get passed the invalid thread access issue.