Absturz von Eclipse: Sensor-Visualisierung über JFreeChart - Save PNG

Description

Absturz von Eclipse, wenn in Sensor-Visualisierung im JFreeChart-Kontext-Menü (Pie Chart) "Save as PNG" gewählt wird.

Studis nutzen save as PNG zum Speichern von Bildern.

Fehlermeldung:
Error while informing user about event loop exception:
org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:3589)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at org.eclipse.swt.SWT.error(SWT.java:3452)
at org.eclipse.swt.graphics.Image.init(Image.java:1811)
at org.eclipse.swt.graphics.Image.init(Image.java:1936)
at org.eclipse.swt.graphics.Image.<init>(Image.java:490)
at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:289)
at org.eclipse.jface.resource.ImageDescriptor.createResource(ImageDescriptor.java:165)
at org.eclipse.jface.resource.DeviceResourceManager.allocate(DeviceResourceManager.java:56)
at org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceManager.java:88)
at org.eclipse.jface.resource.LocalResourceManager.allocate(LocalResourceManager.java:82)
at org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceManager.java:88)
at org.eclipse.jface.resource.ResourceManager.createImageWithDefault(ResourceManager.java:192)
at org.eclipse.jface.action.ActionContributionItem.updateImages(ActionContributionItem.java:980)
at org.eclipse.jface.action.ActionContributionItem.update(ActionContributionItem.java:724)
at org.eclipse.jface.action.ActionContributionItem.fill(ActionContributionItem.java:332)
at org.eclipse.jface.action.SubContributionItem.fill(SubContributionItem.java:76)
at org.eclipse.jface.action.ToolBarManager.update(ToolBarManager.java:324)
at org.eclipse.ui.internal.ViewPane.updateActionBars(ViewPane.java:449)
at org.eclipse.ui.internal.ViewActionBars.updateActionBars(ViewActionBars.java:59)
at org.eclipse.ui.part.PageBookView.showPageRec(PageBookView.java:981)
at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:748)
at org.eclipse.ui.views.properties.PropertySheet.partActivated(PropertySheet.java:188)
at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:70)
at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:73)
at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171)
at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56)
at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:126)
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3384)
at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2928)
at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:265)
at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:229)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:943)
at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1273)
at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2366)
at org.eclipse.swt.widgets.Widget.wmSetFocus(Widget.java:2176)
at org.eclipse.swt.widgets.Control.WM_SETFOCUS(Control.java:4282)
at org.eclipse.swt.widgets.Tree.WM_SETFOCUS(Tree.java:6366)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3738)
at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5370)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4351)
at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method)
at org.eclipse.swt.widgets.Control.forceFocus(Control.java:963)
at org.eclipse.swt.widgets.Control.setSavedFocus(Control.java:2966)
at org.eclipse.swt.widgets.Decorations.restoreFocus(Decorations.java:819)
at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.java:1625)
at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:1833)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3670)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:291)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1584)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1753)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4351)
at org.eclipse.swt.internal.win32.OS.GetOpenFileNameW(Native Method)
at org.eclipse.swt.internal.win32.OS.GetOpenFileName(OS.java:2506)
at org.eclipse.swt.widgets.FileDialog.open(FileDialog.java:306)
at de.uka.ipd.sdq.sensorframework.visualisation.jfreechartvisualisation.SaveImageAsAction.run(AbstractJFreeChartChart.java:54)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
Dialog open exception:
java.lang.IllegalArgumentException: Argument not valid
at org.eclipse.swt.SWT.error(SWT.java:3547)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at org.eclipse.swt.SWT.error(SWT.java:3452)
at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:419)
at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:281)
at org.eclipse.swt.graphics.Image.getImageData(Image.java:1334)
at org.eclipse.swt.widgets.Decorations.setImages(Decorations.java:977)
at org.eclipse.swt.widgets.Decorations.setImages(Decorations.java:1074)
at org.eclipse.jface.window.Window.configureShell(Window.java:368)
at org.eclipse.jface.dialogs.MessageDialog.configureShell(MessageDialog.java:175)
at org.eclipse.jface.window.Window.createShell(Window.java:497)
at org.eclipse.jface.window.Window.create(Window.java:425)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1081)
at org.eclipse.ui.internal.ide.dialogs.InternalErrorDialog.open(InternalErrorDialog.java:74)
at org.eclipse.ui.internal.ide.IDEWorkbenchErrorHandler.openQuestionDialog(IDEWorkbenchErrorHandler.java:184)
at org.eclipse.ui.internal.ide.IDEWorkbenchErrorHandler.handleException(IDEWorkbenchErrorHandler.java:139)
at org.eclipse.ui.internal.ide.IDEWorkbenchErrorHandler.access$0(IDEWorkbenchErrorHandler.java:131)
at org.eclipse.ui.internal.ide.IDEWorkbenchErrorHandler$1.runInUIThread(IDEWorkbenchErrorHandler.java:106)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:94)
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:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)

Environment

Operating System: All
Platform: All

Activity

Show:
User known
July 14, 2007, 8:18 AM

Die Graphikhandles sind ausgegangen. Da lässt sich wohl nix machen außer als SVG zu speichern...

Assignee

Steffen Becker

Reporter

Klaus Krogmann

External issue URL

Severity

normal

Priority

P1

External issue ID

285