Bug 290160

Summary: Reloading djvu file not possible - strange behaviour
Product: [Applications] okular Reporter: Philipp Woelfel <philipp.woelfel>
Component: DjVu backendAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: NOR    
Version: 0.13   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

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.