Bug 243934 - "Last page" command sometimes causes navigation to jump all over document
Summary: "Last page" command sometimes causes navigation to jump all over document
Status: RESOLVED FIXED
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: 2010-07-08 12:09 UTC by niburu1
Modified: 2014-05-11 22:30 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description niburu1 2010-07-08 12:09:42 UTC
Version:           unspecified (using Devel) 
OS:                Linux

Sometimes when clicking the "last page" button, Okular jumps all over the document (perhaps the jumping is more principled than this) and does not wind up at the last page. I have to click it again. If I press the "back in the document" button I can see where Okular wildly navigated to.

Reproducible: Sometimes

Steps to Reproduce:
Open a document, perhaps navigate around a bit, then invoke the "last page" command.

Actual Results:  
Sometimes Okular wildly navigates all over the document.

Expected Results:  
Okular navigates to the last page only.

Okular version 0.10.5
Comment 1 Albert Astals Cid 2010-07-12 20:32:09 UTC
Can you define "wildly navigates all over the document"? You mean it does a fast scroll? And what does "wind up" mean (sorry my english is not so great)?
Comment 2 niburu1 2010-07-12 21:18:27 UTC
Sorry, I meant that when I invoke the "last page" command, sometimes it does not go to the last page, or if it does, it immediately goes to many other pages and then stops at a page that is not the last page.

E.g. suppose I'm reading a 20 page document. On page 3 I invoke the last page command. Instead of going to the last page, it goes to (perhaps the last page and then) page 15, then 14, then 13, then 12, then 11, transitioning between pages very quickly. So I end up at page 11 instead of the last page, page 20.
Comment 3 Albert Astals Cid 2010-07-12 23:51:28 UTC
How do you invoke the last page command? Menu? Shortcut?
Do you have a way to reproduce it? Or it happens randomly?
Comment 4 niburu1 2010-07-13 00:55:17 UTC
To invoke the command I use a menu button I added to the Main Toolbar <okular_part>.

I can't consistency reproduce it, but I had I pdf open just now and reproduced it. I was on page 7, clicked the Last Page button, and I was taken to page 8, then page 19, then 18, 17, 16, 15, 14, 13, 12, and finally 11 (according to the Back in the Document command). All of this happened very quickly, within a couple of seconds at most.

It seems to happen randomly, but it happens quite often. I'll try to see if any patterns emerge.
Comment 5 niburu1 2010-07-13 01:26:42 UTC
Actually I think I was already on page 8. In any case, it appears that it takes one to the last page and then goes back a number of pages, page-by-page.
Comment 6 niburu1 2010-07-19 13:34:16 UTC
I'm confident the problem only arises when Trim Margins is enabled. (I typically have it enabled.) I have not been able to reproduce the problem with Trim Margins disabled.

I also notice that the bug occurs even when navigating by entering page numbers in the bottom "status" bar.
Comment 7 Albert Astals Cid 2014-05-08 14:20:43 UTC
Can you try to see if this still happens in okular >= 0.19.0 (KDE Applications >= 4.13.0)? I don't seem to be able to reproduce it but it seems it's a weird combination of things.

It'd also be great if you could attach a document you are using that always reproduces this problem.

Thanks for caring about Okular :-)
Comment 8 Michael D 2014-05-11 19:34:08 UTC
I just took a few minutes to try to reproduce it and couldn't. I suppose it's best to close this and reopen if it ever happens to anyone ever again. Thanks for getting back about it.