Bug 325876 - Loading of a 4.7 pdf takes too long
Summary: Loading of a 4.7 pdf takes too long
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.17.2
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-11 08:34 UTC by Martin Tlustos
Modified: 2013-10-20 18:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Tlustos 2013-10-11 08:34:21 UTC
I have a pdf with 3 pages, 4.7mb size. Loading and displaying takes about 20-30 seconds (after startup, respectively!) Adobe reader displays the same document in less than a second.

Reproducible: Always
Comment 1 Albert Astals Cid 2013-10-12 15:12:45 UTC
Please attach the file
Comment 2 Martin Tlustos 2013-10-15 07:12:31 UTC
The file is too large to attach here, you can get it here:
http://sdrv.ms/1enqYrC
Comment 3 Albert Astals Cid 2013-10-15 22:52:55 UTC
Renders in a second here. Which poppler version do you have?
Comment 4 Martin Tlustos 2013-10-16 06:07:45 UTC
Well, the package manager says libpoppler28, version 0.20.5-1ubuntu3 (whatever that means). I installed qpdfview which also uses poppler, and it takes long as well (although not as long as okular).
Comment 5 Albert Astals Cid 2013-10-16 20:48:07 UTC
I'm on poppler 0.24.1 so probably something that was fixed between 0.20.5 and 0.24.1

Please if you update to poppler 0.24.1 or newer and still have this problem reopen the bug.

Thanks for caring about Okular :-)
Comment 6 Yuri Chornoivan 2013-10-17 05:46:47 UTC
Same long loading with poppler 0.24.2 (git/master now) and Okular git/master.

All configuration files were moved before the file loading to avoid changed settings influence.

qpdfview loads the document in a same time as Okular, so it is likely that it can be a problem with poppler.
Comment 7 Albert Astals Cid 2013-10-20 16:59:52 UTC
How long is "long loading"? How much zoom are you applying to the file?
Comment 8 Yuri Chornoivan 2013-10-20 17:11:08 UTC
~ 14 secs, ~305%
Comment 9 Albert Astals Cid 2013-10-20 17:20:15 UTC
Just to make it clear, you don't mean loading, you mean rendering, right?

i.e. loading is "open to display number of pages"
rendering is "filling each page"
Comment 10 Yuri Chornoivan 2013-10-20 17:23:39 UTC
(In reply to comment #9)
> Just to make it clear, you don't mean loading, you mean rendering, right?
> 
> i.e. loading is "open to display number of pages"
> rendering is "filling each page"

Yes. Quite right. I meant rendering.
Comment 11 Albert Astals Cid 2013-10-20 18:16:09 UTC
Yes, if rendering time is the problem, it's not an okular issue but a poppler issue, please report it at poppler bugzilla at https://bugs.freedesktop.org