Bug 213618 - okular super slow with pdf presentations on kubuntu-netbook
Summary: okular super slow with pdf presentations on kubuntu-netbook
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-08 00:48 UTC by lixo1
Modified: 2010-03-07 00:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The "problematic" pdf file without photos (260.57 KB, application/pdf)
2009-11-08 22:57 UTC, lixo1
Details
Rendering (39.38 KB, image/png)
2009-11-08 23:33 UTC, lixo1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lixo1 2009-11-08 00:48:15 UTC
Version:            (using KDE 4.3.2)
OS:                Linux
Installed from:    Ubuntu Packages

I'm using Kubuntu Netbook 9.10. I tried to open a beamer (latex) presentation in PDF using the default viewer Okular. I observed that pages transitions are very slow more than 5s during normal mode and presentation mode, I tried to set the performance to aggressive but I didn't see any change. 
I installed adobe reader in the same system and pc, the pages transitions are instantaneous, in normal and presentation modes.
PS: This behavior is also repeted for DVI and PS files, derived from beamer latex classes.
Comment 1 Albert Astals Cid 2009-11-08 21:26:11 UTC
Can you attach the problematic file?
Comment 2 lixo1 2009-11-08 22:56:31 UTC
My file is about 30Mb, with many photos (each photo 2Mb).
I cannot attach it but I will put in attachment the layout without photos.
With this file okular is more fast but there are pages where it needs time to load.
Independently of the file, I think that there is something wrong, because okular don't preload the file in memory in agressive mode, my pc have 1Gb RAM, when okular is closed it uses 200Mb, when okular is opened, with this file, it goes to 210Mb.
Comment 3 lixo1 2009-11-08 22:57:41 UTC
Created attachment 38194 [details]
The "problematic" pdf file without photos
Comment 4 Albert Astals Cid 2009-11-08 23:14:09 UTC
Works like a charm here, to see if prerendering is working for you do this.

Open okular with that file you attached
Press Shift + ↓ key to enable the autoscrolling in okular
see if any of the pages appear unrendered

They all appeared rendered here effectively showing how they are rendered before showing up
Comment 5 lixo1 2009-11-08 23:32:37 UTC
Sorry, but I think that there is something wrong. You can take a look in the snapshot that I took when I change a page (it's the same file).
Do you test it on a netbook?
Comment 6 lixo1 2009-11-08 23:33:20 UTC
Created attachment 38195 [details]
Rendering
Comment 7 Albert Astals Cid 2009-11-08 23:52:38 UTC
No i don't use a netbook, and you are not helping much by not being clear about
a) what exactly you do
and 
b) what exactly you are complaining about
so can you please try to be a bit more specific?
Comment 8 lixo1 2009-11-09 00:17:16 UTC
Ok, sorry. I'll reformulate.
I'm using okular under Kubuntu Netbook on Dell Mini 10v.
When I open the PDF, in attachment, I observe that the pages are not loaded instantanealy, I need to wait about 2-5s for load each page, is it normal?
My last attachment shows what happens during this loading period (2-5s), you can see that the rendering is slow.
If you want more info, please ask.
Comment 9 Albert Astals Cid 2009-11-15 22:21:19 UTC
The rendering is slow because your computer is 'slow'. If that's all you complain about sorry but there's nothing to fix.
Comment 10 lixo1 2009-11-16 12:55:48 UTC
If my pc is slow, why ADOBE READER for linux works faster (normal, no slow) than okular?
I suggest a more long investigation.
Comment 11 Albert Astals Cid 2009-11-16 20:43:51 UTC
We know that in some situations we are slower than Adobe Reader as well as we are faster in others, they have a huge team working on the program and sadly we do not. Help is more than welcome investigating slowlyness.
Comment 12 lixo1 2009-11-16 21:21:17 UTC
So, thank you for the explanations, thanks for the support.
Comment 13 leon pollak 2009-11-25 11:13:03 UTC
Sorry to intervene...

