Bug 141655 - Hangs when opening a particular CZ 2-pages DOC with table
Summary: Hangs when opening a particular CZ 2-pages DOC with table
Status: RESOLVED DUPLICATE of bug 146500
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.0.0.3 release
Hardware: All All
: high major
Assignee: Not Assigned
URL: https://www.ceskaposta.cz/documents/1...
Whiteboard:
Keywords: bibisected, bisected, filter:doc, regression
: 149330 (view as bug list)
Depends on:
Blocks: DOC-Opening
  Show dependency treegraph
 
Reported: 2021-04-12 17:34 UTC by Petr Vones
Modified: 2023-05-21 00:21 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
The DOC file that causes it to hang. (246.50 KB, application/msword)
2021-04-12 17:34 UTC, Petr Vones
Details
The DOC file as opened in LO 6.3 (139.10 KB, application/pdf)
2022-05-27 13:53 UTC, Timur
Details
The DOC saved in MSO as DOCX (53.75 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-05-27 13:54 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Vones 2021-04-12 17:34:08 UTC
Description:
LibreOffice hangs when opening following DOC file:

https://www.ceskaposta.cz/documents/10180/461522/podaci-listek-vpis.doc/c98cc48f-1e7e-4d56-97e6-9b8ee7237a39

It is reproducible on multiple systems.

Steps to Reproduce:
1. Download file 'podaci-listek-vpis.doc' from here: https://www.ceskaposta.cz/documents/10180/461522/podaci-listek-vpis.doc/c98cc48f-1e7e-4d56-97e6-9b8ee7237a39
2. Open it


Actual Results:
File is opened or an error message is displayed.

Expected Results:
It hangs and becomes unresponsive, you can see high CPU utilization of the LibreOffice process.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.5.2 (x64)
Build ID: 64390860c6cd0aca4beafafcfd84613dd9dfb63a
CPU threads: 12; OS: Windows 10.0 Build 19042; UI render: default; VCL: win
Locale: cs-CZ (cs_CZ); UI: en-US
Calc: CL
Comment 1 Petr Vones 2021-04-12 17:34:50 UTC
Created attachment 171134 [details]
The DOC file that causes it to hang.
Comment 2 Telesto 2021-04-13 07:44:54 UTC Comment hidden (obsolete)
Comment 3 Raji 2021-04-13 12:35:42 UTC
I have checked in win64-7.0 this repos.
 6d54cb6064c6bc3d0333f76e07a7dda83cf90b3b is the first bad commit
commit 6d54cb6064c6bc3d0333f76e07a7dda83cf90b3b
Author: Norbert Thiebaud <nthiebaud@gmail.com>
Date:   Tue Nov 26 10:27:04 2019 -0800

    source 2c918aa51e5528b090e52fa31b10fa17cf2593ae

    source 2c918aa51e5528b090e52fa31b10fa17cf2593ae

Adding CC to: Norbert Thiebaud <nthiebaud@gmail.com>
Comment 4 Telesto 2021-04-14 17:36:44 UTC
author	László Németh <nemeth@numbertext.org>	2019-11-19 21:12:28 +0100
committer	László Németh <nemeth@numbertext.org>	2019-11-21 19:50:25 +0100
commit 2c918aa51e5528b090e52fa31b10fa17cf2593ae (patch)
tree 27bcd35ab6c0929fadb0c44ee88a7a7a3e9e785f
parent 46f8f48ebfe25e26b4d1c0718c772abbee70b889 (diff)
tdf#125300 extend AddParaSpacingToTableCells with line spacing
Now default compatibility mode AddParaSpacingToTableCells uses
not only paragraph bottom margin, but also proportional line
spacing before bottom cell border, as in MSO.

Note: disable testForcepoint76, because it fails again with
its fixed layout.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=2c918aa51e5528b090e52fa31b10fa17cf2593ae
Comment 5 Telesto 2021-04-14 17:37:35 UTC Comment hidden (obsolete)
Comment 6 Xisco Faulí 2022-05-03 12:08:07 UTC
Dear László Németh,
This bug has been in ASSIGNED status for more than 3 months without any
activity. Resetting it to NEW.
Please assign it back to yourself if you're still working on this.
Comment 7 Xisco Faulí 2022-05-19 14:26:03 UTC Comment hidden (obsolete)
Comment 8 Timur 2022-05-19 14:32:15 UTC Comment hidden (obsolete)
Comment 9 Xisco Faulí 2022-05-19 14:38:18 UTC
(In reply to Timur from comment #8)
> Major as it hangs LO, High as a regression.

layout regressions are tricky. Can you check with different versions? (e.g Libo 3.3, 4.0, 5.0 and so on)
Comment 10 Timur 2022-05-27 13:20:09 UTC
*** Bug 149330 has been marked as a duplicate of this bug. ***
Comment 11 Timur 2022-05-27 13:53:58 UTC
Created attachment 180431 [details]
The DOC file as opened in LO 6.3

(In reply to Telesto from comment #2)
> Waited 75 seconds with Version: 7.2.0.0.alpha0+ (x64) / OS: Windows 6.3 
> Opens with 19 seconds (which still 'slowish') with Version: 6.2.0.0.alpha0+
> Similar score with 4.4.7.2

Hangs in 7.4+ from 6.4 as reported.
LO 6.3 opens 2 pages as attached, export from Linux.
LO 6.0 and below up to 4.0 opened 3 pages, 3rd one empty. 
LO 3.6 opened with 2 pages. 
LO 3.5 was wrong. 

Same if DOC resaved with MSO. MSO saved DOCX opens.
Comment 12 Timur 2022-05-27 13:54:28 UTC
Created attachment 180432 [details]
The DOC saved in MSO as DOCX
Comment 13 raal 2022-10-30 08:25:53 UTC
No error in Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: f3a82a8ba51195cf31b0f78164735acc7ebbcd2f
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

Still problem in Version: 7.4.2.3 (100 % CPU during load of file)

@Petr, please could you test it with dev version?  You can download it here:
http://dev-builds.libreoffice.org/daily/master/. If you find time, please could you test all documents of Ceska posta - https://www.ceskaposta.cz/ke-stazeni/formulare-a-tiskopisy ?
Thank you
Comment 14 Gabor Kelemen (allotropia) 2023-05-21 00:21:30 UTC
The doc file seems to open quickly in 7.5 since:

https://git.libreoffice.org/core/+/8c32cc17ce914188ea6783b0f79e19c5ddbf0b8d

author	Michael Stahl <michael.stahl@allotropia.de>	Fri Oct 14 16:59:42 2022 +0200
committer	Michael Stahl <michael.stahl@allotropia.de>	Fri Oct 14 21:38:51 2022 +0200

tdf#146500 sw: try to fix some layout loops caused by fly in table cell

*** This bug has been marked as a duplicate of bug 146500 ***