https://bugs.kde.org/show_bug.cgi?id=523997
Bug ID: 523997
Summary: Okular deletes PDF when saving
Classification: Applications
Product: okular
Version First 25.08.1
Reported In:
Platform: Ubuntu
OS: Linux
Status: REPORTED
Severity: grave
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 194961
--> https://bugs.kde.org/attachment.cgi?id=194961&action=edit
stdout of okular when the faulty save occurs, with actual path elided
DESCRIPTION
Okular deleted a large PDF I was annotating when I tried to save it by hitting
Ctrl+S several times in rapid succession. The only way to recover the PDF was
to use "Save As" while the tab was still open and the document was in cache.
STEPS TO REPRODUCE
1. Open a large (~37MB) PDF from a FUSE-mounted NTFS partition.
2. Make an annotation.
3. Hit Ctrl+S multiple times quickly. This relies on the fact that it takes
~0.3-0.4s to save the file.
OBSERVED RESULT
Okular shows the error (with actual path elided): Could not open
file:///<path>.pdf.
And the file is gone from the filesystem!
EXPECTED RESULT
Queue or ignore the later saves that came while the first one was being
resolved. And do not delete the file.
SOFTWARE/OS VERSIONS
Operating System: Ubuntu 25.10
GNOME Shell 49.0
Qt Version: 6.9.2
ADDITIONAL INFORMATION
Attached are the logs that show what's likely a race condition.
--
You are receiving this mail because:
You are watching all bug changes.