Re: [graphviz-interest] pseudo-random segfault when using raster image renderers
John Ellson <[email protected]> Tue, 25 Feb 2014 10:39:58 -0500
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <[email protected]> |
On 02/24/2014 10:18 PM, Sparr wrote: > Progress! > > lib/common/shapes.c:2887 > > name = ND_shape(n)->name; > > This returns a filename 99.9% of the time and all is well. It > occasionally returns an empty string, which cascades down through the > later function calls leading to a null pointer (specifically > gvusershape_find returns a usershape_t with the file field equal to > zero instead of a valid file pointer) and later to a dereference of > that pointer in flockfile. > > However, at this point I'm stuck. Trying to follow the data structures > behind Agnode_s and Agobj_t and the ND_shape macro have left me > confused and lost. I am hopeful that someone on this list might be > able to give me a nudge in the right direction from here. > _______________________________________________ > [email protected] > http://lists.research.att.com/mailman/listinfo/graphviz-interest Ok this explains the crash ... Can you try bisecting the graph to see if it is a particular image causing problems, or is it really random? Images are read twice, once during layout to determine the image size (from reading just the first few bytes of the file), and then again during rendering to copy and convert the image into the output format. The FILE* is left open between the two uses. I'm wondering if you are hitting a limit on open files? Can you send me your graph and images? John _______________________________________________ [email protected] http://lists.research.att.com/mailman/listinfo/graphviz-interest