Bug 142983 - Shape from gallery saved to .doc is malformed
Summary: Shape from gallery saved to .doc is malformed
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Gallery DOC-Shapes
  Show dependency treegraph
 
Reported: 2021-06-22 12:51 UTC by Stéphane Guillou (stragu)
Modified: 2023-05-29 18:44 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Test .doc with problematic circular-arrow shape (10.00 KB, application/msword)
2021-06-22 12:51 UTC, Stéphane Guillou (stragu)
Details
video of issue in LO 7.3 alpha0 (10.68 MB, video/mp4)
2021-06-22 12:57 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Guillou (stragu) 2021-06-22 12:51:05 UTC
Description:
The shape "circular-arrow", from the gallery, is malformed when saved to .doc and reopened. Selecting it increases the RAM use of LibreOffice up to 1.3 GB, makes the shape disappear, and creates visual artefacts in the viewport.

Is this a "memory leak"?

Steps to Reproduce:
Use all steps here, or use the attached document and start at step 4:

1. Open Writer
2. Insert the shape "circular-arrow" from the gallery sidebar, "Arrows" category
3. Save document as .doc and close Writer
4. Open document again
5. Click on the shape

Actual Results:
Shape does not look at all like the original. Clicking it brings up memory use of LibreOffice up to 1.3 GB of memory, and hangs the system for a few seconds. Memory use goes back down once the shape disappears. Clicking the area where the shape was will select the invisible object once more, and will bring the memory use up once more. Some visual artefacts might appear in the viewport.

Expected Results:
Shape looks the same as original, and memory use does not increase dramatically, and shape does not disappear.


Reproducible: Always


User Profile Reset: No



Additional Info:
I am wondering if this has to do with the fact that the malformed shape overflows possibly infinitely to the left side of the document.

Shape only disappears in 7.2 beta1 and 7.3 alpha0.

Tested in:

Version: 7.0.6.2
Build ID: 144abb84a525d8e30c9dbbefa69cbbf2d8d4ae3b
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Version: 7.1.4.2 / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Version: 7.2.0.0.beta1 / LibreOffice Community
Build ID: c6974f7afec4cd5195617ae48c6ef9aacfe85ddd
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: e3086b58eb5427d520b86c185f9d911bb6f7a3a0
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-06-21_15:37:11
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2021-06-22 12:51:59 UTC
Created attachment 173084 [details]
Test .doc with problematic circular-arrow shape
Comment 2 Stéphane Guillou (stragu) 2021-06-22 12:57:04 UTC
Created attachment 173085 [details]
video of issue in LO 7.3 alpha0

This video shows:

- the shape of what used to be a circular arrow
- the memory increase when selecting it (from about 130 MB to up to 1.3 GB)
- the shape disappearing
- the visual artefacts in the viewport as well as in the sidebar
Comment 3 Dieter 2021-07-07 19:55:05 UTC
I confirm, that the shape is malformed, but I can't confirm, that memory increases. So I set status to new, but reduce bug summary to the first problem.

Tested with

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 949658028e722e5d2657b503eb20e16e41dbd8cf
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 4 BogdanB 2021-07-08 05:14:59 UTC
The same confirm shape deformation, but not the memory problem.

Version: 7.1.4.2 (x64) / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: ro-RO (ro_RO); UI: en-US
Calc: threaded
Comment 5 Stéphane Guillou (stragu) 2021-07-08 12:02:05 UTC
I have reported the memory issue separately in Bug 143257. It might be Linux-only as I could reproduce on two computers, one with Ubuntu 18.04, the other with Ubuntu 20.04.
Comment 6 Justin L 2023-05-29 18:44:48 UTC
repro 7.6+
It looked similar in OOo 3.3.