[GRASS-user] traveling salesman problem in air
Markus Neteler
neteler at osgeo.org
Thu Apr 16 07:48:26 EDT 2009
Martina,
On Wed, Apr 15, 2009 at 10:42 PM, Martina Schäfer
<Martina.Schafer at ebc.uu.se> wrote:
> Interesting discussion!! I've created the centroids but unfortunately, the
> visibility network module repeatedly crashed (I am using GRASS 6.4 on Mac
> OS, but tried on Windows XP as well) with the message "out of memory".
The problem has been identified and fixed in 6.4.0svn, 6.5.svn and 7.svn.
It was a memory leak where memory was allocated but not released:
My test: Spearfish, using valgrind:
v.net.visibility input=roads output=graph
Original memory leak:
==3746== LEAK SUMMARY:
==3746== definitely lost: 18,522,763 bytes in 661,297 blocks.
==3746== indirectly lost: 396,532,048 bytes in 991,328 blocks.
After fix:
==16713== LEAK SUMMARY:
==16713== definitely lost: 7,660 bytes in 44 blocks.
==16713== indirectly lost: 3,624 bytes in 8 blocks.
There is still a tiny loss somewhere in the vector library but that's marginal
(and released when the module exits).
Options for you now:
- update and compile from SVN
- ask someone to compile for you :)
- wait for the next release of 6.4.0.
Thanks for reporting this. Ah, please report later if it now works for you.
Best
Markus
More information about the grass-user
mailing list