[poppler] pdftoppm hang

Adrian Johnson ajohnson at redneon.com
Fri Apr 20 05:55:24 PDT 2012


On 20/04/12 21:44, Thomas Freitag wrote:
> Am 20.04.2012 13:47, schrieb Thomas Freitag:
>> Am 16.04.2012 22:53, schrieb Ralph:
>>> Hey Thomas,  
>>>
>>> Here's the PDF in question.  Quite a nasty one imho ;)
>>>
>>> Thanks for getting back to me, sorry for the delay.  
>> Hey Ralph!
>>
>> In the meantime I found some time to have a look into it: The PDF has
>> 12153 image masks in pattern colorspace. My first try to render it
>> under Windows with pdftoppm compiled in debug mode dies after 22
>> minutes with out of memory.
>> Then I encountered, that my implementation of colorizing image masks
>> in pattern colorspace in splash could be optimized. I gave it a try,
>> and now I'm able to render it in 250 seconds (still Windows debug
>> mode). It's still not so fast, but at least it works.
> Additional information:
> 
> Under Unix 64 bit release mode it takes now 74 seconds. But You can use
> pdftocairo (only 18 seconds) if You accept, that cairo isn't able to
> render image masks in pattern colorspace correctly :-)

Are you using git master? The fix for bug 47739 should have fixed image
masks with patterns in cairo output.

> 
> Thomas
>> My problem now is, that my code base is in the meantime completely
>> different than git master, because Albert wasn't able to commit my
>> DeviceN implementation and suspend it until 0.22. Therefore I opened a
>> bug: https://bugs.freedesktop.org/show_bug.cgi?id=48964. I need to
>> discuss it with Albert in which order my enhancements could be committed.
>> At least I'll regtest my changes coming weekend, and perhaps I create
>> a patch for it only...
>>
>> BTW, it would probably help if You can send the PDF also to Albert...
>>
>> Cheers,
>> Thomas
>>
>> On Wednesday, April 11, 2012 at 6:49 AM, Thomas Freitag wrote:
>>> Am 11.04.2012 15:35, schrieb Ralph:
>>>> Hi Folks,
>>>>
>>>> I have a PDF file that's causing pdftoppm to hang. Looking at an strace shows that it's doing *something* but it's taking much longer than expected (at least over a few minutes). This is present on 0.18.3 and 0.19.2.
>>>>
>>>> I would attach the file to a bug post, but I'd rather email it out directly as it's a customers PDF and not mine. Who should I send this bugger to?
>>> If You don't care, send it to me in private. Then I'll have a look at it 
>>> probably next weekend.
>>>
>>> Thomas
>>>> Thanks for all the help,
>>> _______________________________________________
>>> poppler mailing list
>>> poppler at lists.freedesktop.org (mailto:poppler at lists.freedesktop.org)
>>> http://lists.freedesktop.org/mailman/listinfo/poppler
>>
>>
>> _______________________________________________
>> poppler mailing list
>> poppler at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/poppler
> 
> 
> 
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler



More information about the poppler mailing list