Bug 164599 - Okular and KPDF rendering PDF very slowly (20+ seconds per page)
Summary: Okular and KPDF rendering PDF very slowly (20+ seconds per page)
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.6.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-21 16:31 UTC by Dotan Cohen
Modified: 2008-08-05 20:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of Okular with pages unloaded (100.79 KB, image/png)
2008-07-08 17:17 UTC, Dotan Cohen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dotan Cohen 2008-06-21 16:31:14 UTC
Version:           0.6.3 (using KDE 3.5.9)
Installed from:    Ubuntu Packages

I have a particular PDF file that Okular 0.6.3 will only display the first page of. KGhostView, Adobe Reader, and XPDF all read the file just fine.
Comment 1 Dotan Cohen 2008-06-21 16:36:19 UTC
Okular shows only the first page of this document:
http://dotancohen.com/images/examples/steam_tables.pdf

I do not know what program was used to create this file. It was downloaded from my university's website.
Comment 2 Pino Toscano 2008-06-21 19:21:43 UTC
Cannot reproduce here (Poppler devel, future 0.10).
What version of poppler-qt4 is used for Okular in your case?
Comment 3 Dotan Cohen 2008-06-22 09:29:14 UTC
Should I assume 2.0.0 from this output?

hardy2@hardy2-laptop:~$ which poppler-qt4
hardy2@hardy2-laptop:~$ locate poppler
/usr/lib/libpoppler-glib.so.2
/usr/lib/libpoppler-glib.so.2.0.0
/usr/lib/libpoppler-qt.so.2
/usr/lib/libpoppler-qt.so.2.0.0
/usr/lib/libpoppler-qt4.so.2
/usr/lib/libpoppler-qt4.so.2.0.0
/usr/lib/libpoppler.so.2
/usr/lib/libpoppler.so.2.0.0
..snip..

In /usr/share/doc/libpoppler-qt4-2/README there is no mention of which version is installed. Note that KPDF acts as Okular does: it reads the first page and nothing else.
Comment 4 Albert Astals Cid 2008-06-22 11:58:55 UTC
Something's wrong on your computer, from the shell i assume you are using Ubuntu hardy. I have an installation here and the kpdf from it can read the pdf file wihtout problems, are you sure you did not disable continuous view?

Can you attach a screenshot showing the problem in both okular and kpdf?
Comment 5 Dotan Cohen 2008-06-22 12:17:27 UTC
While preparing the screenshot I noticed that after about half a minute the pages started appearing in Okular. After letting the machine sit with both Okular and KPDF open, the pages started appearing one by one, with delays of 20-30 seconds. This computer has a dual-core processor, 2GB RAM, and is very responsive otherwise. Both Okular and KPDF are configured for aggressive memory usage (Keep everything in memory, Preload next pages, Boost searches).

I do not experience the delay in rendering on this file with other (XPDF, Adobe Reader) PDF readers, and I do not experience this delay using Okular or KPDF to read other PDF files, even from the same source.
Comment 6 Pino Toscano 2008-07-07 20:05:18 UTC
Just a guess: can you please try with Evince?
Comment 7 Dotan Cohen 2008-07-07 21:12:14 UTC
Evince also renders this document very slowly, like Okular and KPDF.
Comment 8 Pino Toscano 2008-07-07 22:10:34 UTC
It would be nice if you could then checkout Poppler 0.8.x, and try the Qt4 demo application in it (do -not- install it over the system one!).
Comment 9 Dotan Cohen 2008-07-08 07:41:34 UTC
I have KDE 4.1 beta 2 on another partition. Would that be Poppler 0.8? If so then I'll reboot and try it there. I don't want to mess with installing experimental software on my daily driver.
Comment 10 Pino Toscano 2008-07-08 09:38:38 UTC
> I have KDE 4.1 beta 2 on another partition. Would that be Poppler 0.8?

Poppler is a 3rd party library, see http://poppler.freedesktop.org
Comment 11 Dotan Cohen 2008-07-08 17:17:18 UTC
Created attachment 25938 [details]
Screenshot of Okular with pages unloaded

I tried to build the latest poppler on my KDE 4.1 beta 2 partition, but there
are problems with the configure script and I don't know how to resolve them
(Unexpected end of file). I did try to open the Steam Tables pdf on the Okular
that comes with KDE 4.1 beta 2 and got the same results as with KPDF, Okular,
and Evince on KDE3: extremely slow page loading. The enclosed screenshot was
taken after Okular had been open for 60 seconds.
Comment 12 Pino Toscano 2008-08-05 19:49:53 UTC
Given that you can reproduce the slow rendering also with Evince and KPDF, then the problem should be in the Poppler library (not for KPDF, but the codebase is similar).
The suggestion is to update to a more recent Poppler version (eg 0.8.x), and see whether the problem is still there. In case, please report the problem to the Poppler bug tracking system: https://bugs.freedesktop.org.

Closing this bug as INVALID as it is not a problem on the Okular side.

Thanks for understanding.
Comment 13 Dotan Cohen 2008-08-05 20:47:00 UTC
Naturally, Pino, thanks! I had considered closing the bug as INVALID myself when I realized that non-KDE apps suffer from the same phenomenon.

I had trouble building the 0.8.x branch of Poppler on my last KDE4 build, but if I manage to reproduce the problem on a current version of Poppler then I will file it there. Thanks.