Bug 123910 - Writer hangs when deleting a line of text
Summary: Writer hangs when deleting a line of text
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Undo-Redo
  Show dependency treegraph
 
Reported: 2019-03-06 22:41 UTC by Hal Miller
Modified: 2022-08-22 23:33 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Try to backspace out that blank line on page 3 near the bottom (16.04 KB, application/vnd.oasis.opendocument.text)
2019-03-11 19:22 UTC, Hal Miller
Details
Modified version (highlighting added) (22.04 KB, application/vnd.oasis.opendocument.text)
2022-05-17 19:11 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hal Miller 2019-03-06 22:41:01 UTC
Description:
Writer hangs when I delete a line of text, anywhere in the document. Occurs every time now (worked before in same file), anywhere in the file. I see nothing unusual when using the show formatting marks.

Steps to Reproduce:
1.backspace through text to beginning of line, and once more onto previous line
2.
3.

Actual Results:
Cursor backs up to end of previous line, Writer hangs. CPU usage goes to 100%. Eventually get the LibreOffice warning that it needs either a force-quit or wait. Force quit allows recovery next time I launch, but problem recurs.
This was working fine as I edited this file over the course of months, but now I am stuck. Fails wherever in the file I delete a line, even in places I previously did so.

Expected Results:
Allow continued operation.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
CentOS 7 on a Sony VAIO. Seems limited to only a few files I am working with, each in the 1.5 meg range size. Each, as with other files that do not crash it, has both Hebrew and English scattered throughout, but the hang seems unrelated to where I am working. Reproduceable every time with the same files. Same occurred on Writer 5.4.4.2 with the same files (then I upgraded, but same result).

Version: 6.1.5.2
Build ID: 90f8dcf33c87b3705e78202e3df5142b201bd805
CPU threads: 4; OS: Linux 3.10; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); Calc: group threaded
Comment 1 Hal Miller 2019-03-10 20:41:34 UTC
Working in 6.1.5.2.
I added 3 blank lines before the latest hang point in the doc, and could then delete one of the "problem" lines. I deleted at that point the 280+ pages before this, and am able to work, hoping I will be able to tie together two halves of the doc once all editing is completed. I am using no fancy characters, just English and Hebrew character sets spread throughout.
Sounds like a pointer problem/buffer overrun somewhere.
Comment 2 Hal Miller 2019-03-11 19:22:14 UTC
Created attachment 149892 [details]
Try to backspace out that blank line on page 3 near the bottom
Comment 3 Dieter 2019-03-11 19:37:04 UTC
I confirm it with

Version: 6.3.0.0.alpha0+ (x64)
Build ID: 91cdf22b88a4f7bec243c8fb187627e766d3294c
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-03-08_00:38:10
Locale: en-US (de_DE); UI-Language: en-US
Calc: threaded

and with

Version: 6.1.5.2 (x64)
Build-ID: 90f8dcf33c87b3705e78202e3df5142b201bd805
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE); Calc: group threaded
Comment 4 Xisco Faulí 2019-03-22 16:04:54 UTC
I can reproduce it in

Version: 6.3.0.0.alpha0+
Build ID: f8ca6e0a59bff51fcb09af4fa6d9cd458b32f223
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: 6.0.0.0.alpha1+
Build ID: 6eeac3539ea4cac32d126c5e24141f262eb5a4d9
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group threaded

another way to reproduce it

1. Open attached file
2. Ctrl + A
3. Del
4. Undo
Comment 5 Xisco Faulí 2019-03-22 16:25:03 UTC
mmm, I've tried to bisect it and it points to 

https://cgit.freedesktop.org/libreoffice/core/commit/?id=4099b7628405e0ad16844eb59a916aa56ffa76ad

author	Yousuf Philips <philipz85@hotmail.com>	2017-12-16 16:55:46 +0400
committer	Yousuf Philips <philipz85@hotmail.com>	2017-12-16 23:09:56 +0100
commit 4099b7628405e0ad16844eb59a916aa56ffa76ad (patch)
tree fb476fd153755b6605af3f13e54e10d9bcf482cd
parent 167063a6835cc1f067457d39a07c360273ac8199 (diff)
tdf#113538 Add Hebrew fonts into default installation

Bisected with bibisect-linux64-6.1

Probably it arose a previous bug...

@Khaled, any idea what is going on here?
Comment 6 ⁨خالد حسني⁩ 2019-03-25 09:07:18 UTC
(In reply to Xisco Faulí from comment #5)
> mmm, I've tried to bisect it and it points to 
> 
> https://cgit.freedesktop.org/libreoffice/core/commit/
> ?id=4099b7628405e0ad16844eb59a916aa56ffa76ad
> 
> author	Yousuf Philips <philipz85@hotmail.com>	2017-12-16 16:55:46 +0400
> committer	Yousuf Philips <philipz85@hotmail.com>	2017-12-16 23:09:56 +0100
> commit 4099b7628405e0ad16844eb59a916aa56ffa76ad (patch)
> tree fb476fd153755b6605af3f13e54e10d9bcf482cd
> parent 167063a6835cc1f067457d39a07c360273ac8199 (diff)
> tdf#113538 Add Hebrew fonts into default installation
> 
> Bisected with bibisect-linux64-6.1
> 
> Probably it arose a previous bug...
> 
> @Khaled, any idea what is going on here?

No idea, but here I can’t reproduce the issue without Frank Ruehl CLM installed, so may be try installing the font then testing with old LibreOffice versions.
Comment 7 Telesto 2020-05-16 15:58:14 UTC
I'm repro this already in
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4

No issue when copy/pasting the text to a new document
Comment 8 QA Administrators 2022-05-17 03:31:06 UTC Comment hidden (obsolete)
Comment 9 Hal Miller 2022-05-17 17:27:26 UTC
I am now on Ubuntu 20:04, using LibreOffice:

Version: 6.4.7.2
Build ID: 1:6.4.7-0ubuntu0.20.04.4

and no longer have the problem.
Thanks!
Comment 10 Telesto 2022-05-17 19:11:50 UTC
Created attachment 180172 [details]
Modified version (highlighting added)

1. Open the attached file
2. Place cursor at the end of the yellow marked text
3. Press and hold backspace..LibreOffice will hang/freeze at the end of the line
Comment 11 Dieter 2022-05-17 19:17:23 UTC
(In reply to Telesto from comment #10)
> Created attachment 180172 [details]
> Modified version (highlighting added)
> 
> 1. Open the attached file
> 2. Place cursor at the end of the yellow marked text
> 3. Press and hold backspace..LibreOffice will hang/freeze at the end of the
> line

=> NEW, because still present and confirmed before.