[okular] [Bug 436738] New: docdata duplicated each time pdf is edited

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Fri May 7 16:59:39 BST 2021


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

            Bug ID: 436738
           Summary: docdata duplicated each time pdf is edited
           Product: okular
           Version: 20.12.3
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: okular-devel at kde.org
          Reporter: pbs3141 at googlemail.com
  Target Milestone: ---

SUMMARY

In a typical TeX workflow, a user works on a tex file which they periodically
use to generate a pdf file. It is common to have the pdf file open in Okular,
so that when the pdf file is regenerated, it automatically reloads.

The bug is that each time this happens, Okular writes a new xml file to the
docdata folder. This results in docdata being filled with huge numbers of
identical files. As a result, mine has now reached an impressive size of 25,895
files.

The same problem also occurs when using LyX according to its intended workflow.
Each time one hits Ctrl+R to view the document, or Ctrl+Shift+R to refresh the
document if already open, one gets a new docdata entry.

STEPS TO REPRODUCE

Simply run the following bash script, which simulates the effect of a user
making regular updates to a pdf file.

#! /bin/bash

pdftex "\TeX \end" > /dev/null
okular ./texput.pdf &

while true; do
    sleep 1
    pdftex "\TeX $(pwgen -N 1) \end" > /dev/null
    find ~/.local/share/okular/docdata -name "*.texput.pdf.xml" | wc -l
done

OBSERVED RESULT

The script prints an ever-increasing sequence of numbers, indicating the
presence of xml files piling up in docdata.

EXPECTED RESULT

The should repeatedly print out "1".

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list