[okular] [Bug 421342] New: Files lost after being told they cannot be saved

bark mallard bugzilla_noreply at kde.org
Mon May 11 16:43:35 BST 2020


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

            Bug ID: 421342
           Summary: Files lost after being told they cannot be saved
           Product: okular
           Version: 1.3.3
          Platform: Ubuntu Packages
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: okular-devel at kde.org
          Reporter: markjballard at googlemail.com
  Target Milestone: ---

SUMMARY

Okular said it couldn't save pdfs because they had been modified by some other
program. The files were consequently lost. They had not, as far as I am aware,
been modified by another programme. I had pdfs open in Okular on different
workspaces on Xubuntu. These had been downloaded using Firefox. Some had been
saved, some had not. The files were open for a period of days. When I came to
tidy them up, and save those that needed to be retained but had not yet been
saved, Okular reported, for each file that had not already been saved, that it
could not be saved, for the inexplicable reason given. It was however able to
save again those files that had already been saved. It was possible to see,
when attempting to save those files that would not, that Okular was keeping
them in /tmp. They are not apparently there now, after closing them.

STEPS TO REPRODUCE
I can't be sure how to reproduced this error. But approximately:

1. Open a bunch of pdfs from Firefox, using Okular
2. Don't save the files
3. Keep them open for a period of days
4. Attempt to save them using <save as>

Like I say, nothing suggests to me this will produce the error. I've not
experienced it before. But only recently have I started using Okular greatly.


OBSERVED RESULT

When trying to save one of these files that had not yet been saved, Okular
opened the save file dialog and allowed the procedure to continue, but upon
receiving the instruction to save the file, Okular gave this error:

"The file ... .pdf has been modified by another program, which means it can no
longer be saved"

The file was not saved. There was no obvious way of preventing the file from
being lost.  

The same did not happen with files that had already been saved. I do not know
if these were files that had been saved, closed and reopened, or whether they
were files that had been opened from the browser, saved and left open.

EXPECTED RESULT

Open pdf files can be saved as something else to another location, no matter
what their state. If another program has not modified an open pdf (which in
this case I am reasonably sure it has not), then Okular should not report that
it has. In any case, this should not prevent an open pdf being saved to another
location / with another name.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: kde-plasma-desktop/bionic 5:100ubuntu2 amd64
KDE Frameworks Version: 5.44 + 5.78 (please see below)

Qt Version: 5.14.1 + 5.9.5 (please see below)


ADDITIONAL INFORMATION

xfce: xfce4/bionic,bionic 4.12.4 all
xubuntu: Ubuntu 18.04.4 LTS

Interestingly, I seem to have 3 versions of Okular installed. At least, the
xfce application menu lists okular three times when I ask for it in the search
box

1.

Version : 1.10.0
KDE Frameworks 5.68.0
Qt 5.14.1 (built against 5.14.1)
The xcb windowing system

2.

Version: 1.3.3
KDE Frameworks 5.44.0
Qt 5.9.5 (built against 5.9.5)
The xcb windowing system

3.

Version: 1.10.0

KDE Frameworks 5.68.0
Qt 5.14.1 (built against 5.14.1)
The xcb windowing system

Yes, 1 and 3 look like the same implementation.

When I open a doc with Firefox, or with 'open with okular' from my file
browser, it opens with 2.: v.1.3.3

apt, however, says the following okular packages are installed:

libokular5core8/bionic,now 4:17.12.3-0ubuntu1 amd64 [installed,automatic]
okular/bionic,now 4:17.12.3-0ubuntu1 amd64 [installed]
okular-backend-odp/bionic,now 1:3.0.1-0ubuntu4 amd64 [installed,automatic]
okular-backend-odt/bionic,now 1:3.0.1-0ubuntu4 amd64 [installed,automatic]

snap, on the other hand, says I have this version installed:

okular                           20.04.0                     98   
latest/stable  kde*         -

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


More information about the Okular-devel mailing list