Bug 163253 - [DOCX] Document with many shapes is messed up by Writer
Summary: [DOCX] Document with many shapes is messed up by Writer
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: Shapes
  Show dependency treegraph
 
Reported: 2024-10-02 12:46 UTC by Rafael Lima
Modified: 2024-10-09 04:08 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
DOCX file where the problem happens (145.13 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-10-02 12:46 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2024-10-02 12:46:17 UTC
Created attachment 196840 [details]
DOCX file where the problem happens

I have a DOCX file with many shapes... they're supposed to represent trucks for an activity we conduct during classes at my university.

If you open this file in MS Word (desktop app), it will have 6 pages, each with a truck.

However, when I open this file in Writer, I get only 2 pages and all trucks are messed up.

I believe this file is a nice test case for importing shapes in LO Writer.

For benchmarking purposes:
- OnlyOffice imports the trucks correctly, but skips the blank pages.
- WPS messes the document.
- Google Drive also messes the document.
- Word Online imports the trucks correctly, but the file has 11 pages for some reason

Tested with

Version: 24.2.5.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 4:24.2.5-0ubuntu0.24.04.2
Calc: threaded

I get the same result with

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: eb73e2c8b66ef3539e68ee8150e119bbe437955c
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded

On a debug build I get lots of DBG_UNHANDLED_EXCEPTION warnings regarding SvxCustomShape.
Comment 1 Rafael Lima 2024-10-02 12:48:41 UTC
Fixing a typo from my previous comment:

For benchmarking purposes:
- OnlyOffice imports the trucks correctly (the document has 6 pages)
- WPS messes the document.
- Google Drive also messes the document.
- Word Online imports the trucks correctly, but the file has 11 pages for some reason (it alternates trucks and blank pages)
Comment 2 m_a_riosv 2024-10-02 16:03:26 UTC
Reproducible
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0679a5cee16ae96c0d11e7d4fc1e59fb0f9cc591
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

OOo open the file without shapes.
With LO 3.3, there is the issue.