Skip Menu |

This queue is for tickets about the Math-Geometry-Delaunay CPAN distribution.

Report information
The Basics
Id: 99903
Status: resolved
Worked: 2 hours (120 min)
Priority: 0/
Queue: Math-Geometry-Delaunay

People
Owner: SHELDRAKE [...] cpan.org
Requestors: jbaron770 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: 0.18



Subject: Out of memory
Date: Thu, 30 Oct 2014 11:58:53 +0100
To: bug-Math-Geometry-Delaunay [...] rt.cpan.org
From: Jacques Baron <jbaron770 [...] gmail.com>
Hi, On a win32 system, the memory seems to not be correctly released when a perl script processes several triangulate() functions. Here an example where the same variable $topo is reassigned several times. The script aborts with: Error: Out of memory. use Math::Geometry::Delaunay qw(TRI_CONSTRAINED); my @points = map { [rand(10), rand(10)] } 1..1000; my ($tri, $topo); for my $j (1..10000) { $tri = Math::Geometry::Delaunay->new(); $tri->addPoints(\@points); $topo = $tri->triangulate(TRI_CONSTRAINED, "eBEI"); } Regards. Jacques --------------------------------------------------------------------------------------- The package used is Math-Geometry-Delaunay-0.17 This is perl 5, version 14, subversion 1 (v5.14.1) built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Binary build 1401 [294969] provided by ActiveState http://www.ActiveState.com Built Jun 16 2011 18:54:40 Windows 7 Pro, Service Pack 1 on Dell Latitude E6530