Bug 168051 - crash when exporting to pdf
Summary: crash when exporting to pdf
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.8.0.4 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks: PDF-Export Crash
  Show dependency treegraph
 
Reported: 2025-08-21 22:44 UTC by Mihai Donțu
Modified: 2025-08-27 20:35 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
output of flatpak-coredumpctl (25.92 KB, text/plain)
2025-08-21 22:46 UTC, Mihai Donțu
Details
Detailed backtrace (75.14 KB, text/plain)
2025-08-21 22:49 UTC, Mihai Donțu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mihai Donțu 2025-08-21 22:44:58 UTC
Description:
I have an odt document created with LibreOffice 24.2.4 x86_64 (51a6219feb6075d9a4c46691dcfe0cd9c4fff3c2) that crashes writer when I try to export it as PDF.

Steps to Reproduce:
1. Open odt document
2. Try to export as PDF (click PDF icon from the top toolbar)

Actual Results:
Writer crashes

Expected Results:
Writer exports to PDF


Reproducible: Couldn't Reproduce


User Profile Reset: No

Additional Info:
It is possible that I tried to close Writer before it finished exporting. I'm not sure.
Comment 1 Mihai Donțu 2025-08-21 22:46:24 UTC
Created attachment 202443 [details]
output of flatpak-coredumpctl

The output of: flatpak-coredumpctl --gdb-arguments "--batch -ex \"t a a bt\"" org.libreoffice.LibreOffice
Comment 2 Mihai Donțu 2025-08-21 22:49:07 UTC
Created attachment 202444 [details]
Detailed backtrace

The output of: flatpak-coredumpctl --gdb-arguments "--batch -ex \"bt full\"" org.libreoffice.LibreOffice
Comment 3 raal 2025-08-22 05:52:53 UTC
PLease attach the document. Thank you.
Comment 4 Mihai Donțu 2025-08-22 09:30:43 UTC
Unfortunately, I'm unable to attach the document. It's been privately shared with me and I do not have permission to distribute it.
Comment 5 Xisco Faulí 2025-08-22 13:08:40 UTC
(In reply to Mihai Donțu from comment #4)
> Unfortunately, I'm unable to attach the document. It's been privately shared
> with me and I do not have permission to distribute it.

Hi Mihai,
Would it be possible to share the document with me privately so I can investigate the issue ?
Thanks in advance
Comment 6 Mihai Donțu 2025-08-27 11:07:15 UTC
Hi Xisco,

I have asked but I did not get the OK. I'm sorry.

Regards,
Comment 7 BogdanB 2025-08-27 17:51:38 UTC
Mihai, you can try 3 more things, without sharing the file:

- the simple one, reset user profile and see if the problem is gone ((<https://wiki.documentfoundation.org/UserProfile>))

- the harder one: install more versions: maybe 25.2 or 24.8 and see if the problem is gone with them. So, we will know the version that broke the file export. 

- the hardest one, try to bibisect this problem. (https://wiki.documentfoundation.org/QA/Bibisect/Linux)
Comment 8 Mihai Donțu 2025-08-27 20:35:21 UTC
The file export is not broken. I mentioned in the description that I might've waited too little for the export to complete before closing Writer and now I managed to confirm. But it's not closing the app that triggers it (somehow that's blocked during the export), it's closing the document that does it.

The odt file has 435KiB and 791 pages (870k characters). The export to PDF takes ~2s on my Ryzen 7 7840HS. It can take a bit longer if it catches my system (Fedora 43) in a bad moment.

Nevertheless, I tried resetting the profile. The issue reproduces still. It feels like a simple race triggered by an unusual user action.