Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000749graphvizDotpublic2007-07-18 12:592011-04-28 04:03
ReporterCyril Brulebois 
Assigned Toerg 
PlatformOS*-*-OS Version
Summary0000749: Largish labels cause undefined output

I've just received a (quite well documented) bugreport[1] with an
example file[2], leading to a dot crash when using -Tpng:
| gd warning: product of memory allocation multiplication would
| exceed INT_MAX, failing operation gracefully
| Error: gdImageCreate returned NULL. Malloc problem?

Other behaviours are detailed in the bugreport (broken PS or SVG

 1. [^]
 2. [^]

After some tests, it appears to me that (at least in the PNG case, that
is the only one I tested, so as to minimize combinatory explosion), some
labels are too large, and when reducing both ``Catapulse Battery'' and
``Strange Particles'' by two characters, everything goes well.

Tested on:
  GNU/Linux, i386, graphviz 2.12 [output with -v attached]

Similar behaviour (different error message, but same cause apparently)
observed on:
  GNU/kFreeBSD, i386, graphviz-2.13.20070712.2001

I'm not sure whether gd is at fault, or whether its use by graphviz is,
or whether it is unrelated. Just in case it matters, graphviz 2.12 (not
the former one) depends on the following package: libgd2-xpm.
Additional Information

[erg] The problem is related to setting ratio. Coordinates are generated
too big to be represented.

[erg] This is the same as bug 456.
The graph ends up with coordinates of INTMAX, which can cause all sorts of bad things to happen.
This is a really subtle bug with no nice solution, though I suppose we should put in some fix.

TagsNo tags attached.
STATUS-COMMENTFixed (11 Oct 2007)
VERSION     2.13
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => erg

MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker