Hi Lars,
I just ran into this issue too.
prTTFont is leaking file handles.
If you start a long process printing many PDFs, and get the pid, then
you can check /proc/*pid-here*/fd and you'll see the same TTF file
opened many times.
I hope you can fix it. For now the only workaround is probably forking
the dirty parts of my scripts process.
-Craig
On Sun Nov 30 13:28:30 2008, elkelund@spray.se wrote:
Show quoted text> Hello,
> I can look at this in a few weeks time. Earlier is unfortunately not
> possible.
> It looks like it is an object of TTFont.pm which needs to be closed or
> destroyed.
> Ether a workaround or some little patch is needed.
> Best Regards
> Lars Lundberg
>
> Thomas Klausner via RT skrev:
> > Fri Nov 28 04:59:46 2008: Request 41287 was acted upon.
> > Transaction: Ticket created by DOMM
> > Queue: PDF-Reuse
> > Subject: It seems that filehandles of TTF files are not closed
> > Broken in: (no value)
> > Severity: Critical
> > Owner: Nobody
> > Requestors: domm@cpan.org
> > Status: new
> > Ticket <URL:
http://rt.cpan.org/Ticket/Display.html?id=41287 >
> >
> >
> > Hi!
> >
> > First, thanks for PDF::Reuse! I'm using it in Business::DPD and it
works
Show quoted text> > quite nice.
> >
> > But today we discovered that it doesn't seem to close files (it
seems
Show quoted text> > only TTF font files), which results in 'to many open files' errors
after
Show quoted text> > some time.
> >
> > Any idea how to fix this?
> >
> > I didn't venture into the source yet, because it might be an easy
fix
Show quoted text> > for you. If you have neither time nor inclination to look into this
> > issue, I might find some time to look myself..
> >
> >
> >
> >