Bug 157917 - Crash - Export of Draw file to PDF-1/A
Summary: Crash - Export of Draw file to PDF-1/A
Status: RESOLVED DUPLICATE of bug 157182
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.6.2.1 release
Hardware: All macOS (All)
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2023-10-25 10:58 UTC by Alex Thurgood
Modified: 2023-10-26 08:36 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
AppleTrace on hang (3.10 MB, text/plain)
2023-10-25 12:15 UTC, Alex Thurgood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Thurgood 2023-10-25 10:58:15 UTC
Description:
I have a multipage Draw file (8 sheets), each page contains one or more inserted images, PNG or SVG.
Each image is annotated with a Bezier curve line or a simple straight line.
Each image also has a series of text boxes, containing numbering.

When I attempt to export this Draw file to PDF1/A, LO either hangs indefinitely, requiring a forced kill, or crashes, and a zero byte temporary file is created.

The recovery dialog is started and I can recover the Draw file, but no PDF file is created.

If I export to PDF3/A, there is no problem, and the file is created.

Lossless compression option is selected in the export options.
Reduce to 300 dpi option is selected.

 

Steps to Reproduce:
1. Open, or create a multi-page draw file containing inserted PNG and/or SVG images.

2. Annotate each image with a Bezier curve leading from a point on the image to outside the image frame, and then add a textbox with a number at the end of the Bezier curve.

3. Try and export the Draw file to PDF 1/A.



Actual Results:
Crash, or indefinite hang requiring force kill.
Recovery dialog starts up, and zero byte temporary file created.

Expected Results:
No crash, and creation of the requested PDF format document.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
PDF 1/A format is a requirement for use with certain international administrations, such as WIPO, when filing patent applications.
Comment 1 Alex Thurgood 2023-10-25 11:02:41 UTC
No crash with

Version: 7.5.4.2 (AARCH64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 8; OS: Mac OS X 14.0; UI render: Skia/Raster; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

==>> regression
Comment 2 Alex Thurgood 2023-10-25 11:06:35 UTC
Note that when using LO 7.5.4.2, I get a message during export that transparencies are going to be removed because they are unsupported in the chosen version of PDF export.

This message is not displayed when using LO 7621.
Comment 3 Alex Thurgood 2023-10-25 12:15:37 UTC
Created attachment 190412 [details]
AppleTrace on hang

Trace provided by Apple when forcing kill on hung LO process
Comment 4 Alex Thurgood 2023-10-25 12:39:33 UTC
FWIW, when clicking on the Export button in the Export dialog, LODev does not crash running in a LLDB session, but spews out many lines of warning:

warn:vcl.gdi:11759:183085:vcl/source/outdev/stack.cxx:101: OutputDevice::Pop() without OutputDevice::Push()

warn:vcl.pdfwriter:11759:183085:vcl/source/gdi/pdfwriter_impl.cxx:8477: invalid conversion
x14

and then again :

warn:vcl.gdi:11759:183085:vcl/source/outdev/stack.cxx:101: OutputDevice::Pop() without OutputDevice::Push()

warn:vcl.pdfwriter:11759:183085:vcl/source/gdi/pdfwriter_impl.cxx:8477: invalid conversion
x22

warn:legacy.osl:11759:183085:vcl/source/gdi/pdfwriter_impl.cxx:10842: document structure in disorder !
x60

warn:vcl.gdi:11759:183085:vcl/source/outdev/stack.cxx:101: OutputDevice::Pop() without OutputDevice::Push()

warn:vcl.pdfwriter:11759:183085:vcl/source/gdi/pdfwriter_impl.cxx:8477: invalid conversion
x7


warn:legacy.osl:11759:183085:vcl/source/gdi/pdfwriter_impl.cxx:10842: document structure in disorder !
x84
Comment 5 Stéphane Guillou (stragu) 2023-10-25 13:03:43 UTC
Pretty confident this is a duplicate of bug 157182, already fixed in 7.6.3. Please confirm that it is fixed in a 7.6.3 pre-release.

*** This bug has been marked as a duplicate of bug 157182 ***
Comment 6 Alex Thurgood 2023-10-26 08:36:20 UTC
(In reply to Stéphane Guillou (stragu) from comment #5)
> Pretty confident this is a duplicate of bug 157182, already fixed in 7.6.3.
> Please confirm that it is fixed in a 7.6.3 pre-release.
> 
> *** This bug has been marked as a duplicate of bug 157182 ***

I would agree, in LODev daily builds it doesn't crash, and the PDF is created/saved, but the console spews out the warnings I listed in comment 4.

From reading Michael's comments on the commit which fixes the crashing problem, it seems that this is intended, i.e. the "destructured" warnings are removed by pdfwriter_impl, so as far as I can see the crashing issue is resolved (although not very reassuring to see such warnings on the console).