Created attachment 137256 [details] No review F6 option t Hi i am used to working with pdfs in Okular. And everything was working fine but suddenly okular is not able to open the pdf file that i regularly make changes to. For example,just this morning i used okular to open my pdf file and added some annotations and stuff. And then after saving the file i closed the file. Now( afternoon) when i am trying to open the same file in okular, the file is not opening and i am getting the option to either force quit the app or wait. This is happening with this pdf only. Other pdfs are openings correctly. Also, the same pdf is also not opening in Document Viewer. Note that the size of the pdf is around 68 MB.Is there a way to see what is going wrong?, like debug okular. Also i installed okular through Ubuntu Software center. I am using Ubuntu 18.04. I have used okular regularly on the same file for a long time and i have never faced any issues but only today i am not able to open the file? How can i resolve this? Now i uninstalled okular by going to ubuntu software and then reinstalled it from there. But now i am facing one additional problem. Now there is no option to even annotate. Before there was F6 shortcut or we can go to Tools->Review but now F6 is not working, i am attaching the screenshot of this. Also the same old pdf is still not opening. Why is this issue happeing and how can i resolve this? I have very important annotations in the concerned pdfs. As you can see in the screenshot the review option is not selectable. Now i opened the same pdf file with okular and waited for a long time(around 1 hour) and noticed that some part(very little) like some annotations and other things are starting to appear. So why suddenly okular is not able to load the annotations and other things for this file? That is why is it taking so much time to load the annotations corresponding to this file? Edit: I guess i know what is the issue. The original file(without any annotations) is of size 50 MB and my annotated version is of 68 MB. So the problem seems to be with the large size of the file. For example i had saved a previous version of the same file(with annotations) which was of size 59 MB and okular is able to open that file correctly. But okular is not able to open the 68 MB file, i think the problem is with the too much annotations(around 18MB). How can i resolve this problem? I guess my final question is can i revert back the changes that i made today. Because in the morning the file and okular both seems to be working correctly. After adding some annotations the file size got larger and stopped working so i guess if i can delete the annotations that i made today i can still use the file. For this i will need to know where are those annotations files saved. And also in which format so that i can either delete or edit them accordingly. Also note that there is no F6 or review option in the newly downloaded version of okular to add annotations.
If it crashes, Okular will show a crash dialog. Can you attach the backtrace shown in that crash dialog? Also can you attach the file that makes it crash?
It turns out that the pdf file was corrupt. When i tried to copy the file to an external drive or upload it to gmail, both failed. Also, i uninstalled and reinstalled okular and now F6 option is available again. More is described at https://askubuntu.com/questions/1328618/okular-not-able-to-display-pdf-file
We shouldn't crash with corrupt files either. Please attach said file.
The pdf file cannot be attached for 2 reasons: 1) Since it was corrupted, so it was not possible to attach that file or send or transfer it to anyone. The copy/paste operation itself failed. 2) Finally after trying many times to transfer that file to my other PC to see if it opens there and failing, i deleted that file. By the way, the error that i was getting was a standard error in Ubuntu 18.04 which opened a prompt saying "Okular isn't responding" Force quit or Wait.
Originally, the pdf file was of 50 MB, after adding annotations worth of 18MB, the pdf size was around 68.5 MB. Also, just before the file became corrupt, i was adding an inline note that contained a lot of text.For example that one particular inline note had around 38 numbered points. Like step 1) this is step one blah blah blah. step 2) this is step two blah blah blah. ... ... ... step 38).Some explanation here as well. And each step has a lot of explanations as well . Can this be the cause of corruption of the pdf?
Without a way to reproduce this problem, there's really nothing we can do. Thanks for caring about Okular and glad you could solve your problem :)
I think i accidentally reproduced the bug. I had previously backed up my pdf file. I remember that when i downloaded the original pdf file from web (without any annotations) it was of size 50 MB. Also my backedup up pdf file (with annotations) is around 67 MB. So no after downloading the backed up file(67 MB) i started adding annotations in it. When this file reached around 67.8 MB i clicked Ctrl+S to save the file. But for some reason my Ubuntu 18.04 started freezing and the file was not saved(which i can see from the * shown at the top). So i had to close okular midway with unsaved changes. Next, after closing okular i tried to open the pdf but to my surprise when the pdf opened, all of its pages were blank. The second thing i noticed was that the same pdf was now of size 50MB instead of 67MB. So i do not know why the pdf got smaller in size(around its original size) and had all of its pages blank. This could be the fault of freezing up of the PC or an okular bug. I have no idea. Maybe if there's a way to debug okular so that i can see what happens when i click Ctrl+S , that can shed some light on this. Is there a way to use okular from command line. I know that i can use the command okular somedpdf.pdf to open the pdf in okular.But this command does not give much info about what happens when i click Ctrl+S.