https://bugs.kde.org/show_bug.cgi?id=529112

            Bug ID: 529112
           Summary: Okular repeatedly reloads unchanged PDF files on NFS4
                    home directory
    Classification: Applications
           Product: okular
      Version First 25.04.2
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
When opening PDF files located in my NFS4-mounted home directory, Okular
repeatedly reloads the document, causing the display to flicker approximately
every two seconds.

The PDF files are not modified. The output of stat confirms that access time,
modification time and change time remain unchanged during the observation
period.

The same PDF file behaves normally when copied to /tmp and opened from there.

STEPS TO REPRODUCE
1. Open a PDF located in the NFS4-mounted home directory.
2. Ensure that "Reload document on file change" is enabled in Settings →
Configure Okular → General.
3. Observe the document for several seconds.

OBSERVED RESULT
The document repeatedly reloads, causing visible flickering.

EXPECTED RESULT
The document remains displayed without reloading, provided that the underlying
file has not changed.

SOFTWARE/OS VERSIONS
OS: Debian GNU/Linux 13.7 (Trixie)
KDE Plasma Version: Not installed (Cinnamon 6)
KDE Frameworks Version: 6.13.0
Qt Version: 6.x

ADDITIONAL INFORMATION
- File timestamps (atime, mtime, ctime) remain unchanged.
- The problem affects multiple PDFs in the home directory.
- The same PDF stored in /tmp does not exhibit the problem.
- Disabling "Reload document on file change" stops the flickering.
- Re-enabling the option while Okular is running does not reintroduce the
problem.
- After completely closing and restarting Okular, the problem returns.
- Changing KDIRWATCH_NFSPOLLINTERVAL changes the interval between reloads,
indicating that the behaviour is related to KDE filesystem monitoring.

Both of the following environment variables eliminate the problem:
KDIRWATCH_NFSMETHOD=inotify okular /path/to/document.pdf
and
KDIRWATCH_NFSMETHOD=QFSWatch okular /path/to/document.pdf

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to