19 Aug
2014
19 Aug
'14
7:43 p.m.
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 <tiago@skewed.de>