Created attachment 140716 [details]
The problematic document
LibreOffice Writer freezes when working with the attached ODT file. The document contains tables and some images anchored to paragraph. LibreOffice tends to freeze when working with this document. The easiest way to trigger the freeze is just deleting one line from the third page to move the image from the top of the fourth page to the bottom of the third page. Changing the anchor of the images from “to paragraph” to “as characters” solves the issue, so the bug might be related how LibreOffice is handling images inside tables when they are at the bottom end of the page.
Steps to reproduce:
1. Download the following file: LO-ODT-freeze.odt
2. Open the file with LibreOffice Writer.
3. Go to the third page.
4. Find and delete the first line on the top of the third page that contains the following text: >> DELETE THIS LINE << >> DELETE THIS LINE << >> DELETE THIS LINE <<
LibreOffice Writer freezes immediately when a line on the third page is deleted.
LibreOffice shouldn't freeze.
Build ID: e5bc7fa4e83b33fc3eee343e560a4f8cb91eacd6
CPU threads: 4; OS: Windows 6.3; UI render: default;
TinderBox: Win-x86@42, Branch:master, Time: 2018-03-14_23:37:38
Locale: nl-NL (nl_NL); Calc: CL
Selecting the line was enough in my case
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Build ID: 3215f89-f603614-ab984f2-7348103-1225a5
but not with (probably because of a different rendering of the table layout)
Created attachment 140724 [details]
bt with debug symbols
On pc Debian x86-64 with master sources updated today (+enable-dbgutil), I got a segfault just when opening the file.
Michael: thought you might be interested in this one
Proposed fix: https://gerrit.libreoffice.org/#/c/71920/
László Németh committed a patch related to this issue.
It has been pushed to "master":
tdf#116501 fix freezing at embedded text tables
It will be available in 6.3.0.
The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Created attachment 151237 [details]
improved test document (used for unit testing, too): freezing at opening