Bug 273654

Summary: Okular thrashing or displaying blank window trying to render PDFs which are fine in Adobe Reader
Product: [Applications] okular Reporter: mathew <meta>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: 0.11.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description mathew 2011-05-19 17:13:30 UTC
Version:           0.11.2 (using KDE 4.5.5) 
OS:                Linux

I've encountered a PDF which renders really slowly in Okular, but is fine in Adobe Reader.

http://carto.metro.free.fr/documents/CartoMetroLondon.v2.0.pdf

Reproducible: Always

Steps to Reproduce:
1. Download http://carto.metro.free.fr/documents/CartoMetroLondon.v2.0.pdf
2. Load it into Okular.
3. Hit 'zoom in' a couple of times.
4. Wait... and wait... and wait...

Actual Results:  
Takes about 6 seconds to render when zoomed out to 50%. 18 seconds at 100%. At 200% it appears to give up and render a blank window, and top shows no CPU activity.

Expected Results:  
In Adobe Reader, the PDF renders in under 2 seconds at any zoom level.

I've seen similar problems in PDFs generated using LuaTeX, but wasn't able to provide a good sample to file a bug report because they contained information internal to my employer.

Computer is a Core i7.
Comment 1 Pino Toscano 2011-05-20 12:30:49 UTC
There are two issues in this bug report:
a) slow rendering
b) missing rendering at high zoom level

(a) is due to the library we use for PDF documents, poppler, which takes a bit on pages with very complex graphics like this. Please report a bug for the "poppler" product at https://bugs.freedesktop.org
(b) is a known limitation of rendering very big pages, to avoid allocating way to big pixmaps and make either the RAM or the X server explode

I'm closing for the reasons above.