Bug 17148 - External Tools: IllegalArgumentException in Log Console
Summary: External Tools: IllegalArgumentException in Log Console
Status: RESOLVED DUPLICATE of bug 17005
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 critical (vote)
Target Milestone: 2.0 F2   Edit
Assignee: Ryan Cooper CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-23 04:57 EDT by Martin Aeschlimann CLA
Modified: 2002-05-29 09:22 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2002-05-23 04:57:49 EDT
20020521

1. created a new external tool
2. run -> console log opened
3. clicked on the left border of the console -> tree viewer visible
   (note that this was a surprise, I just wanted to resixe the view part)
4. closed the view
5. run again: nothing visible, exception in log

java.lang.IllegalArgumentException: Argument not valid
	at org.eclipse.swt.SWT.error(SWT.java:1873)
	at org.eclipse.swt.graphics.GC.setForeground(GC.java(Compiled Code))
	at org.eclipse.swt.graphics.GC.setForeground(GC.java(Compiled Code))
	at org.eclipse.swt.custom.StyledTextRenderer.drawStyledLine
(StyledTextRenderer.java(Compiled Code))
	at org.eclipse.swt.custom.StyledTextRenderer.drawStyledLine
(StyledTextRenderer.java(Compiled Code))
	at org.eclipse.swt.custom.StyledTextRenderer.drawLine
(StyledTextRenderer.java(Compiled Code))
	at org.eclipse.swt.custom.StyledText.performPaint(StyledText.java
(Compiled Code))
	at org.eclipse.swt.custom.StyledText.handlePaint(StyledText.java:4640)
	at org.eclipse.swt.custom.StyledText$13.handleEvent
(StyledText.java:4358)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Control.windowProc(Control.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled 
Code))
	at org.eclipse.swt.internal.win32.OS.RedrawWindow(Native Method)
	at org.eclipse.swt.widgets.Canvas.scroll(Canvas.java:149)
	at org.eclipse.swt.custom.StyledText.redrawMultiLineChange
(StyledText.java:5489)
	at org.eclipse.swt.custom.StyledText.handleTextChanging
(StyledText.java:4803)
	at org.eclipse.swt.custom.StyledText$6.textChanging
(StyledText.java:4289)
	at org.eclipse.jface.text.DocumentAdapter.fireTextChanging
(DocumentAdapter.java:271)
	at org.eclipse.jface.text.DocumentAdapter.documentAboutToBeChanged
(DocumentAdapter.java:222)
	at org.eclipse.jface.text.AbstractDocument.fireDocumentAboutToBeChanged
(AbstractDocument.java:462)
	at org.eclipse.jface.text.AbstractDocument.set
(AbstractDocument.java:828)
	at 
org.eclipse.ui.externaltools.internal.ui.LogConsoleDocument.clearOutput
(LogConsoleDocument.java:85)
	at org.eclipse.ui.externaltools.internal.core.ToolUtil.clearLogDocument
(ToolUtil.java:174)
	at org.eclipse.ui.externaltools.internal.ui.ExternalToolsAction.runTool
(ExternalToolsAction.java:176)
	at org.eclipse.ui.externaltools.internal.ui.ExternalToolsAction.access$1
(ExternalToolsAction.java:168)
	at 
org.eclipse.ui.externaltools.internal.ui.ExternalToolsAction$2.widgetSelected
(ExternalToolsAction.java:146)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:739)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:200)
	at org.eclipse.core.launcher.Main.run(Main.java:643)
	at org.eclipse.core.launcher.Main.main(Main.java:476)
Comment 1 Nick Edgar CLA 2002-05-27 22:03:39 EDT
Sounds like a dup of bug 17005, but the steps are different.
Comment 2 Ryan Cooper CLA 2002-05-29 09:22:23 EDT
The StyleRanges used by the LogConsoleDocument to keep track of the colors of 
output to the console hold on to Colors which are disposed when the last open 
LogConsoleView is closed. When a new LogConsoleView is opened, it tries to draw 
using these disposed colors.

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