https://bugs.documentfoundation.org/show_bug.cgi?id=163033

            Bug ID: 163033
           Summary: LibreOffice crashes when attempting to save the
                    AutoRecovery info of an untitled COPY of a spreadsheet
           Product: LibreOffice
           Version: 24.2.4.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Description:
This crash occurs if we open a spreadsheet file and make an untitled copy of
it, then close the original document. Once the AutoRecovery timer elapses,
LibreOffice attempts to save the AutoRecovery information and crashes.

This crash only seems to occur in certain cases, like when the original sheet
contained cells with comments. There may be other such cases.

It leads to data loss however, since the untitled document cannot be recovered.

The crash does not seem to occur in version 7.4.7.2 (happens to be another
version I had available in a Debian 12 VM).

The 24.2.4.2 version that this bug is filed against was tested on a Fedora 40
system.

Steps to Reproduce:
1. (optional) Set the AutoRecovery timer to 1 minute.

2. Close LibreOffice.

3. Start LibreOffice.

4. Create an empty spreadsheet.

5. Add a comment to some cell, like cell C7.

6. Save the spreadsheet to a file, like 'example.ods'.

7. Close LibreOffice.

8. Start LibreOffice from the file manager, by opening the 'example.ods' file.

9. Right-click the first sheet in the spreadsheet, and select 'Move or Copy
Sheet...'

10. Select 'Copy', choose '- new document -' as the target and click 'Copy'.

11. Now close the original document, so you only have the untitled copy open.

12. Wait for the AutoRecovery timer which will attempt save the AutoRecovery
information and cause LibreOffice to crash in this case.

Actual Results:
LibreOffice crashes after N minutes (N = the AutoRecovery timer setting) and
shows the Document Recovery dialog which informs you that the 'Untitled 1'
document can be recovered. But the next time you launch LibreOffice, there's no
recovered document at all.

Expected Results:
Most importantly: LibreOffice should NOT crash.

And optionally: LibreOffice should indeed be able to recover the untitled
document if it informs the user that it can recover it.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 24.2.4.2 (X86_64)
Build ID: 420(Build:2)
CPU threads: 12; OS: Linux 6.9; UI render: default; VCL: gtk3
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded

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

Reply via email to