Skip Menu |

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

Report information
The Basics
Id: 41287
Status: resolved
Priority: 0/
Queue: PDF-Reuse

People
Owner: cnighs [...] cpan.org
Requestors: domm [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: 0.36_03



Subject: It seems that filehandles of TTF files are not closed
Hi! First, thanks for PDF::Reuse! I'm using it in Business::DPD and it works quite nice. But today we discovered that it doesn't seem to close files (it seems only TTF font files), which results in 'to many open files' errors after some time. Any idea how to fix this? I didn't venture into the source yet, because it might be an easy fix for you. If you have neither time nor inclination to look into this issue, I might find some time to look myself..
Subject: Re: [rt.cpan.org #41287] It seems that filehandles of TTF files are not closed
Date: Sun, 30 Nov 2008 18:27:53 +0000
To: bug-PDF-Reuse [...] rt.cpan.org
From: Lars Lundberg <elkelund [...] spray.se>
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: Show quoted text
> 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 > quite nice. > > But today we discovered that it doesn't seem to close files (it seems > only TTF font files), which results in 'to many open files' errors after > some time. > > Any idea how to fix this? > > I didn't venture into the source yet, because it might be an easy fix > for you. If you have neither time nor inclination to look into this > issue, I might find some time to look myself.. > > > >
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.. > > > > > > > >
I've posted a pull request to fix this issue here: https://github.com/cnighswonger/PDF-Reuse/pull/6 Regards Grant
Fixed in dev release 0.36_03 and will be in 0.37.