Bug 290160 - Reloading djvu file not possible - strange behaviour
Summary: Reloading djvu file not possible - strange behaviour
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: DjVu backend (show other bugs)
Version: 0.13
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-30 10:22 UTC by Philipp Woelfel
Modified: 2012-01-06 13:25 UTC (History)
0 users

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 Philipp Woelfel 2011-12-30 10:22:17 UTC
Version:           0.13 (using KDE 4.6.5) 
OS:                Linux

When a djvu-file changes, okular tries to reload the file, but sometimes it fails. After that, trying to reopen the file with okular yields a "Could not open <filename>" message. The file can only be opened again by a new instance of okular.

The following error message gets repeated:
okular(22984)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "<filename>"

Reproducible: Didn't try

Steps to Reproduce:
Create two djvu files, a.djvu and b.djvu, where b.djvu is larger than a.djvu (this seems to be important)
> okular a.djvu
> cp b.djvu a.djvu


Actual Results:  
okular's screen goes blank
Reopening the file a.djvu is not possible anymore (with the same instance of okular)

Expected Results:  
the file should be reopened
Comment 1 Albert Astals Cid 2012-01-05 23:27:46 UTC
This happens due to a bug in the underlying library we use for handling dvju (libdjvulibre) i'll contact the authors and see if we can get a fix.