Re: [graphviz-interest] Out of memory issue
Greg Michalec <[email protected]> Wed, 28 Jan 2015 09:57:48 -0800
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <[email protected]> |
Hi Hermann - Thanks for looking into this. Would this be considered a bug? I would expect that whatever loop that GV is getting stuck in causing the memory to inflate ought to be limited somehow? I tested this further, and found I could make the graphs work (keeping the curved splines) by changing how I calculate some of the input values, namely: * Not having node width values < 1 * rounding width and penwidth values to 2 decimal places. I'm attaching examples (where I've also removed most of the superfluous attributes). foo.dot eats memory, but bar.dot works correctly. The only differences between the two are the width and penwidth values. --greg On 01/28/2015 01:13 AM, [email protected] wrote: > Hi Greg, > > the reason for hanging neato layout engine is 'splines="curved"'. > After commenting out that line (and correcting "layoutEngine" to > "layout") everything works fine. > > 6 URL shortener failed badly to shorten 104KB URL, but "manually" this > is no problem at all! > Here you can see/play with the modified graph: > https://stamm-wilbrandt.de/en/104KB.URL.redirect … > > "1000,1000" size is really big, you have to scroll a lot to see something. > > Since this online tool is based on Viz.js and that does not allow for > images there are a lot of errors logged in browser JavaScript console. > But the layout is done without issues besides that. > > Hermann. > > Quoting Greg Michalec <[email protected]>: > >> Hi - >> I'm having a problem running neato on the attached DOT file where the >> process begins consuming ram (on the order of GBs) until it is killed by >> the OOM process. It's strange, since I've processed similar dot files >> without issue. I've tested this with a few different versions of >> graphviz, the most recent being 2.38.0-5ubuntu0.1 - I'm running Ubuntu >> 14.10. Does anyone have ideas on what's going on, or suggestions on how >> to debug this? The last few lines of "neato -vvvvv foo.dot" before it >> hangs are: >> Calculating shortest paths: 0.00 sec >> Setting initial positions: 0.00 sec: 0.00 sec >> Setting up stress function: 0.00 sec >> Solving model: 0.749 >> final e = 0.000000 2 iterations 0.00 sec >> Adjusting _neato_cc3 using Voronoi >> Node separation: add=1 (4.000000,4.000000) >> Edge separation: add=1 (3.200000,3.200000) >> Creating edges using line segments >> step size = 136 >> >> Thanks for any help! >> >> --greg michalec > > > _______________________________________________ > [email protected] > http://lists.research.att.com/mailman/listinfo/graphviz-interest _______________________________________________ [email protected] http://lists.research.att.com/mailman/listinfo/graphviz-interest
foo.dot
(application/msword-template, 21 KB) - not displayed
bar.dot
(application/msword-template, 19 KB) - not displayed