Bug 162249 - LibreOffice draw crashed when opening a PDF file
Summary: LibreOffice draw crashed when opening a PDF file
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
24.2.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks: PDF-Import-Draw
  Show dependency treegraph
 
Reported: 2024-07-29 13:58 UTC by Pierre-Baptiste
Modified: 2025-01-11 19:34 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
The file that crash Libre Office Draw (21.10 MB, application/pdf)
2024-07-29 13:59 UTC, Pierre-Baptiste
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre-Baptiste 2024-07-29 13:58:57 UTC
Description:
When oppening a PDF file downloaded from a website the app crash with no errors message. Windows just say that the window don't respond.

The file is public, see the reproduct steps for the link.
The crash happen each time but tell me if you want me to start debugging with WinDbg

Steps to Reproduce:
1. Download the sample file from https://cms.kosmos.de/Downloads/4002051682309_Anno1800_Erweiterung_Manual_DE_201223_web.pdf
2. Click on File -> Open and select the file
3. Watch LO Draw crash

Actual Results:
The file won't open

Expected Results:
The file to be opened


Reproducible: Always


User Profile Reset: No

Additional Info:
Tested with both 24.2.5.2 and 24.8.0.1 but I am getting the same result.
I am on a fresh install of Libre Office.
I tried with 2 computers on windows 11, the progress bar stop alway at the same point.
Comment 1 Pierre-Baptiste 2024-07-29 13:59:31 UTC
Created attachment 195585 [details]
The file that crash Libre Office Draw
Comment 2 Julien Nabet 2024-07-29 16:50:25 UTC
On pc Debian x86-64 with master sources updated today, I don't have a crash but it hangs.

Trying to retrieve a bt, I got:
#0  basegfx::(anonymous namespace)::findTouchesOnEdge(basegfx::B2DPoint const&, basegfx::B2DPoint const&, basegfx::B2DPolygon const&, unsigned int, std::__debug::vector<basegfx::(anonymous namespace)::temporaryPoint, std::allocator<basegfx::(anonymous namespace)::temporaryPoint> >&) (rCurr=..., rNext=..., rPointPolygon=bezier curve basegfx::B2DPolygon = {...}, 
/build/reproducible-path/gdb-13.2/gdb/findvar.c:570: internal-error: read_var_value: Assertion `frame != NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
----- Backtrace -----
0x558e648f83de ???
...
0x7fbc9795ec89 __libc_start_call_main
	../sysdeps/nptl/libc_start_call_main.h:58
0x7fbc9795ed44 __libc_start_main_impl
	../csu/libc-start.c:360
0x558e64861460 ???
0xffffffffffffffff ???
---------------------
/build/reproducible-path/gdb-13.2/gdb/findvar.c:570: internal-error: read_var_value: Assertion `frame != NULL' failed.
A problem internal to GDB has been detected,
Comment 3 m_a_riosv 2024-07-29 20:35:20 UTC
I don't know much time took, but at the end the file was loaded.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 46f7dcc5f499892ef093147b3f739c258bbf6b81
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 4 Bogaboga Man 2024-08-03 18:50:29 UTC
That file fails the "Valid PDF" check with the following message: -

The validation for file 4002051682309_Anno1800_Erweiterung_Manual_DE_201223_web.pdf against PDF/A-2B validation profile was not successful, your file broke the following rules:

All properties specified in XMP form shall use either the predefined schemas defined in the XMP Specification, ISO 19005-1 or this part of ISO 19005, or any extension schemas that comply with 6.6.2.3.2

The crash may be expected after all. Maybe LO should find a way to handle the crash?
Comment 5 Pierre-Baptiste 2024-08-03 18:55:58 UTC
Any other PDF tool I could find open the file correctly. I also tried some PDF fix tools but got no good result with that.

Maybe instead of crashing he could just skip the bad part ?
Comment 6 Buovjaga 2024-09-05 13:15:04 UTC
Yep, no crash, just takes a while to load. It's a heavy file after all, 21 MB.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5c64b81b4d5bd347e57ba156bb0c34d09fb6aa5b
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 5 September 2024