#1108516 libreoffice: crashes when exporting to PDF from the Print Preview

Package:
libreoffice
Source:
libreoffice
Description:
office productivity suite (metapackage)
Submitter:
Vincent Lefevre
Date:
2025-07-05 21:27:01 UTC
Severity:
normal
Tags:
#1108516#5
Date:
2025-06-30 10:32:15 UTC
From:
To:
I have a .xlsx file with 29 sheets (it is private to I can't attach it).
LibreOffice always crashes when I do the following:

1. Run: libreoffice file.xlsx
2. Go to File → Print Preview.
3. File → Export as PDF…
4. Click on Sheets and enter some sheet number, such as 1 or 11.
5. Click on Export.
6. In the save dialog, click on Export.

I get a "LibreOffice 25.2 Document Recovery" window saying:

  Due to an error, LibreOffice crashed. All the files you were
  working on will now be saved. The next time LibreOffice is
  launched, your files will be recovered automatically.

There is no such issue if I do not do Step 2 (i.e. no print preview)
or Step 4 (i.e. I let "Selection/Selected sheet(s)" selected).

Note: the goal of the print preview is to be able to change the scale
as suggested at https://stackoverflow.com/a/68272995/3782797 (but the
crash occurs even if I don't touch the scale).