Bug 338030

Summary: PDF rendering extremely slow
Product: [Applications] okular Reporter: Pascal Niklaus <pascal+kde>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aacid
Priority: NOR    
Version: 0.19.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: http://www.open.ac.uk/science/biosci/personalpages/j.silvertown/pdfs/Silvertown%20Niche%20Review%202004.pdf
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Pascal Niklaus 2014-08-04 14:08:45 UTC
When displaying various PDFs, I experience rendering delays in the range of 10 seconds when scrolling to the next page. 

Memory usage in Okular is set to "aggressive".

In the example above, opening takes 20 seconds on a quite fast computer. With xpdf, the file opens and displays instantly. 

For some other PDFs, scrolling to the next page also takes something in the range of 10-20 seconds, or longer.

Reproducible: Always
Comment 1 Christoph Feck 2014-08-04 14:21:46 UTC
Cannot reproduce with poppler 0.24.3 and KDE 4.13.3

The linked document renders instantly on all pages on a dated Centrino 1.2 GHz system.
Comment 2 Albert Astals Cid 2014-08-04 16:53:56 UTC
Pascal which poppler do you have?
Comment 3 Pascal Niklaus 2014-08-05 07:33:18 UTC
The machine here is an i5-3470 CPU @ 3.20GHz, and has 12 GB RAM, with most available. So this is not a resource problem. I also experience the exact same problem on two other computers running Kubuntu 14.04.

Poppler: It says "0.24.5-2ubuntu4"

lsof lists

/usr/lib/i386-linux-gnu/libpoppler.so.44.0.0
/usr/lib/i386-linux-gnu/libpoppler-qt4.so.4.3.0

Let me know how I provide more info.
Comment 4 Albert Astals Cid 2014-08-05 08:10:13 UTC
Ah, won't you have a configured but not connected network printer?
Comment 5 Pascal Niklaus 2014-08-05 14:15:46 UTC
There are network printers listed in CUPS that I neither installed nor configured. KDE (?) somehow automatically finds them. Personally, I find this annoying, but don't know how to turn this off. It certainly seems to sometimes cause enormous delays when opening the printing dialog.

But even if this happens, how would this delay displaying a PDF, or browsing from page to page (hitting PgDn)?
Comment 6 Pascal Niklaus 2014-08-05 14:25:34 UTC
Update: I did manually remove network printers I did not install, and now the PDF opens quickly.

But why does *displaying* a document, or scrolling through it, depend on network printers being installed/configured/scanned/...? This sounds like an unnecessary dependency to me that is prone to cause problems...
Comment 7 Albert Astals Cid 2014-08-05 14:47:41 UTC

*** This bug has been marked as a duplicate of bug 334708 ***