Bug Hunting Session
Bug 121720 - [TABLE] A merged table cell across page (due to other columns containing multiple rows) would cause Writer hang forever
Summary: [TABLE] A merged table cell across page (due to other columns containing mult...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, perf, regression
: 126704 (view as bug list)
Depends on:
Blocks: Writer-Tables
  Show dependency treegraph
 
Reported: 2018-11-26 14:12 UTC by Franklin Weng
Modified: 2019-08-26 20:35 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Problematic odt file (67.72 KB, application/vnd.oasis.opendocument.text)
2018-11-26 14:13 UTC, Franklin Weng
Details
perf flamegraph (1.70 MB, image/svg+xml)
2019-08-05 21:41 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franklin Weng 2018-11-26 14:12:14 UTC
Description:
1. The file was converted from doc to odt.
2. There are tables with multiple columns which made the cell width narrow
3. A cell (in the attached file the leftest column) is across the page due to other columns containing multiple rows, the part in the top of the second page wouldn't be able to edit, and couldn't be clicked showing that the cell was locked and couldn't be edited
4. Opening such files in LibreOffice 5.2+ would cause Writer hang forever with CPU rate 100+%
5. However in LibreOffice 4.0 when clicking such a cell the cursor can go there, just can't edit, and doesn't hang either

Steps to Reproduce:
1. Open the attached file in LibreOffice 5.2+ Writer (also reproducible in 6.1.2)
2. Writer would very easily hang after some actions
3.

Actual Results:
Writer hangs forever until I manually killed the process

Expected Results:
It shouldn't hang


Reproducible: Always


User Profile Reset: Yes



Additional Info:
In LibreOffice 4.0 it worked well opening/editing the file.

When clicking the crossed cell the cursor could go to the second part (in the top of the second page) just couldn't edit.

In 5.2+ the cursor couldn't go there, and it hangs every time.
Comment 1 Franklin Weng 2018-11-26 14:13:47 UTC
Created attachment 147052 [details]
Problematic odt file

The file was converted from doc to odf.  Built by Word 2003 originally.
Comment 2 Xisco Faulí 2018-11-26 15:23:57 UTC
Reproduced in

Version: 6.2.0.0.beta1+
Build ID: a63cd8bbe7cf881daa8dc7a7f32f3e5ac384e902
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

but not in

Version: 5.3.0.0.alpha1+
Build ID: 4136757b4e51c4e6f7cb4132c95538a7f831ef2c
CPU Threads: 4; OS Version: Linux 4.15; UI Render: default; VCL: gtk3; Layout Engine: new; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group
Comment 3 Xisco Faulí 2018-11-26 15:35:21 UTC
Regression introduced by:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=6f5024de2e1a5cc533527e45b33d9a415467c48d

author	Mike Kaganski <mike.kaganski@collabora.com>	2016-12-08 23:01:03 +0300
committer	Miklos Vajna <vmiklos@collabora.co.uk>	2016-12-12 08:23:30 +0000
commit	6f5024de2e1a5cc533527e45b33d9a415467c48d (patch)
tree	de8f7248a9f0361e23dcbb1eacb72f67071d51a9
parent	7740e945e0c74d057c424cced079adc766cc5604 (diff)
tdf#104425 sw: split rows w/large min height (fix layout loop)

Bisected with: bibisect-linux-64-5.4

Adding Cc: to Mike Kaganski
Comment 4 Mike Kaganski 2018-11-26 19:58:37 UTC
(In reply to Xisco Faulí from comment #3)

Hmm... but OP told that 5.2 already hangs?
Comment 5 Franklin Weng 2018-11-26 21:30:23 UTC
(In reply to Mike Kaganski from comment #4)
> (In reply to Xisco Faulí from comment #3)
> 
> Hmm... but OP told that 5.2 already hangs?

A customized 5.2.7 (for Taiwan gov) has this problem.  BTW not sure if your patch was back ported or not.
Comment 6 Xisco Faulí 2019-08-05 11:20:24 UTC
*** Bug 126704 has been marked as a duplicate of this bug. ***
Comment 7 Xisco Faulí 2019-08-05 11:21:34 UTC
@Julien, Could it be possible to have a perf graph here ?
Comment 8 Julien Nabet 2019-08-05 21:41:55 UTC
Created attachment 153148 [details]
perf flamegraph