| Summary: | ArithmeticException when moving edge | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Jessy Mallet <jessy.mallet> | ||||||
| Component: | Diagram | Assignee: | Pierre-Charles David <pierre-charles.david> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | maxime.porhel, pierre-charles.david | ||||||
| Version: | 4.1.1 | Keywords: | triaged | ||||||
| Target Milestone: | 5.0.0M7 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows NT | ||||||||
| See Also: |
https://git.eclipse.org/r/95364 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=da27e5da7495599e9766f487666a96369ee79684 |
||||||||
| Whiteboard: | backport | ||||||||
| Bug Depends on: | 485010, 518437 | ||||||||
| Bug Blocks: | 515553, 518439 | ||||||||
| Attachments: |
|
||||||||
|
Description
Jessy Mallet
Created attachment 266404 [details]
Steps to reproduce
This bug seems to be the linked to bogue 485010: https://bugs.eclipse.org/bugs/show_bug.cgi?id=485010 Hi Jessy, Thank your for the detail bug report, I was able to reproduce the issue. Nevertheless, it's not yet in the scope of a future release. Regards, Maxime Here is the stack: Caused by: java.lang.ArithmeticException: / by zero at java.math.BigDecimal.divideAndRound(BigDecimal.java:4106) at java.math.BigDecimal.divide(BigDecimal.java:5183) at java.math.BigDecimal.divide(BigDecimal.java:1561) at org.eclipse.draw2d.geometry.PrecisionGeometry.preciseDivide(PrecisionGeometry.java:48) at org.eclipse.draw2d.geometry.Vector.getAngle(Vector.java:168) at org.eclipse.sirius.diagram.ui.internal.edit.parts.locator.EdgeLabelQuery.getVectorForSegmentMoveCase(EdgeLabelQuery.java:414) at org.eclipse.sirius.diagram.ui.internal.edit.parts.locator.EdgeLabelQuery.calculateNewCenterLocation(EdgeLabelQuery.java:350) at org.eclipse.sirius.diagram.ui.internal.edit.parts.locator.EdgeLabelQuery.calculateGMFLabelOffset(EdgeLabelQuery.java:243) at org.eclipse.sirius.diagram.ui.internal.edit.parts.locator.EdgeLabelLocator.computeOffSet(EdgeLabelLocator.java:125) at org.eclipse.sirius.diagram.ui.internal.edit.parts.locator.EdgeLabelLocator.relocate(EdgeLabelLocator.java:111) at org.eclipse.gmf.runtime.draw2d.ui.internal.figures.DelegatingLayout.layout(DelegatingLayout.java:43) at org.eclipse.draw2d.Figure.layout(Figure.java:1096) at org.eclipse.draw2d.PolylineConnection.layout(PolylineConnection.java:179) at org.eclipse.sirius.diagram.ui.edit.api.part.AbstractDiagramEdgeEditPart$ViewEdgeFigure.layout(AbstractDiagramEdgeEditPart.java:619) New Gerrit change created: https://git.eclipse.org/r/95364 Gerrit change https://git.eclipse.org/r/95364 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=da27e5da7495599e9766f487666a96369ee79684 Fixed by da27e5da7495599e9766f487666a96369ee79684. It does not seem possible/worthwile to develop an automated test for this, so it will be tested manually. Validated with Sirius 5.0.0.201705121003 Verified by Jessy. Available in Sirius 5.0.0, see https://wiki.eclipse.org/Sirius/5.0.0 for details. |