I has the very(!) similar problem problem on my Core Duo 2.2MHz with 2GB RAM laptop running FC11 with latest updates.

Moving between pages of any PDF file is slow, even mouse cursor freezes for 2-5s.
It seems(!) to me that Okular eats all available memory, as switching back to any other application takes a lot of time and HD work.
Comment 14 leon pollak 2009-11-25 17:40:08 UTC
WOW!!! 
All of my system started to work as superjet when I set Okular memory usage to 'Low'!!!
Although my PC has 2GiB RAM!
After installation it was 'Normal' and everything was very slow. When I set it to 'Aggressive', I think I saw some more slow working.
But when I set to 'Low' ALL(!) of the system now is VERY fast! 
Uff.... What a joy.
Comment 15 Albert Astals Cid 2009-11-27 18:49:16 UTC
leon, i don't see at all how your complaining has anything to do with the original bug, open a different bug if you think you've hit a bug but be more constructive and more detailed in what you exactly do, being sarcastic won't make your ¿bug? be fixed faster.
Comment 16 leon pollak 2009-11-29 09:21:17 UTC
I apologise ahead - I did not wanted to put a bit of sarcasm in my post.
I see (but may be I am wrong) the straight connection to the loxo1's report of the phenomena I have - extremely slow Okular on a rather powerful system.

I also found some work around (also, not logical, IMHO) and think that this may be useful to those of us, who can not work normally because of the problem.

I supposed also that this workaround may be useful for developers to indicate where the possible problem lies.

Again - sorry to disturb. I just wanted to be useful.
Comment 17 lixo1 2009-11-29 12:02:11 UTC
Thank you leon to report your experience. I tried to verify your tip, but unfortunately setting performance to "Low" don't solve my speed problem on my netbook.
Well, only for curiosity, I tested my pdf on a Centrino Duo, 1Gb Ram, and I had the same problem, okular is very slow, principally if your pdf have many big photos re-scaled.
Comment 18 leon pollak 2009-11-29 14:06:05 UTC
I forgot to mention that MY(!) problem occurs with all my PDF files. in no connection with the photo existence.
Actually, I use big (1-2MiB) HW manuals without a photo inside and Okular was deadly slow till I have set "Low" memory...
Once again, my laptop is rather good - 2GiB RAM, 2.2GHz Core 2 Duo.
Comment 19 Albert Astals Cid 2009-11-29 15:15:29 UTC
Guys you are adding useless comments here, if you have ONE document that you think is TOO MUCH slow, open a different bug and attach that PDF file, if you think that Okular is slow in all the documents you open or something different, open a different bug.
Comment 20 Ismael Barros 2010-01-17 23:08:06 UTC
I stumbled with this problem with some PDFs in a rather powerful machine (Core2 Duo 1.80Ghz, 2GB ram)

Rendering slides in some presentations takes around 4 seconds, and okular CPU usage is a consistent 100% in one of the cores (I use the "aggressive" memory usage stup).

Rendering the same slides in those presentations converted from pdf to dvju with djvudigital (with no cmd parameters) is almost instantaneous, so it may be a poppler bug. Installed xpdf, and it has the same problem. CPU usage also gets to 100% in one core, only while rendering each slide (it doesn't do any preload).

Also, in these cases, the original PDF takes 2.4MB, but he djvu version takes 10.0MB; maybe the PDF is using some sort of CPU intensive compression method?
Comment 21 Ismael Barros 2010-01-17 23:19:03 UTC
I can't attach the files, so I uploaded them here: http://rapidshare.com/files/336910639/offending_files.tar.bz2.html
Comment 22 Jake Martin 2010-03-07 00:13:44 UTC
Don't shoot the messenger, but Okular is slow for me too.  

KPDF was lightening fast, Okular is super slow.  Any PDF will do.

One thing that might help would be to implement background rendering for Okular if it isn't already implemented.  Sometimes when I click on a page, it just takes forever to load.  However, if I'm reading a page, does Okular go ahead and prerender the rest?  

If not, there should be an option to enable this.