Community
Participate
Working Groups
The following incident was reported via the automated error reporting: code: 0 plugin: org.eclipse.ui_3.107.0.v20140911-1616 message: Unhandled event loop exception fingerprint: 7683c0cf exception class: java.lang.IllegalArgumentException exception message: Argument not valid number of children: 0 java.lang.IllegalArgumentException: Argument not valid at org.eclipse.swt.graphics.GC.setFont(GC.java:4407) at org.eclipse.draw2d.FigureUtilities.setFont(FigureUtilities.java:363) at org.eclipse.draw2d.FigureUtilities.getFontMetrics(FigureUtilities.java:59) at org.eclipse.gmf.tooling.runtime.directedit.locator.TextCellEditorLocator.relocate(TextCellEditorLocator.java:31) at org.eclipse.gef.tools.DirectEditManager.placeCellEditor(DirectEditManager.java:347) at org.eclipse.gef.tools.DirectEditManager.access$1(DirectEditManager.java:346) at org.eclipse.gef.tools.DirectEditManager$1.ancestorMoved(DirectEditManager.java:269) at org.eclipse.draw2d.AncestorHelper.fireAncestorMoved(AncestorHelper.java:104) at org.eclipse.draw2d.AncestorHelper.figureMoved(AncestorHelper.java:91) at org.eclipse.draw2d.Figure.fireFigureMoved(Figure.java:493) at org.eclipse.draw2d.Figure.translate(Figure.java:1837) at org.eclipse.draw2d.Figure.primTranslate(Figure.java:1251) at org.eclipse.draw2d.Figure.translate(Figure.java:1836) at org.eclipse.draw2d.Figure.primTranslate(Figure.java:1251) at org.eclipse.draw2d.Figure.translate(Figure.java:1836) at org.eclipse.draw2d.Figure.primTranslate(Figure.java:1251) at org.eclipse.draw2d.Figure.setBounds(Figure.java:1512) at org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure$PackageLayoutManager.layout(PackageFigure.java:106) at org.eclipse.draw2d.Figure.layout(Figure.java:1093) at org.eclipse.draw2d.Figure.validate(Figure.java:1896) at org.eclipse.draw2d.Figure.validate(Figure.java:1898) at org.eclipse.draw2d.Figure.validate(Figure.java:1898) at org.eclipse.gmf.runtime.diagram.ui.figures.BorderedNodeFigure.validate(BorderedNodeFigure.java:262) at org.eclipse.draw2d.Figure.validate(Figure.java:1898) at org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemsAwareFreeFormLayer.validate(BorderItemsAwareFreeFormLayer.java:183) at org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart$1.validate(DiagramEditPart.java:157) at org.eclipse.draw2d.Figure.validate(Figure.java:1898) at org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemsAwareFreeFormLayer.validate(BorderItemsAwareFreeFormLayer.java:183) at org.eclipse.draw2d.Figure.validate(Figure.java:1898) at org.eclipse.draw2d.Figure.validate(Figure.java:1898) at org.eclipse.draw2d.Figure.validate(Figure.java:1898) at org.eclipse.draw2d.FreeformViewport$FreeformViewportLayout.calculatePreferredSize(FreeformViewport.java:25) at org.eclipse.draw2d.AbstractLayout.getPreferredSize(AbstractLayout.java:110) at org.eclipse.draw2d.AbstractHintLayout.getPreferredSize(AbstractHintLayout.java:90) at org.eclipse.draw2d.Figure.getPreferredSize(Figure.java:807) at org.eclipse.draw2d.ScrollPaneSolver.solve(ScrollPaneSolver.java:82) at org.eclipse.draw2d.FigureCanvas.layoutViewport(FigureCanvas.java:325) at org.eclipse.draw2d.FigureCanvas.access$4(FigureCanvas.java:323) at org.eclipse.draw2d.FigureCanvas$3.notifyValidating(FigureCanvas.java:292) at org.eclipse.draw2d.UpdateManager.fireValidating(UpdateManager.java:143) at org.eclipse.draw2d.DeferredUpdateManager.performValidation(DeferredUpdateManager.java:217) at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer$ToggleUpdateManager.performValidation(DiagramGraphicalViewer.java:116) at org.eclipse.draw2d.DeferredUpdateManager.paint(DeferredUpdateManager.java:167) at org.eclipse.draw2d.LightweightSystem.paint(LightweightSystem.java:203) at org.eclipse.draw2d.LightweightSystem$2.handleEvent(LightweightSystem.java:110) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1070) at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1491) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4683) at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5038) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(OS.java:-2) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:637) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:580) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:141) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(null:-2) at sun.reflect.NativeMethodAccessorImpl.invoke(null:-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(null:-1) at java.lang.reflect.Method.invoke(null:-1) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438) General Information: reported-by: Matteo Merialdo anonymous-id: 6a779720-b831-3b0c-944e-0fcde9995424 eclipse-build-id: 4.5.0.I20140918-0330 eclipse-product: org.eclipse.epp.package.modeling.product operating system: Windows8 6.2.0 (x86_64) - win32 jre-version: 1.7.0_51-b13 The following plug-ins were present on the execution stack (*): 1. org.eclipse.core.databinding.observable_1.4.1.v20140910-2107 2. org.eclipse.core.databinding_1.4.100.v20140910-2107 3. org.eclipse.core.runtime_3.10.0.v20140724-1132 4. org.eclipse.draw2d_3.10.0.201409290206 5. org.eclipse.e4.ui.workbench_1.2.0.v20140905-1352 6. org.eclipse.e4.ui.workbench.swt_0.12.100.v20140908-1525 7. org.eclipse.equinox.app_1.3.200.v20130910-1609 8. org.eclipse.equinox.launcher_1.3.0.v20140415-2008 9. org.eclipse.gef_3.10.0.201409290206 10. org.eclipse.gmf.runtime.diagram.ui_1.8.0.201409241816 11. org.eclipse.gmf_1.7.0.201409241816 12. org.eclipse.gmf.tooling.runtime_3.2.0.201409171321 13. org.eclipse.papyrus.uml.diagram.common_1.0.1.v201409170932 14. org.eclipse.swt_3.104.0.v20140916-1012 15. org.eclipse.ui_3.107.0.v20140911-1616 16. org.eclipse.ui.ide.application_1.0.600.v20140909-1818 17. org.eclipse.ui.ide_3.10.100.v20140905-0917 Please note that: * Messages, stacktraces, and nested status objects may be shortened. * Bug fields like status, resolution, and whiteboard are sent back to reporters. * The list of present bundles and their respective versions was calculated by package naming heuristics. This may or may not reflect reality. Other Resources: * Report: https://dev.eclipse.org/recommenders/committers/confess/#/problems/54c4ef97bee810030da07173 * Manual: https://dev.eclipse.org/recommenders/community/confess/#/guide Thank you for your assistance. Your friendly error-reports-inbox. This bug was created on behalf of remi.schnekenburger@cea.fr.
To be confirmed by Mickael.
Can you confirm the version of Papyrus (1.0.0). Thanks.
(In reply to Mickael ADAM from comment #2) > Can you confirm the version of Papyrus (1.0.0). IIRC this was papyrus 1.1.0 (1.0.0 didn't have automated error reporting, right?)
I don't know but on the report there is: The following plug-ins were present on the execution stack (*): 13. org.eclipse.papyrus.uml.diagram.common_1.0.1.v201409170932 More PackageFigure have been refactor on mars and PackageLayoutManager doesn't exist anymore on it: org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure$PackageLayoutManager.layout(PackageFigure.java:106) The error may come from 1.0 version of papyrus installed on a Mars Eclipse.
(In reply to Mickael ADAM from comment #4) > I don't know but on the report there is: > > The following plug-ins were present on the execution stack (*): > 13. org.eclipse.papyrus.uml.diagram.common_1.0.1.v201409170932 > > More PackageFigure have been refactor on mars and PackageLayoutManager > doesn't exist anymore on it: > > org.eclipse.papyrus.uml.diagram.common.figure.node. > PackageFigure$PackageLayoutManager.layout(PackageFigure.java:106) > > The error may come from 1.0 version of papyrus installed on a Mars Eclipse. Hmm, it seems like the incident reported here is not originating from myself (looking at the reported by), although the reason I'm cc:ed on this one is probably since I had at least something very similar... But so: ignore my previous comment with the version info, since the stack trace is not mine...
(In reply to Mickael ADAM from comment #4) > I don't know but on the report there is: > > The following plug-ins were present on the execution stack (*): > 13. org.eclipse.papyrus.uml.diagram.common_1.0.1.v201409170932 > > More PackageFigure have been refactor on mars and PackageLayoutManager > doesn't exist anymore on it: > > org.eclipse.papyrus.uml.diagram.common.figure.node. > PackageFigure$PackageLayoutManager.layout(PackageFigure.java:106) > > The error may come from 1.0 version of papyrus installed on a Mars Eclipse. I can now confirm that I "reproduced" this with the latest mars nightly build...
Can you give me a use case to reproduce the bug and the stackTrace, because the NPE describe here can't be from mars since PackageFigure$PackageLayoutManager doesn't exist anymore.
(In reply to Mickael ADAM from comment #7) > Can you give me a use case to reproduce the bug and the stackTrace, because > the NPE describe here can't be from mars since > PackageFigure$PackageLayoutManager doesn't exist anymore. Use case: I'll try to keep an eye on it (unfortunately I get so many exceptions/error windows that it would be a full time job analysing them :-( Stacktrace from my .log file java.lang.IllegalArgumentException: Argument not valid at org.eclipse.swt.SWT.error(SWT.java:4472) at org.eclipse.swt.SWT.error(SWT.java:4406) at org.eclipse.swt.SWT.error(SWT.java:4377) at org.eclipse.swt.graphics.GC.setFont(GC.java:3405) at org.eclipse.draw2d.FigureUtilities.setFont(FigureUtilities.java:363) at org.eclipse.draw2d.FigureUtilities.getFontMetrics(FigureUtilities.java:59) at org.eclipse.draw2d.text.FlowUtilities.getAverageCharWidth(FlowUtilities.java:86) at org.eclipse.gmf.runtime.draw2d.ui.text.FlowUtilitiesEx.getAverageCharWidth(FlowUtilitiesEx.java:50) at org.eclipse.draw2d.text.FlowUtilities.wrapFragmentInContext(FlowUtilities.java:227) at org.eclipse.draw2d.text.ParagraphTextLayout.layout(ParagraphTextLayout.java:194) at org.eclipse.draw2d.text.FlowFigureLayout.layout(FlowFigureLayout.java:111) at org.eclipse.draw2d.Figure.layout(Figure.java:1093) at org.eclipse.draw2d.Figure.validate(Figure.java:1896) at org.eclipse.draw2d.text.FlowContainerLayout.layoutChildren(FlowContainerLayout.java:114) at org.eclipse.draw2d.text.FlowContainerLayout.layout(FlowContainerLayout.java:100) at org.eclipse.draw2d.text.FlowFigureLayout.layout(FlowFigureLayout.java:111) at org.eclipse.draw2d.Figure.layout(Figure.java:1093) at org.eclipse.draw2d.Figure.validate(Figure.java:1896) at org.eclipse.draw2d.text.BlockFlow.validate(BlockFlow.java:314) at org.eclipse.draw2d.text.FlowContainerLayout.layoutChildren(FlowContainerLayout.java:114) at org.eclipse.draw2d.text.FlowContainerLayout.layout(FlowContainerLayout.java:100) at org.eclipse.draw2d.text.FlowFigureLayout.layout(FlowFigureLayout.java:111) at org.eclipse.draw2d.Figure.layout(Figure.java:1093) at org.eclipse.draw2d.Figure.validate(Figure.java:1896) at org.eclipse.draw2d.text.BlockFlow.validate(BlockFlow.java:314) at org.eclipse.draw2d.text.FlowPage.validate(FlowPage.java:150) at org.eclipse.draw2d.text.FlowPage.getPreferredSize(FlowPage.java:85) at org.eclipse.draw2d.ToolbarLayout.getChildPreferredSize(ToolbarLayout.java:225) at org.eclipse.draw2d.ToolbarLayout.calculateChildrenSize(ToolbarLayout.java:93) at org.eclipse.draw2d.ToolbarLayout.calculatePreferredSize(ToolbarLayout.java:183) at org.eclipse.draw2d.AbstractLayout.getPreferredSize(AbstractLayout.java:110) at org.eclipse.draw2d.AbstractHintLayout.getPreferredSize(AbstractHintLayout.java:90) at org.eclipse.draw2d.Figure.getPreferredSize(Figure.java:807) at org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure.getPreferredSize(DefaultSizeNodeFigure.java:76) at org.eclipse.draw2d.StackLayout.calculatePreferredSize(StackLayout.java:72) at org.eclipse.draw2d.AbstractLayout.getPreferredSize(AbstractLayout.java:110) at org.eclipse.draw2d.AbstractHintLayout.getPreferredSize(AbstractHintLayout.java:90) at org.eclipse.draw2d.Figure.getPreferredSize(Figure.java:807) at org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure.getPreferredSize(DefaultSizeNodeFigure.java:76) at org.eclipse.gmf.runtime.diagram.ui.figures.BorderedNodeFigure.getPreferredSize(BorderedNodeFigure.java:182) at org.eclipse.gmf.runtime.diagram.ui.layout.FreeFormLayoutEx.layout(FreeFormLayoutEx.java:45) at org.eclipse.draw2d.Figure$LayoutNotifier.layout(Figure.java:1976) at org.eclipse.draw2d.Figure.layout(Figure.java:1093) at org.eclipse.draw2d.Figure.validate(Figure.java:1896) at org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemsAwareFreeFormLayer.validate(BorderItemsAwareFreeFormLayer.java:183) at org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart$1.validate(DiagramEditPart.java:157) at org.eclipse.draw2d.Figure.validate(Figure.java:1898) at org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemsAwareFreeFormLayer.validate(BorderItemsAwareFreeFormLayer.java:183) at org.eclipse.draw2d.Figure.validate(Figure.java:1898) at org.eclipse.draw2d.Figure.validate(Figure.java:1898) at org.eclipse.draw2d.Figure.validate(Figure.java:1898) at org.eclipse.draw2d.FreeformViewport$FreeformViewportLayout.calculatePreferredSize(FreeformViewport.java:25) at org.eclipse.draw2d.AbstractLayout.getPreferredSize(AbstractLayout.java:110) at org.eclipse.draw2d.AbstractHintLayout.getPreferredSize(AbstractHintLayout.java:90) at org.eclipse.draw2d.Figure.getPreferredSize(Figure.java:807) at org.eclipse.draw2d.ScrollPaneSolver.solve(ScrollPaneSolver.java:82) at org.eclipse.draw2d.FigureCanvas.layoutViewport(FigureCanvas.java:325) at org.eclipse.draw2d.FigureCanvas.access$4(FigureCanvas.java:323) at org.eclipse.draw2d.FigureCanvas$3.notifyValidating(FigureCanvas.java:292) at org.eclipse.draw2d.UpdateManager.fireValidating(UpdateManager.java:143) at org.eclipse.draw2d.DeferredUpdateManager.performValidation(DeferredUpdateManager.java:217) at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer$ToggleUpdateManager.performValidation(DiagramGraphicalViewer.java:116) at org.eclipse.draw2d.DeferredUpdateManager.paint(DeferredUpdateManager.java:167) at org.eclipse.draw2d.LightweightSystem.paint(LightweightSystem.java:203) at org.eclipse.draw2d.LightweightSystem$2.handleEvent(LightweightSystem.java:110) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1499) at org.eclipse.swt.widgets.Control.drawWidget(Control.java:1244) at org.eclipse.swt.widgets.Canvas.drawWidget(Canvas.java:166) at org.eclipse.swt.widgets.Widget.drawRect(Widget.java:765) at org.eclipse.swt.widgets.Canvas.drawRect(Canvas.java:161) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5670) at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method) at org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Display.java:5051) at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5432) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSApplication.nextEventMatchingMask(NSApplication.java:94) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3692) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608) at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
Reproduced today using Neon nightly. It occurred when I deleted the text from a rectangle (ie. a graphical element, not a model element) from a diagram
(In reply to Klaas Gadeyne from comment #9) > Reproduced today using Neon nightly. It occurred when I deleted the text > from a rectangle (ie. a graphical element, not a model element) from a > diagram Interesting enough, even with the release of oxygen, this seems to be the top contender in the AERI list of active problems last month... (See email dd. 23 October, https://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg04187.html )