Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002555graphvizGraph Librariespublic2015-06-18 08:022015-06-18 08:16
Reporterburning 
Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
StatusnewResolutionopen 
Platformvs2013OSwindows 7 64bitOS Version
Summary0002555: memory leak between gvLayout and gvFreeLayout
DescriptionHi!I'm using Graphviz as a library in my win32 program.My issue is when drawing few graphs(less than 1000), it works well.But when the number of graph grows to tens of thousands, the physical memory is used up.My program's execution flow is:
①gvContext()
②Loop:agopen(graphid, Agdirected, 0) -> insert nodes and edges -> gvLayout(gvc, graph, "dot") -> gvRenderFilename(gvc, graph, "svg", filename) -> gvFreeLayout(gvc, graph) -> agclose(graph))
③gvFreeContext(gvc)

Did I make some mistakes?I find that when calling gvLayout, memory usage grows about 10 MB.But it doesn't reduce after calling gvFreeLayout.So,after having drew thousands of graphs, memory usage grows to 2GB, then the program crashes.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSION2.38
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2015-06-18 08:02 burning New Issue


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