Bug 332258 - Okular hangs when moving between pages in pdf document
Summary: Okular hangs when moving between pages in pdf document
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.17.5
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-17 17:29 UTC by Usama
Modified: 2014-09-27 08:39 UTC (History)
3 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 Usama 2014-03-17 17:29:45 UTC
when opening pdf documents ( 50+ pages ) with annotations in them, okular hangs while loading. It do load the page after waiting for 2-3 minutes. Then whenever I move to next page or jump to any other page okular hangs for 2-3 minutes before loading the page.

Reproducible: Always

Steps to Reproduce:
1. Opening pdf file with many pages and lots of annotations. 
2. Jumping between pages.
3.
Actual Results:  
Okular hangs for 2-3 minutes.

Expected Results:  
Loaded the book/page without hanging.
Comment 1 Usama 2014-03-17 17:41:26 UTC
The bug happens with large file with many annotations in it. I can not share the particular pdf documents since they are larger than the allowable limit of attachment.
Comment 2 Albert Astals Cid 2014-03-17 20:46:52 UTC
Without the file, this is impossible to fix. Please provide us the file.
Comment 3 Usama 2014-03-17 21:30:20 UTC
Due to limitations of file size in attachment I have uploaded a pdf file which causes problem to a web file sharing site. Here is the link to the file.
http://www.crocko.com/55FF13A315214419AD432CDFCB82431D/Hadoop_the_definitive_guide.pdf
Comment 4 Albert Astals Cid 2014-03-17 21:43:30 UTC
I don't see any slowdown. Are you positive the problem is your local annotations? Have you tried let's say coping the file so you get not annotations in the new copy? It's still slow?
Comment 5 Usama 2014-03-17 22:03:13 UTC
I copied the file. The copy has no annotations and still okular hangs.
Comment 6 Albert Astals Cid 2014-03-17 22:08:41 UTC
Works smoothly here. Which poppler version are you using?
Comment 7 Usama 2014-03-17 22:28:51 UTC
Installed Okular using Ubuntu repositories. Ubuntu version is 13.10 ( saucy ) . poppler package version is 0.24.1-0ubuntu1.
Comment 8 Albert Astals Cid 2014-03-17 22:40:23 UTC
How much RAM do you have? Is it possible you're running out of RAM? check with free -h while changing the page. Also does top show CPU at 100% while changing the page?
Comment 9 Usama 2014-03-17 22:54:50 UTC
My system specifications are :
processor : Intel® Core™ i5-3230M CPU @ 2.60GHz × 4 
memory : 3.8 GiB
graphics: AMD Radeon HD 7600M Series
OS type : 64 bit

my output of free-h :           
                                    total       used       free     shared    buffers     cached
Mem:                           3.8G       2.2G       1.5G         0B       128M       963M
-/+ buffers/cache:       1.2G       2.6G
Swap:                            7.3G         0B       7.3G

My cpu usage doesn't show 100% while loading page. Instead it remains below 10%.
Comment 10 Albert Astals Cid 2014-03-17 22:58:02 UTC
Weird. Is there any chance you can update to a newer poppler like 0.24.5 (the one i'm using)?
Comment 11 Usama 2014-03-17 23:28:05 UTC
Looks like will have to wait for the update for latest version of poppler from ubuntu
Comment 12 Usama 2014-03-24 04:05:27 UTC
upgraded Ubuntu to 14.04 beta and updated okular to latest version of package available (4:4.12.95-0ubuntu1). No more hanging problem with okular with latest build.