[okular] [Bug 453421] Okular corrupts file while saving the archive

Tymek bugzilla_noreply at kde.org
Sun Jul 3 20:47:54 BST 2022


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

Tymek <tymmek at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tymmek at gmail.com

--- Comment #10 from Tymek <tymmek at gmail.com> ---
I have been encountering the very same issue using Okular Flatpak -- occurring
on versions 21.12.3 and 22.04.x (haven't tested other Flatpak versions).  I
just so happen to also be running Linux Mint (20.3).

After about an hour of using Okular's annotation features and hitting the save
button on my PDF file, I eventually get the same save error and my PDF file is
corrupt. I have partly figured-out why this happens, now I am wondering how to
fix it.

It turns out:
At each PDF save operation Okular creates a copy of the latest PDF file under
     /run/user/1000/app/org.kde.okular 
(a tmpfs filesystem located in memory).  Depending on the size of the PDF file,
sooner or later the number of PDF file copies accumulates and completely fills
the tmpfs filesystem, and any further save operations fail, leading to the
aforementioned corruption error.  The error will persist until a system reboot
at which point the tmpfs filesystem is cleared.

How can this be disabled?  Is this behaviour attributable to Okular or Flatpak?

On another machine running Debian 11, I have a fairly recent version of Okular
(20.12.3) running as a native application and this error does not occur.

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


More information about the Okular-devel mailing list