Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic System.OutOfMemoryException: 'Array dimensions exceeded supported range.' (Read 1551 times)
twarchal
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Nov 28th, 2019
System.OutOfMemoryException: 'Array dimensions exceeded supported range.'
Nov 28th, 2019 at 10:07am
Print Post  
Hi Guys,

We are using your software on our application in firm. We have source code so we are able to debug it.

We encountered the bug with creating array in RoutingGrid.cs class. When we insert a big picture inside another big picture the algorithm calculates cols and rows over 20000 (to be specific 20005) which exceeds PathNode array.

I am attaching screen which shows exception. Can you please look at it and advise what can be done ? Thanks in advance

Regards
Tomasz Warchal
  

BugMindFusion.png ( 83 KB | 137 Downloads )
BugMindFusion.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: System.OutOfMemoryException: 'Array dimensions exceeded supported range.'
Reply #1 - Nov 28th, 2019 at 10:24am
Print Post  
Hi,

What's your RoutingOptions.GridSize value? Try setting a larger one, or switching diagram.LinkRouter to a QuickRouter instance.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
twarchal
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Nov 28th, 2019
Re: System.OutOfMemoryException: 'Array dimensions exceeded supported range.'
Reply #2 - Nov 28th, 2019 at 10:57am
Print Post  
Hi Slavcho,

Thanks for reply.

We have Grid size set as 15.118110236220474
We tried to set it to 64 now but it didn't work.

However changing LinkRouter To QuickRouter actually helped:)
Can you explain what is the difference between GridRouter and QuickRouter ? Thanks

Regards.
Tomasz Warchal
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: System.OutOfMemoryException: 'Array dimensions exceeded supported range.'
Reply #3 - Nov 28th, 2019 at 12:42pm
Print Post  
Hi Tomasz,

You have one big diagram then, 300000 by 300000 in WpfPoint measure units? QuickRouter builds a tree of some kind instead of a 2D array, so won't be limited by .NET array size. However it could produce different results than GridRouter, and I guess if your initial developers moved to GridRouter at some point (Quick is default) they liked the results better. Maybe try changing LinkRouter dynamically depending on diagram size.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint