Download it now!
Bug 116501 - Writer freezes when working with this particular ODT document
Summary: Writer freezes when working with this particular ODT document
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Whiteboard: target:6.3.0
Keywords: haveBacktrace, preBibisect, regression
Depends on:
Blocks: CPU-AT-100%
  Show dependency treegraph
Reported: 2018-03-19 15:55 UTC by Gabor Kelemen
Modified: 2019-05-08 09:49 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:

The problematic document (68.10 KB, application/vnd.oasis.opendocument.text)
2018-03-19 15:55 UTC, Gabor Kelemen
bt with debug symbols (7.39 KB, text/plain)
2018-03-19 20:39 UTC, Julien Nabet
improved test document (used for unit testing, too): freezing at opening (54.06 KB, application/vnd.oasis.opendocument.text)
2019-05-08 09:49 UTC, László Németh

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen 2018-03-19 15:55:48 UTC
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 <<

Actual results:
LibreOffice Writer freezes immediately when a line on the third page is deleted.

Expected results:
LibreOffice shouldn't freeze.
Comment 1 Telesto 2018-03-19 16:14:55 UTC
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

and with
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL

and with
Build ID: 3215f89-f603614-ab984f2-7348103-1225a5

but not with (probably because of a different rendering of the table layout)
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-
Comment 2 Julien Nabet 2018-03-19 20:39:01 UTC
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.
Comment 3 Julien Nabet 2018-03-19 20:50:44 UTC
Michael: thought you might be interested in this one
Comment 4 László Németh 2019-05-07 15:43:07 UTC
Proposed fix:
Comment 5 Commit Notification 2019-05-08 09:47:16 UTC
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 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.
Comment 6 László Németh 2019-05-08 09:49:45 UTC
Created attachment 151237 [details]
improved test document (used for unit testing, too): freezing at opening