Skip Menu |

This queue is for tickets about the PDF-Create CPAN distribution.

Report information
The Basics
Id: 68164
Status: resolved
Priority: 0/
Queue: PDF-Create

People
Owner: Nobody in particular
Requestors: vollrath111 [...] comcast.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.06
Fixed in: (no value)



Subject: Expunge data as part of $pdf->close;
Date: Fri, 13 May 2011 02:04:56 +0000 (UTC)
To: bug-PDF-Create [...] rt.cpan.org
From: vollrath111 [...] comcast.net
To whom it may concern: It would be greatly helpful if $pdf->close would use perl's delete to expunge all the data structures supporting the "current" PDF (the $pdf referent and all its parts ) , thus free-ing up sufficient memory to handle the "next" pdf.  In my application I need to create a series of PDF files (printable invoices, one pdf per invoice) from a large file that contains data for many invoices.  On my laptop with 2GB, by the fifth invoice I get  an error abort  --  !Out of Memory. A quick patch would be ideal (would a return email be too much to ask?). Thanks, Al Vollrath 312-282-8820 P.S.: Great package--easy to use and fairly fast.
On Thu May 12 22:05:10 2011, vollrath111@comcast.net wrote: Show quoted text
> It would be greatly helpful if $pdf->close would use perl's delete to > expunge all the data structures supporting the "current" PDF (the > $pdf referent and all its parts ) , thus free-ing up sufficient > memory to handle the "next" pdf. 
Hi Al, I understand the problem, but don't have a fix handy. Could you provide a patch for a solution for the problem ? Markus
Subject: Re: [rt.cpan.org #68164] Expunge data as part of $pdf->close;
Date: Fri, 13 May 2011 19:56:40 +0000 (UTC)
To: bug-PDF-Create [...] rt.cpan.org
From: vollrath111 [...] comcast.net
Markus, Unfortunately, I don't have know how to do that, hence the request.  Sorry. Al Show quoted text
----- Original Message ----- From: "Markus Baertschi via RT" <bug-PDF-Create@rt.cpan.org> To: vollrath111@comcast.net Sent: Friday, May 13, 2011 5:08:50 AM Subject: [rt.cpan.org #68164] Expunge data as part of $pdf->close; <URL: https://rt.cpan.org/Ticket/Display.html?id=68164 > On Thu May 12 22:05:10 2011, vollrath111@comcast.net wrote:
> It would be greatly helpful if $pdf->close would use perl's delete to >    expunge all the data structures supporting the "current" PDF (the >    $pdf referent and all its parts ) , thus free-ing up sufficient >    memory to handle the "next" pdf. 
Hi Al, I understand the problem, but don't have a fix handy. Could you provide a patch for a solution for the problem ? Markus
From: chris_jack [...] msn.com
So you're aware, I've reproduced this and shown how the problem is happening with the Test::LeakTrace module. I've put a new bug report in so maybe it will get sorted out? Regards Chris On Thu May 12 22:05:10 2011, vollrath111@comcast.net wrote: Show quoted text
> > > To whom it may concern: > > > > It would be greatly helpful if $pdf->close would use perl's delete to > expunge all the data structures supporting the "current" PDF (the $pdf > referent and all its parts ) , thus free-ing up sufficient memory to > handle the "next" pdf. > > > > In my application I need to create a series of PDF files (printable > invoices, one pdf per invoice) from a large file that contains data > for many invoices.  On my laptop with 2GB, by the fifth invoice I get >  an error abort  --  !Out of Memory. > > > > A quick patch would be ideal (would a return email be too much to > ask?). > > Thanks, > > Al Vollrath > > 312-282-8820 > > > > P.S.: Great package--easy to use and fairly fast.
at least some of the memory leaking has been fixed in the next version of the module.