Bug 199415 - blank screen during 'reloading the document...'
Summary: blank screen during 'reloading the document...'
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.8.4
Platform: unspecified Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 328568 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-08 13:56 UTC by Augusto
Modified: 2020-08-14 19:02 UTC (History)
6 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 Augusto 2009-07-08 13:56:05 UTC
Version:           0.8.4 (using KDE 4.2.4)

Hi everyone,

I use Okular to see DVI files compiled in Kile. It is a quite standard feature to be able to "reload the document" when Kile performs any change.

And there is, naturally, a delay to reload the modified file. However during this short period the screen gets blank (gray in my case) and this is annoying (trust me, I do this 100 times a day).

KDvi, for instance waits until the new file is completely loaded and only then, it refreshes it instantaneously in your screen. Easy change.

Congratulations for Okular, thanks in advance,
Guto
Comment 1 Sven Wehner 2009-08-05 13:54:39 UTC
Great, I wanted to file a very similar bug. So let me extend it:
When kile starts to compile the file, it deletes the files content (I use PDF files) and writes the new content continuously. Thus the PDF is invalid until the end.

Do you think it's possible to check whether another process holds write access to the file? Or could you check whether the file doesn't change for a short amount of time (probably the write process finished)? And then keep the old content until a new complete, valid file is there.

Btw. the reason that this bug is "important" is the following: When you compile larger documents -- like a multi-session lecture, a thesis -- it takes a lot of time to complete. (I had several pgfplots in my thesis and a compile run took more than a minute.) During that time one usually wants to read the old content and check for typos etc. But at the moment you get a blank screen and has to wait...
Comment 2 Jonas 2012-03-23 20:52:16 UTC
(In reply to comment #1)
> When kile starts to compile the file, it deletes the files content (I use
> PDF files) and writes the new content continuously. Thus the PDF is invalid
> until the end.

Same problem here. 

> 
> [...] And then keep
> the old content until a new complete, valid file is there.

This definitively possible. Evince does this, for example. The display is only refreshed once the PDF file is complete.

> Btw. the reason that this bug is "important" is the following: When you
> compile larger documents -- like a multi-session lecture, a thesis -- it
> takes a lot of time to complete.

...In my case, it's about preparing the final version with LaTeX, e.g., when fiddling around with widows and orphans. It's very helpful then to see the old and the new document right after another, so you can identify the changes. That's not possible when the screen is left blank for a minute or so.
Comment 3 Christoph Feck 2014-09-11 21:09:30 UTC
*** Bug 328568 has been marked as a duplicate of this bug. ***
Comment 4 Philipp A. 2020-03-09 12:33:22 UTC
Yeah, this is a paper cut that’s pretty annoying when using Okular like described above.

E.g. I have set my editor to both autosave and rebuild the document on save. So when fixing a single typo I have to wait with continuing to read until Okular has finished reloading.