Summary: | Okular corrupts file while saving the archive | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | nameless2800 |
Component: | general | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | aacid, nate, tymmek |
Priority: | NOR | ||
Version: | 22.04.0 | ||
Target Milestone: | --- | ||
Platform: | Flatpak | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/okular/commit/e7db8c92ae398a0c75be471aea01d44d5880e8a4 | Version Fixed In: | 22.04.3 |
Attachments: |
The error message that appears when it crashes or when you try to open the file again.
A printscreen for the exact moment the error occur |
Description
nameless2800
2022-05-05 13:44:21 UTC
I can not reproduce. Can you attach a file you can reproduce this problem with? Do you get a crash dialog report? Can you paste its contents? (In reply to Albert Astals Cid from comment #1) > I can not reproduce. > > Can you attach a file you can reproduce this problem with? > > Do you get a crash dialog report? Can you paste its contents? Sorry, I couldn't attach the file because it is a 13mb file. Maybe its something related with the file size? I got the same problem with another file, but it was a larger one with almost 40mb. When it crash just appears an error message with this: Could not open file:///home/wolff/Downloads/TR Book.pdf. If you need the exact same file you can find it here: https://docero.com.br/doc/n05808e (In reply to nameless2800 from comment #2) > (In reply to Albert Astals Cid from comment #1) > > I can not reproduce. > > > > Can you attach a file you can reproduce this problem with? > > > > Do you get a crash dialog report? Can you paste its contents? > > Sorry, I couldn't attach the file because it is a 13mb file. Maybe its > something related with the file size? I got the same problem with another > file, but it was a larger one with almost 40mb. > When it crash just appears an error message with this: Could not open > file:///home/wolff/Downloads/TR Book.pdf. Do you get an error message or it crashes? > If you need the exact same file you can find it here: > https://docero.com.br/doc/n05808e That address doesn't seem to exist, can you please check again? Also it would be probably be useful to get the corrupted file Created attachment 148632 [details]
A printscreen for the exact moment the error occur
(In reply to Albert Astals Cid from comment #3) > (In reply to nameless2800 from comment #2) > > (In reply to Albert Astals Cid from comment #1) > > > I can not reproduce. > > > > > > Can you attach a file you can reproduce this problem with? > > > > > > Do you get a crash dialog report? Can you paste its contents? > > > > Sorry, I couldn't attach the file because it is a 13mb file. Maybe its > > something related with the file size? I got the same problem with another > > file, but it was a larger one with almost 40mb. > > When it crash just appears an error message with this: Could not open > > file:///home/wolff/Downloads/TR Book.pdf. > > Do you get an error message or it crashes? > Sorry, it freeze, then show an error message then it closes. I attached a printscreen for the exact moment when the error occur. > > If you need the exact same file you can find it here: > > https://docero.com.br/doc/n05808e > > That address doesn't seem to exist, can you please check again? > Strange, it works here. Ayway I just did it again with this other file https://pt.br1lib.org/book/5210534/46b217 Its the same I use in the printscreen I just uploaded. It seems to me that you can reproduce with some files with 10mb or more. This one its 20mb. > Also it would be probably be useful to get the corrupted file Yeah, I can send it, but just dont know how or where upload it so you can get it. Since its a relatively big file I can't attach it here. (In reply to Albert Astals Cid from comment #3) > (In reply to nameless2800 from comment #2) > > (In reply to Albert Astals Cid from comment #1) > > > I can not reproduce. > > > > > > Can you attach a file you can reproduce this problem with? > > > > > > Do you get a crash dialog report? Can you paste its contents? > > > > Sorry, I couldn't attach the file because it is a 13mb file. Maybe its > > something related with the file size? I got the same problem with another > > file, but it was a larger one with almost 40mb. > > When it crash just appears an error message with this: Could not open > > file:///home/wolff/Downloads/TR Book.pdf. > > Do you get an error message or it crashes? > > > If you need the exact same file you can find it here: > > https://docero.com.br/doc/n05808e > > That address doesn't seem to exist, can you please check again? > > Also it would be probably be useful to get the corrupted file So, I just uploaded the corrupted file and the original one here: https://drive.google.com/drive/folders/1fcy0ML6lXLkUGqx6NvshwJruVbhUF7fW?usp=sharing Hope it works. Cannot reproduce. Which distribution are you using? (shouldn't matter but it's always good to know) (In reply to Albert Astals Cid from comment #7) > Cannot reproduce. > > Which distribution are you using? (shouldn't matter but it's always good to > know) Ok, now thats weird. I still can do it. I'm using Linux Mint. Bringing back to reported until we can get someone from the developer team to reproduce this. 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. A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/626 Git commit e7db8c92ae398a0c75be471aea01d44d5880e8a4 by Albert Astals Cid. Committed on 03/07/2022 at 23:05. Pushed by aacid into branch 'release/22.04'. Don't leave temp files around when saving M +12 -12 part/part.cpp https://invent.kde.org/graphics/okular/commit/e7db8c92ae398a0c75be471aea01d44d5880e8a4 |