|Anonymous | Login||2017-11-19 16:26 EST|
|Main | My View | View Issues | Change Log | Roadmap | My Account|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001350||graphviz||Neato||public||2008-07-02 04:51||2011-04-28 04:03|
|Platform||OS||x86-Linux-debian 4.0 kernel 2.6.||OS Version|
|Summary||0001350: INT_MAX exceeded|
I have a "big" dot-file (about 50000 edges) and when I run this command :
$ neato -Tjpg graph7-52600.dot -o graph7-52600-neato.jpg &
The program stops some minutes after with a empty output file and this error :
gd warning: product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
I know that there are very many edges, but in some weeks, I will have very bigger dot-file with about 1.000.000 edges.
So if you can fix it, it will be very helpful for me !
I think it is because my computer is a 32-bit one and I have too many nodes/edges for the int type.
Maybe (I am not sure) replacing the wrong int by long could help.
Sorry, the problem is not (directly) in the size of your graph but in the size of the final image being produced.
It would appear that your final image would require more than 2^32 bytes.
Graphviz relies on libgd to produce jpg output. Thus, to get around this problem, you could:
- rebuild libgd on your machine to use 64 bit ints, then rebuild neato.
- use a non-bitmap format like postscript or SVG
- shrink your final drawing using the size attribute.
Try running just
neato graph7-52600.dot > out.dot
The out.dot file will have a bb attribute indicating how large the drawing is in points.
You can then decide how much you would like to scale the drawing down, and run
neato -n2 -T... -Gsize=...
to get the output format and size you want.
|Tags||No tags attached.|
|2011-04-28 04:03||user1||New Issue|
|2011-04-28 04:03||user1||Assigned To||=> user1|
|MantisBT 1.2.5[^] Copyright © 2000 - 2011 MantisBT Group|