StackoverflowException with circular diagram

Hello,



we are evaluating Aspose.Diagram for our software dependency diagrams.

We have a problem when we use Diagram.Layout with a diagram which has a circular connection between shapes.



Shape 1 -> Shape 2

Shape 2 -> Shape 3

Shape 3 -> Shape 1 // circular connection



When we use LayoutStyle.CompactTree we get a Stackoverflow exception when we call Diagram.Layout.

When we use Layout.FlowChart we get no expcetion but the position of the shapes is not changed.



You can reproduce it directly with the attached VS solution (command line program).



Do you know a workaround for this problem?



Thanks,



Tom

Hi Tom,


Thank you for contacting support. We’re working over your query and will get back to you shortly.

Hi Tom,


Thank you for being patient. I managed to replicate these problems. I have logged them in our issue tracking system as follows:

DIAGRAMNET-50031 - Stack overflow error occurred when laying out shapes in the Compact Tree Style
DIAGRAMNET-50032 - Laying out shapes in the FlowChart, the position of the shapes is not changed

Your request has also been linked to these issues and you will be notified as soon as the significant progress is made. We’re sorry for your inconvenience.

Hi Tom,


We have a good news for you is DIAGRAMNET-50031 has now been resolved and its fix will be included in the next version of Aspose.Diagram for .NET 3.7.0. Its release date is not final yet. We will inform you via this forum thread as soon as the new release is published.

The issues you have found earlier (filed as DIAGRAMNET-50031) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Hi Tom,


Thank you for being patient. We have a good news for you that the issue id DIAGRAMNET-50032 has now been resolved. If there is no issue in the QA phase, then this fix will be included in the next version of Aspose.Diagram for .NET 5.0.0. We’ll inform you via this forum thread as soon as the new release is published.

The issues you have found earlier (filed as DIAGRAMNET-50032) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Hi Tom


From the specifics of ticket id DIAGRAMNET-50032, please add this line using the latest Aspose.Daigram API version 5.0.0.

[.NET, C#]
layoutOptions.LayoutStyle = Aspose.Diagram.AutoLayout.LayoutStyle.FlowChart;

//add this line
layoutOptions.Direction = Aspose.Diagram.AutoLayout.LayoutDirection.TopToBottom;
//add this line
diagram.Layout(layoutOptions);

Please feel free to reply us in case of any confusion or questions.

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.