Bug 160751 - Copying some text cause hanging of LibreOffice Writer
Summary: Copying some text cause hanging of LibreOffice Writer
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.2.2 release
Hardware: x86-64 (AMD64) All
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, dataLoss, regression
: 161132 161140 (view as bug list)
Depends on:
Blocks: Cut-Copy
  Show dependency treegraph
 
Reported: 2024-04-20 18:09 UTC by Viktor Mileikovskyi
Modified: 2024-06-14 10:16 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments
An example document. (7.84 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-04-20 18:09 UTC, Viktor Mileikovskyi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor Mileikovskyi 2024-04-20 18:09:59 UTC
Created attachment 193772 [details]
An example document.

Copying of some text causes hanging of LibreOffice Writer. Only kill helps. The latest changes are permanently lost because autosaving is also impossible.

To reproduce, we need some special text.

Steps to reproduce:
1. To avoid lost data, save and close all of your work in LibreOffice;
2. Open the attached file;
3. Select the red characters in red font;
4. Press Ctrl+C;
5. Try to edit something.

Current behaviour — freezing, approx. 25 % of CPU is used by soffice.bin. It's killable.

Expected behaviour — no problem.

If LibreOffice is started from terminal, there is no output.

I tried the appimage portable version — the same behaviour.

Deleting the configuration isn't helpful.

In other places of the document, typing и; and copying works normally. I'm really out-of-ideas, what's happen.

In some other documents, the same situation appears.

OS: LUbuntu 22.04 (fresh install)

Workaround: to use the previous portable version 7.6.6.3 (LibreOffice-still.basic-x86_64.AppImage). Or to roll back the version.
Comment 1 Viktor Mileikovskyi 2024-04-20 18:23:43 UTC
Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: uk-UA (uk_UA.UTF-8); UI: uk-UA
Ubuntu package version: 4:24.2.2~rc2-0ubuntu0.22.04.1~lo1
Calc: threaded
Comment 2 Viktor Mileikovskyi 2024-04-20 18:30:31 UTC
Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: uk-UA (uk_UA.UTF-8); UI: uk-UA
Ubuntu package version: 4:24.2.2~rc2-0ubuntu0.22.04.1~lo1
Calc: threaded

Safe mode isn't helpful.
Comment 3 raal 2024-04-21 05:24:21 UTC
3. Select the red characters in red font;

Hello, there are not red character in the document.
Comment 4 Viktor Mileikovskyi 2024-04-22 14:01:27 UTC
(In reply to raal from comment #3)
> 3. Select the red characters in red font;
> 
> Hello, there are not red character in the document.

The last two characters in the penultimate line - и;
Comment 5 raal 2024-04-22 17:12:55 UTC
(In reply to Viktor Mileikovskyi from comment #4)
> (In reply to raal from comment #3)
> > 3. Select the red characters in red font;
> > 
> > Hello, there are not red character in the document.
> 
> The last two characters in the penultimate line - и;

Thanks, now I see it.
Cannot reproduce with Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 8df17c340193c89549d8c563b04d015156afa3fb
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded Jumbo
Comment 6 Steve271 2024-05-06 23:20:28 UTC
Only reproducible using the original document and the LO version below:

Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded


Not reproducible in:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9b41d33a00763bebd5fc70787052222d35a98a52
CPU threads: 8; OS: Windows 10 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

I copied the и; characters into a new document and repeated the steps and there was no crash in either version
Comment 7 Stéphane Guillou (stragu) 2024-05-07 06:44:41 UTC
Can't reproduce on Windows 11:

Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 4; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

Nor on Ubuntu 22.04:

Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

As you can't reproduce in 7.6, you might be able to pinpoint when it started with a bibisect: https://bibisect.libreoffice.org/

(In reply to Steve271 from comment #6)
> Only reproducible using the original document and the LO version below:
> Version: 24.2.2.2 (X86_64) / LibreOffice Community
Steve, if you can reproduce, you can set the status to "new".

Are you both still seeing this in 24.2.3?
Comment 8 Steve271 2024-05-07 21:46:02 UTC
(In reply to Stéphane Guillou (stragu) from comment #7)
> 
> Are you both still seeing this in 24.2.3?


Not reproducible in:

Version: 24.2.3.1 (X86_64) / LibreOffice Community
Build ID: fc604d5980a783e74808a001f1918a603d920494
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 9 Stéphane Guillou (stragu) 2024-05-08 00:00:23 UTC
(In reply to Steve271 from comment #8)
> Not reproducible in:
> Version: 24.2.3.1
Thanks.
Viktor, can you please also test in 24.2.3?
Comment 10 BogdanB 2024-05-17 04:32:01 UTC
Similar with
https://bugs.documentfoundation.org/show_bug.cgi?id=161132

Something have been solved between 24.2.2 and 24.2.3.
Comment 11 Stéphane Guillou (stragu) 2024-05-17 08:10:17 UTC
*** Bug 161132 has been marked as a duplicate of this bug. ***
Comment 12 Stéphane Guillou (stragu) 2024-05-17 08:10:46 UTC
*** Bug 161140 has been marked as a duplicate of this bug. ***
Comment 13 Stéphane Guillou (stragu) 2024-05-17 08:12:30 UTC
Looks like the issue appeared in 24.2.2.2 and disappeared in 24.2.3.1.

I can't find anything obvious in the log between the two versions:

git log libreoffice-24.2.2.2..libreoffice-24.2.3.1

Would be great if we could identify what caused it and what fixed it.
If someone who could reproduce is able to, please bibisect it: https://bibisect.libreoffice.org/
Comment 14 Viktor Mileikovskyi 2024-06-14 10:16:09 UTC
No problem in 24.2.4.2. Appears to be fixed.