Project: Eclipse_Platform_UI
Bug 92019 IAE in TextStyle constructor when disposing PDEFormEditor
Reported: 2005-04-19 22:32:46 | Status: verified fixed

build I20050419-1200 Saw the following in the (linux-gtk) console output for this build. There are some earlier exceptions (reported separately), so this may be a secondary effect. [java] !ENTRY org.eclipse.ui.workbench 4 2 2005-04-19 14:35:14.491 [java] !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". [java] !STACK 0 [java] java.lang.IllegalArgumentException: Argument not valid [java] at org.eclipse.swt.SWT.error(SWT.java:2924) [java] at org.eclipse.swt.SWT.error(SWT.java:2863) [java] at org.eclipse.swt.SWT.error(SWT.java:2834) [java] at org.eclipse.swt.graphics.TextStyle.<init>(TextStyle.java:73) [java] at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:437) [java] at org.eclipse.swt.custom.StyledText.getXAtOffset(StyledText.java:4731) [java] at org.eclipse.swt.custom.StyledText.getLocationAtOffset(StyledText.java:3884) [java] at org.eclipse.jface.text.CursorLinePainter.drawHighlightLine(CursorLinePainter.java:182) [java] at org.eclipse.jface.text.CursorLinePainter.deactivate(CursorLinePainter.java:200) [java] at org.eclipse.jface.text.PaintManager.removePainter(PaintManager.java:214) [java] at org.eclipse.jface.text.TextViewer.removePainter(TextViewer.java:4746) [java] at org.eclipse.ui.texteditor.SourceViewerDecorationSupport.hideCursorLine(SourceViewerDecorationSupport.java:736) [java] at org.eclipse.ui.texteditor.SourceViewerDecorationSupport.updateTextDecorations(SourceViewerDecorationSupport.java:316) [java] at org.eclipse.ui.texteditor.SourceViewerDecorationSupport.dispose(SourceViewerDecorationSupport.java:399) [java] at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.dispose(AbstractDecoratedTextEditor.java:232) [java] at org.eclipse.ui.editors.text.TextEditor.dispose(TextEditor.java:101) [java] at org.eclipse.pde.internal.ui.editor.PDESourcePage.dispose(PDESourcePage.java:171) [java] at org.eclipse.pde.internal.ui.editor.XMLSourcePage.dispose(XMLSourcePage.java:43) [java] at org.eclipse.ui.part.MultiPageEditorPart$3.run(MultiPageEditorPart.java:541) [java] at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1026) [java] at org.eclipse.core.runtime.Platform.run(Platform.java:757) [java] at org.eclipse.ui.part.MultiPageEditorPart.disposePart(MultiPageEditorPart.java:534) [java] at org.eclipse.ui.part.MultiPageEditorPart.dispose(MultiPageEditorPart.java:268) [java] at org.eclipse.ui.forms.editor.FormEditor.dispose(FormEditor.java:338) [java] at org.eclipse.pde.internal.ui.editor.PDEFormEditor.dispose(PDEFormEditor.java:422) [java] at org.eclipse.ui.internal.WorkbenchPartReference.dispose(WorkbenchPartReference.java:527) [java] at org.eclipse.ui.internal.EditorReference.dispose(EditorReference.java:235) [java] at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1153) [java] at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1176) [java] at org.eclipse.ui.internal.CloseEditorAction.run(CloseEditorAction.java:40) [java] at org.eclipse.jface.action.Action.runWithEvent(Action.java:996) [java] at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538) [java] at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488) [java] at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400) [java] at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) [java] at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012) [java] at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1036) [java] at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021) [java] at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:891) [java] at org.eclipse.pde.internal.ui.tests.macro.BooleanSelectionCommand.doClick(BooleanSelectionCommand.java:140) [java] at org.eclipse.pde.internal.ui.tests.macro.BooleanSelectionCommand.playback(BooleanSelectionCommand.java:130) [java] at org.eclipse.pde.internal.ui.tests.macro.MacroCommandShell$4.run(MacroCommandShell.java:509) [java] at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) [java] at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:118) [java] at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2755) [java] at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2475) [java] at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:153) [java] at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:303) [java] at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:624) [java] at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) [java] at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:621) [java] at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2133) [java] at org.eclipse.pde.internal.ui.tests.macro.MacroManager.play(MacroManager.java:228) [java] at org.eclipse.pde.ui.tests.PDETestCase.playScript(PDETestCase.java:55) [java] at org.eclipse.pde.ui.tests.wizards.plugin.SimplePluginTestCase.testSimplePluginWithoutManifest(SimplePluginTestCase.java:39) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at junit.framework.TestCase.runTest(TestCase.java:154) [java] at junit.framework.TestCase.runBare(TestCase.java:127) [java] at junit.framework.TestResult$1.protect(TestResult.java:106) [java] at junit.framework.TestResult.runProtected(TestResult.java:124) [java] at junit.framework.TestResult.run(TestResult.java:109) [java] at junit.framework.TestCase.run(TestCase.java:118) [java] at junit.framework.TestSuite.runTest(TestSuite.java:208) [java] at junit.framework.TestSuite.run(TestSuite.java:203) [java] at junit.framework.TestSuite.runTest(TestSuite.java:208) [java] at junit.framework.TestSuite.run(TestSuite.java:203) [java] at junit.framework.TestSuite.runTest(TestSuite.java:208) [java] at junit.framework.TestSuite.run(TestSuite.java:203) [java] at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:313) [java] at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:199) [java] at org.eclipse.test.UITestApplication$3.run(UITestApplication.java:188) [java] at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) [java] at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:118) [java] at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2755) [java] at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2475) [java] at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1570) [java] at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534) [java] at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:306) [java] at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) [java] at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) [java] at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:131) [java] at org.eclipse.test.UITestApplication.run(UITestApplication.java:58) [java] at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228) [java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) [java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:156) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at org.eclipse.core.launcher.Main.invokeFramework(Main.java:319) [java] at org.eclipse.core.launcher.Main.basicRun(Main.java:272) [java] at org.eclipse.core.launcher.Main.run(Main.java:951) [java] at org.eclipse.core.launcher.Main.main(Main.java:935)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPartReference.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/IEditorPartTest.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/IViewPartTest.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/IWorkbenchPartTest.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/MockPart.java