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

Bug 515553

Summary: ArithmeticException when moving edge
Product: [Modeling] Sirius Reporter: Pierre-Charles David <pierre-charles.david>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jessy.mallet, julien.dupont, maxime.porhel, pierre-charles.david
Version: 4.1.1Keywords: triaged
Target Milestone: 4.1.5   
Hardware: PC   
OS: Windows NT   
Whiteboard:
Bug Depends on: 485010, 510851, 518437    
Bug Blocks: 518439    

Description Pierre-Charles David CLA 2017-04-21 03:55:51 EDT
+++ 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 Pierre-Charles David CLA 2017-04-21 03:56:12 EDT
Clone to backport the fix in Sirius 4.1.5.
Comment 2 Pierre-Charles David CLA 2017-04-21 10:18:56 EDT
Fixed by 1f2d538144ca6e03f1e7c16559e1454a2fadb0c7.
Comment 3 Pierre-Charles David CLA 2017-06-15 05:24:14 EDT
Available in Sirius 4.1.5, see https://wiki.eclipse.org/Sirius/4.1.5.