Bug 73805 - EDITING: Layout Loop when writing into a section with 3 columns
Summary: EDITING: Layout Loop when writing into a section with 3 columns
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: Inherited From OOo
Hardware: Other All
: highest blocker
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: BSA
Keywords:
: 79636 (view as bug list)
Depends on:
Blocks: mab4.3
  Show dependency treegraph
 
Reported: 2014-01-19 18:12 UTC by Reversed suomynonA
Modified: 2014-12-08 10:43 UTC (History)
6 users (show)

See Also:
i915 platform:
i915 features:


Attachments
The test document (appending further text causes error) (10.00 KB, application/vnd.oasis.opendocument.text)
2014-01-19 18:12 UTC, Reversed suomynonA
Details

Description Reversed suomynonA 2014-01-19 18:12:24 UTC
Created attachment 92410 [details]
The test document (appending further text causes error)

Problem description: When I write more than two lines in a section consisting of three columns, LO-Writer crashes.

Steps to reproduce:
1. Open attached document
2. Append any text to the first column.

Current behavior: The application stops working.

Expected behavior: The application should continue working and the entered text should be wrapped to the second column.

              
Operating System: Windows (other)
Version: 4.1.4.2 release
Comment 1 Ken Biondi 2014-01-19 19:43:20 UTC
I confirm this bug on the two versions below.  I'm changing the priority to highest blocker since this bug causes frequent freezes.

I tested using:
WIN 8
x86-64
Version: 4.2.0.2
Build ID: cd65d6220c5694ee7012d7863bcde3455c9e3c30
and
Version: 4.1.4.2
Build ID: 0a0440ccc0227ad9829de5f46be37cfb6edcf72
Comment 2 Julien Nabet 2014-01-20 21:25:33 UTC
On pc Debian x86-64 with master sources updated today, I can reproduce this.

I tried some gdb and noticed this:
3       breakpoint     keep y   0x00002aaac8e98b66 in SwLayoutFrm::ContainsCntnt() const 
                                                   at /home/julien/compile-libreoffice/libo/sw/source/core/layout/findfrm.cxx:105
	breakpoint already hit 691 times
See http://opengrok.libreoffice.org/xref/core/sw/source/core/layout/findfrm.cxx#80

Michael: one for you?
Comment 3 Jean-Baptiste Faure 2014-01-22 11:23:07 UTC
Tested with versions master, 4.2.1.0.0+ and 4.2.0.2 on Ubuntu 13.10 x86-64. No crash for me but LO freezes with what seems an infinite loop.
 
There is something strange in the test file: 
1/ it has 2 lines in the first column and nothing in column 2 and 3
2/ the section is formatted with the option "Evenly distribute contents to all columns"
These 2 facts are incompatible: with 2/ we should have one line in column 1 and one line in column 2.

If I go to Format > Section > Options > Tab Column and uncheck the option, then I do not reproduce the freeze anymore. If I insert some text, go back to the column tab and recheck this option, it still works as expected.

Last thing, I can't reproduce the problem from an empty file:
a/ insert a section with 3 columns
b/ type some text in column 1
whatever is the option chosen for the text distribution in the columns.

Hope this helps. Best regards. JBF
Comment 4 Michael Stahl 2014-01-22 12:55:43 UTC
that's amazing - this loops (on Linux) in every version of LO and OOo i tried,
back to OOo 3.0.1.  so no regression.  but very good reproducer document :)

lots of assertions like this:
warn:legacy.osl:6156:1:sw/source/core/layout/flowfrm.cxx:2532: <SwFlowFrm::MoveBwd(..)> - layout loop control for layout action <Move Backward> applied!
warn:legacy.osl:6156:1:sw/source/core/layout/layact.cxx:851: LoopControl_2 in Interrupt formatting in SwLayAction::InternalAction


with 2 or 4 or 5 columns it doesn't loop.

un-checking "Evenly distribute contents to all columns" makes it not loop.

if the first-line indent of the paragraph in the section is set to 0
then it loops just for a couple of seconds and the document is then
editable again.
Comment 5 Michael Stahl 2014-01-22 12:58:09 UTC
(In reply to comment #3)
> There is something strange in the test file: 
> 1/ it has 2 lines in the first column and nothing in column 2 and 3
> 2/ the section is formatted with the option "Evenly distribute contents to
> all columns"
> These 2 facts are incompatible: with 2/ we should have one line in column 1
> and one line in column 2.

i guess Widow / Orphan settings have something to do with this.
Comment 6 tommy27 2014-05-02 13:53:19 UTC
freeze still reproducible under Win7x64 using 4.2.3.3
moving it to mab4.2 list since 4.1.x is END OF LIFE
Comment 7 Julien Nabet 2014-05-28 17:39:52 UTC
Just for information, I can reproduce this on pc Debian x86-64 with master sources updated yesterday.
Comment 8 Michael Stahl 2014-06-05 11:34:08 UTC
*** Bug 79636 has been marked as a duplicate of this bug. ***
Comment 9 tommy27 2014-12-08 10:43:08 UTC
retested under Win8.1 x64
both LibO 4.3.4.1 and 4.5.0.0alpha freeze after adding text to 1st column

moving bug to mab4.3 list since 4.2.x is EOL


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.