Bug 131734 - libreoffice attempts to recover read-only documents
Summary: libreoffice attempts to recover read-only documents
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.4.1.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: AutoSave-AutoRecovery-Backup Document-Recovery
  Show dependency treegraph
 
Reported: 2020-03-31 09:57 UTC by Marco van Hulten
Modified: 2022-08-11 16:40 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco van Hulten 2020-03-31 09:57:44 UTC
When I open a document with 'libreoffice --view', no .~lock.* file is created, as expected.  When I then send a KILL signal to libreoffice, still no files there.  When I then open the document, a recovery window pops up.

I don't understand why this happens.  If a document is opened in viewer mode, recovery mode is not sensible, I think.

(Rationale for killing the window: I only use LibreOffice in read-only mode akin to how one would use a PDF viewer, and there is no shortkey to close a document—Ctrl-Q closes all documents.)
Comment 1 ian 2020-06-09 13:36:17 UTC
Thanks for reporting this.

Could you please include additional information regarding your LibreOffice environment to help us be able to address this report?

To get the relevant information, click on the "Help" menu at the top of the window, then click on the "About LibreOffice" menu option.

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested information is provided.
Comment 2 Marco van Hulten 2020-06-09 19:00:36 UTC
Version: 6.4.2.2
Build ID: 40(Build:2)
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3; 
Locale: nb-NO (en_US.utf8); UI-Language: en-US
Calc: threaded

I am running GNU Guix.

The issue persists in this slightly newer version as well.
Comment 3 Buovjaga 2020-09-05 12:48:31 UTC
For some reason I don't get the recovery window.

Btw., you can Ctrl-W to close a document even after --view, but then any further documents you open will create the lock file.

Arch Linux 64-bit
Version: 7.1.0.0.alpha0+
Build ID: bb64b19e3e8942e610db2d3596d859f7c7864811
CPU threads: 8; OS: Linux 5.8; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 5 September 2020
Comment 4 Xisco Faulí 2021-11-23 10:57:25 UTC
Hello Marco,
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 5 QA Administrators 2022-05-23 03:38:36 UTC Comment hidden (obsolete)
Comment 6 Marco van Hulten 2022-05-23 15:26:33 UTC
The problem still occurs.  This time, instead of Guix, I used the LibreOffice 7.3.3.2 package with OpenBSD current.  The actions:

    libreoffice --view mydocument.odt &
    pkill -9 soffice.bin
    libreoffice --view mydocument.odt

The recovery window pops up.
Comment 7 Rafael Lima 2022-07-03 13:14:08 UTC
Repro with

Version: 7.3.4.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.4-0ubuntu0.22.04.1
Calc: threaded

The Recovery dialog is shown after the file was opened in view mode.
Comment 8 Buovjaga 2022-08-11 16:40:46 UTC
NEW per last comment