Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001833graphvizCircopublic2010-03-09 00:062011-04-28 04:03
ReporterKevin Hunter 
Assigned Toerg 
PlatformOSx86-Linux-Ubuntu KarmicOS Version
Summary0001833: circo: failure to create cairo surface: out of memory

This looks related to bug 0001439 ( [^]).

Here's how I recreate it:
$ circo -Tpng > image.png
circo: failure to create cairo surface: out of memory
Segmentation fault

'' contains 250 nodes, and 510 edges.

My machine has 4G of memory, but I circo doesn't appear to use more than a small amount of memory (as reported by ps waux | grep circo):

(Virtual, Resident, Shared) = (96056, 7688, 4132)

Some perhaps pertinent info:

$ dot -V; circo -V
dot - Graphviz version 2.20.2 (Wed Sep 16 11:12:21 UTC 2009)
circo - Graphviz version 2.20.2 (Wed Sep 16 11:12:21 UTC 2009)

$ uname -a
Linux hani 2.6.31-19-generic 0000056-Ubuntu SMP Thu Jan 28 02:39:34 UTC 2010 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID- Ubuntu
Description- Ubuntu 9.10
Release- 9.10
Codename- karmic
Additional Information

The main problem is that the drawing is too large, so when you try to create a bitmap, you run out of memory.
The bug [^]

was due to a layout problem error, which caused the large size. In your case, the layout is working correctly. Except
for a few nodes, your graph is one, large biconnected component, so all of these nodes will be placed on a circle made
large enough for the labels not to overlap. As the biconnected component is large, you get a very large circle. The drawing
is roughly 7 x 7 meters.

You can try a different layout, or make the nodes have shape=point, or use the size attribute to scale the drawing down.
TagsNo tags attached.
STATUS-COMMENTFixed (12 Mar 2010)
VERSION     2.20.2
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