Project: Eclipse_Platform_UI
Bug 110243 heap monitor causes errors during tests
Reported: 2005-09-21 15:38:35 | Status: verified fixed

While running the test suite that includes ImportExistingTest and the heap monitor enabled, there were a number of exceptions. java.lang.IllegalArgumentException: Argument not valid at org.eclipse.swt.SWT.error(SWT.java:3235) at org.eclipse.swt.SWT.error(SWT.java:3174) at org.eclipse.swt.SWT.error(SWT.java:3145) at org.eclipse.swt.graphics.GC.setBackground(GC.java:3321) at org.eclipse.ui.internal.HeapStatus.paintCompositeMaxUnknown(HeapStatus.java:339) at org.eclipse.ui.internal.HeapStatus.paintComposite(HeapStatus.java:312) at org.eclipse.ui.internal.HeapStatus.access$13(HeapStatus.java:308) at org.eclipse.ui.internal.HeapStatus$3.handleEvent(HeapStatus.java:138) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:771) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:792) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:778) at org.eclipse.swt.widgets.Composite.XExposure(Composite.java:1210) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1053) at org.eclipse.swt.widgets.Display.windowProc(Display.java:3640) at org.eclipse.swt.internal.motif.OS._XtDispatchEvent(Native Method) at org.eclipse.swt.internal.motif.OS.XtDispatchEvent(OS.java:3770) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2744) at org.eclipse.ui.tests.util.UITestCase.processEvents(UITestCase.java:222) at org.eclipse.ui.tests.util.UITestCase.doTearDown(UITestCase.java:216) at org.eclipse.ui.tests.datatransfer.ImportOperationTest.doTearDown(ImportOperationTest.java:113) at org.eclipse.ui.tests.util.UITestCase.tearDown(UITestCase.java:203) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:57) at org.eclipse.pde.internal.junit.runtime.UITestApplication$1.run(UITestApplication.java:99) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3037) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2751) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1755) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1719) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:368) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106) at org.eclipse.pde.internal.junit.runtime.UITestApplication.run(UITestApplication.java:39) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:377) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338) at org.eclipse.core.launcher.Main.basicRun(Main.java:282) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) and java.lang.IllegalArgumentException: Argument not valid at org.eclipse.swt.SWT.error(SWT.java:3235) at org.eclipse.swt.SWT.error(SWT.java:3174) at org.eclipse.swt.SWT.error(SWT.java:3145) at org.eclipse.swt.graphics.GC.setBackground(GC.java:3321) at org.eclipse.ui.internal.HeapStatus.paintCompositeMaxUnknown(HeapStatus.java:339) at org.eclipse.ui.internal.HeapStatus.paintComposite(HeapStatus.java:312) at org.eclipse.ui.internal.HeapStatus.access$13(HeapStatus.java:308) at org.eclipse.ui.internal.HeapStatus$3.handleEvent(HeapStatus.java:138) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:771) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:792) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:778) at org.eclipse.swt.widgets.Composite.XExposure(Composite.java:1210) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1053) at org.eclipse.swt.widgets.Display.windowProc(Display.java:3640) at org.eclipse.swt.internal.motif.OS._XtDispatchEvent(Native Method) at org.eclipse.swt.internal.motif.OS.XtDispatchEvent(OS.java:3770) at org.eclipse.swt.widgets.Display.update(Display.java:3591) at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1561) at org.eclipse.swt.widgets.Shell.open(Shell.java:1091) at org.eclipse.jface.window.Window.open(Window.java:783) at org.eclipse.ui.internal.WorkbenchWindow.open(WorkbenchWindow.java:700) at org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Workbench.java:680) at org.eclipse.ui.internal.Workbench.access$13(Workbench.java:662) at org.eclipse.ui.internal.Workbench$18.run(Workbench.java:1442) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.Workbench.openWorkbenchWindow(Workbench.java:1439) at org.eclipse.ui.tests.util.UITestCase.openTestWindow(UITestCase.java:238) at org.eclipse.ui.tests.util.UITestCase.openTestWindow(UITestCase.java:230) at org.eclipse.ui.tests.datatransfer.ImportOperationTest.testImportSource(ImportOperationTest.java:151) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:57) at org.eclipse.pde.internal.junit.runtime.UITestApplication$1.run(UITestApplication.java:99) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3037) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2751) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1755) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1719) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:368) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106) at org.eclipse.pde.internal.junit.runtime.UITestApplication.run(UITestApplication.java:39) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:377) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338) at org.eclipse.core.launcher.Main.basicRun(Main.java:282) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) PW

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/HeapStatus.java