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-de...@kde.org Reporter: pbs3...@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 watching all bug changes.