Bug 199184 - okular trunk jumps back to first page on file change
Summary: okular trunk jumps back to first page on file change
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Unspecified
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 222221 222747 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-06 19:34 UTC by qqqqqqqqq9
Modified: 2011-08-14 08:17 UTC (History)
13 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 qqqqqqqqq9 2009-07-06 19:34:50 UTC
Version:            (using Devel)
Installed from:    Compiled sources

Hi,

1. load a pdf in okular and go to page e.g. 56
2. update it with a pdflatex run

result: the view jumps back to page 1, whereas the page number on the button shows  still 56.

Scrolling with page-down keys updates the pagenumber to the current view.
Scrolling with the forward/backward arrows on the bottom  changes the view  to page 57.

The problem is not present in 4.3.9999
Comment 1 Pino Toscano 2009-07-06 19:46:08 UTC
Which version "okular-9999" is? This is not gentoo's bug tracking system.
Paste the result of `okular --version` on command line, please.
Comment 2 qqqqqqqqq9 2009-07-06 19:56:29 UTC
HI, 
9999 means

Qt: 4.5.2                                                        
KDE: 4.3.60 (KDE 4.3.60 (KDE 4.4 >= 20090706))                   
Okular: 0.9.80 

and 4.3.9999 is
Qt: 4.5.2
KDE: 4.3.60 (KDE 4.3.60 (KDE 4.4 >= 20090706))
Okular: 0.8.90
Comment 3 Pino Toscano 2009-07-06 21:09:52 UTC
So it happens with current thunk but not with 4.3, right?
Comment 4 qqqqqqqqq9 2009-07-06 23:33:55 UTC
I'm a bit confused about that naming scheme, but if i downgrade (only) okular to 0.8.90 it  works fine again. 
The problems with 0.9.X started around June 29th/30th because on July 1st i installed evince.   

By the way, i always get mails which tell me:
Post by non-member to a members-only list
Comment 5 Pino Toscano 2009-07-14 16:26:35 UTC
Yes, this is due to recent refactoring in the page view.
Strange, other similar cases work fine, but not that one... I'll investigate soon, of course.
Comment 6 Pino Toscano 2009-07-14 16:27:23 UTC
(Forgot to confirm, as it's a known problem.)
Comment 7 Felix Lemke 2009-08-07 10:53:36 UTC
Workaround until fix: after reload okular jumps to page 1, then you can press "Ctrl+F" (search) and okular jumps back to the last seen place.
Comment 8 ajuffing 2010-01-06 21:16:50 UTC
same annoying behavior on 

kde 4.3.85
pdf backend 0.2.1
okular 0.9.80
Comment 9 Jorge Adriano 2010-01-09 01:06:54 UTC
Still not fixed in RC1


This is terrible for those of us producing LaTeX documents. 
Whenever we recompile we go back to page 1 :S
Comment 10 Jochen Trumpf 2010-01-09 02:52:16 UTC
Jorge and others, would you mind trying whether Albert's patch from comment 13 in bug #205084 fixes this one here as well?
Comment 11 Tom Chiverton 2010-01-10 12:49:58 UTC
IMVHO, this should block the 4.4 release. It's a annoying regression in a highly visible feature in a popular application.
Comment 12 Albert Astals Cid 2010-01-10 14:33:48 UTC
Can't reproduce it so can't fix it.

If someone running latest version of okular from svn (RC 1 is not enough) can reproduce it please tell the exact steps you do yo get the problem.
Comment 13 Michal 2010-01-10 15:15:21 UTC
I think that it is fixed. I have tried the new version for some pdf and it works nice. Thanks
Comment 14 Stefan Majewsky 2010-01-10 15:35:00 UTC
I can still reproduce with openSUSE packages built from revision 1070744 (which seems to be SC 4.4 RC1).

@Albert: Here's how to reproduce the issue:

1. Look for some PDF with multiple pages. Let's call it "bigdoc.pdf" for now.
2. Say "cp bigdoc.pdf test.pdf".
3. Open test.pdf in Okular, and scroll down to some page != page 1.
4. Redo step 2. Okular will reload the changed file automatically (if configured like this, which is the default IMO).

One would expect that, after reloading, Okular shows the same part of the document again, but on my system, the viewport scrolls back to the very top. The workaround mentioned in comment #7 gets me back to where I was before.
Comment 15 Albert Astals Cid 2010-01-10 16:21:04 UTC
You want >= r1072191

I'm closing the bug for now as per Michal's comment, if anyone with that revision or higher can reproduce the problem please reopen it.
Comment 16 Jorge Adriano 2010-01-10 19:58:42 UTC
The package in openSUSE KDE UNSTABLE repository is
- okular-4.3.87svn1070744-2.3.i586.rpm  
Is older than the one in Factory.

I can try it out once it shows there.
Comment 17 Albert Astals Cid 2010-01-11 21:45:56 UTC
*** Bug 222221 has been marked as a duplicate of this bug. ***
Comment 18 Albert Astals Cid 2010-01-14 23:35:43 UTC
*** Bug 222747 has been marked as a duplicate of this bug. ***
Comment 19 Jorge Adriano 2010-01-25 00:33:48 UTC
Working great in RC2, thanks! :)
Comment 20 Leandro 2011-04-27 01:09:13 UTC
Hi, 

I would like to inform that the problem reported here is also present in the version 0.12.2. I am running this version in a Gentoo amd64 plataform with KDE 4.6.2. 
In the mean time is there any suggestion how I could workaround this ?
Thanks.
Comment 21 Albert Astals Cid 2011-04-27 01:17:18 UTC
Leandro can you please post the exact steps and settings you have when reproducing this problem?

@others: Can you reproduce this problem again in newer versions?
Comment 22 Leandro 2011-04-27 05:05:23 UTC
Hi  Albert, 

to reproduce this behaviour it is enough to :
1- Open any PDF file having more than one page in Okular;
2- Without close Okular modify the content of PDF file and save it with the same name, for example, adding some new text lines.
3- Refresh the modified PDF on Okular.
After this 3 steps, Okular will show this file at the first page.

is this information about my system is enough to help you ?

OS: Gentoo - Kernel 2.6.38-r3
KDE 4.6.2
Qt: 4.7.2
Okular 4.6.2 -- 0.12.2

PS: In my case I created and modified the PDF file using kile and texlive and I noted that this behavior can also be reproduced using pdflatex command line and any text editor to modify the tex code source.
Comment 23 coronarajan 2011-08-14 08:17:18 UTC
Hi guys,

I am using Okular 0.10.5 (KDE 4.4.5) on ubuntu 10.04 LTS. I use kile (2.0.85 KDE 4.4.5) to write latex documents on and Okular to read the pdf. But the problem mentioned above by others started about 1.5 months ago (it was fine before that). The workaround suggested on comment #7 does not work for me. As I'm using Okular to read a large document, this is becoming a major issue. Have you found a solution yet? If you need to reproduce the problem:

1) Compile a document on kile
2) Look at the document using "View pdf" on kile or open the pdf file.
3) Make changes to the latex document in kile and recompile
4) The position of pdf file is now at the beginning instead of where it was before recompiling. 

Any solutions you may have found will be gratefully received.