[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file
From: |
azur |
Subject: |
Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2) |
Date: |
Sun, 17 Jun 2012 17:34:13 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 |
Why do I wish to run several processes of pdf2swf on the same file?
In my app pdf2swf is used to creat very small thumbnail previews and
higher resolution swfs for a pdf viewer, thats why i start pdf2swf twice
on every new pdf input file.
Meanwhile further tests revealed, that the error is not limited to
processes working on the same file, it occurs always and reproduceable
if pdf2swf processes are started and backgrounded nearly in parallel,
even if they all work on different input pdfs.
Such a scenario is likely to happen more often, as more app instances
try to utilize pdf2swf, so imho this is a real issue to be
solved.
Regards
Thomas
Am 17.06.2012 07:56, schrieb Matt Sergeant:
> Well let's not be naive here. Lots of people are using swftools on the
> server. If they are having trouble with temporary files there's a
> large potential for security issues. Basically always use known secure
> systems for creating temporary files. Don't invent your own.
>
> On 2012-06-16, at 5:47 PM, List_Subs <address@hidden> wrote:
>
>> On Fri, 15 Jun 2012 12:38:53 +0200
>> address@hidden wrote:
>>
>>> I have a php script to start several processes of pdf2swf working on
>>> the same pdf-file.
>>
>> The question, 'why, would you wish to have several process working on
>> the same file?', sort of pops into my head.. ;o)
>>
>>> If started immediately after each other, only one process survives,
>>> all others die with "Error: Couldn't create temporary font file"
>>> logged.
>>
>> Can't say I'm surprised. They are all attempting to create/access the
>> same temporary file, and thus getting in each others way. If they had
>> different temporary files to work on, then the problem would simply go
>> away.
>>
>>> It seems to me this is kind of a race condition with faster version
>>> 0.9.2, because if I add 1 second delay before starting subsequent
>>> processes no errors occur.
>>
>> Which makes sense, if you think about it.
>>
>> So, since you yourself created the issue, and have in one way at least,
>> resolved it, it begs the further question, what exactly is the issue
>> you have? ;o)
>>
>> Regards,
>>
>>
>> Chris.
>>
>> ---------------
>> SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend
>> an existing subscription, please kindly point your favourite web browser
>> at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>
>
> ---------------
> SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an
> existing subscription, please kindly point your favourite web browser
> at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>
>
>
- [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2), azur, 2012/06/15
- Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2), List_Subs, 2012/06/16
- Message not available
- Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2), Matt Sergeant, 2012/06/17
- Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2), List_Subs, 2012/06/17
- Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2),
azur <=
- Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2), List_Subs, 2012/06/17
- Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2), azur, 2012/06/17
- Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2), azur, 2012/06/17
- Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2), List_Subs, 2012/06/18