On 19.08.2014 11:29, tmramalho wrote:
> Creating multiple graphs in a loop, I get a segmentation fault on mac os x
> (using macports version) after 6 iterations. Example code to replicate bug
>
> import numpy as np
> import graph_tool as gt
>
> for i in xrange(255):
>       edges = np.random.random_integers(0, 20, (2,20))
>       g = gt.Graph()
>       g.add_edge_list(edges)
>       print i
>
> Any ideas what might be causing this?

This is a bug in the memory handling interface with numpy. This has been
fixed now in the git version.

Thanks for spotting this.

Best,
Tiago

-- 
Tiago de Paula Peixoto <[email protected]>

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to