Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 518439

Summary: ArithmeticException when moving edge
Product: [Modeling] Sirius Reporter: Laurent Redor <laurent.redor>
Component: DiagramAssignee: Laurent Redor <laurent.redor>
Status: CLOSED FIXED QA Contact: Guillaume Doux <guillaume.doux>
Severity: normal    
Priority: P3 CC: guillaume.doux, jessy.mallet, julien.dupont, maxime.porhel, pierre-charles.david
Version: 3.1.0Keywords: triaged
Target Milestone: 3.1.9   
Hardware: PC   
OS: Windows NT   
See Also: https://git.eclipse.org/r/99587
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=ece4d8aaeed35b2d153b81fe3f4d9d61f24523a5
Whiteboard:
Bug Depends on: 485010, 510851, 515553, 518437    
Bug Blocks:    
Attachments:
Description Flags
test project none

Description Laurent Redor CLA 2017-06-19 05:10:57 EDT
+++ This bug was initially created as a clone of Bug #515553 +++

+++ This bug was initially created as a clone of Bug #510851 +++

When user try to reconnect target edge and put the cursor on empty area (around 5sec) on diagram with click left always pressed, an exception  "Unhandled event loop exception" appears in errorLog (nothing in console).

You will get the following stack
>org.eclipse.swt.SWTException: Failed to execute >runnable(java.lang.ArithmeticException)
>	....
>Caused by: java.lang.ArithmeticException

Error amso noticed during homologation of 4.1.3


Steps to reproduce: 
> Import the attached project 
> Open the session and the (single) diagram in it. It should show two packages p1 and p2, two classes C1 and C2 and an edge from C1 to C2.
> Try to reconnect the edge from target end on package P1 and then always with click left pressed, put the cursor on empty area between P1 and P2. 

Another Scenario :
> Import the attached project 
> Open the session and the (single) diagram in it. It should show two packages p1 and p2, two classes C1 and C2 and an edge from C1 to C2.
> Try to reconnect the edge from target end on class C1 always with click pressed during 5sec on C1
Comment 1 Eclipse Genie CLA 2017-06-19 10:02:51 EDT
New Gerrit change created: https://git.eclipse.org/r/99587
Comment 3 Laurent Redor CLA 2017-06-30 03:01:19 EDT
Created attachment 269139 [details]
test project
Comment 4 Guillaume Doux CLA 2017-06-30 11:26:57 EDT
Validated with Sirius 3.1.9-S20170627-085227
Comment 5 Pierre-Charles David CLA 2017-07-07 07:20:07 EDT
Available in Sirius 3.1.9, see https://wiki.eclipse.org/Sirius/3.1.9 for details.