Bug 154279 - Writer freezes on right mouse click on paragraph when corresponding language has many dictionaries
Summary: Writer freezes on right mouse click on paragraph when corresponding language ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Dictionaries
  Show dependency treegraph
 
Reported: 2023-03-19 18:23 UTC by Fred Kruse
Modified: 2024-03-23 06:53 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
German text document (13.99 KB, application/vnd.oasis.opendocument.text)
2023-04-03 16:48 UTC, Fred Kruse
Details
1. user dictionary (456.62 KB, text/plain)
2023-04-03 16:48 UTC, Fred Kruse
Details
2. user dictionary (445.74 KB, text/plain)
2023-04-03 16:49 UTC, Fred Kruse
Details
3. user dictionary (457.36 KB, text/plain)
2023-04-03 16:49 UTC, Fred Kruse
Details
4. user dictionary (457.56 KB, text/plain)
2023-04-03 16:49 UTC, Fred Kruse
Details
5. user dictionary (458.76 KB, text/plain)
2023-04-03 16:50 UTC, Fred Kruse
Details
6. user dictionary (224.15 KB, text/plain)
2023-04-03 16:50 UTC, Fred Kruse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fred Kruse 2023-03-19 18:23:55 UTC
When you quickly right-click the context menu after double-clicking a word, Writer sometimes freezes. This is especially common when performing this operation multiple times in quick repetition. Freezing can last from half a second to minutes. Sometimes so long that LibreOffice has to be canceled.
Comment 1 Stéphane Guillou (stragu) 2023-03-20 08:57:41 UTC
I could not reproduce in:

Version: 7.4.6.2 / LibreOffice Community
Build ID: 5b1f5509c2decdade7fda905e3e1429a67acd63d
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Can you please share the information copied from Help > About LibreOffice?
Thank you.
Comment 2 Fred Kruse 2023-03-20 09:49:45 UTC
This is the Information from help/about LO:

Version: 6.4.7.2
Build-ID: 1:6.4.7-0ubuntu0.20.04.6
CPU-Threads: 4; BS: Linux 5.4; UI-Render: Standard; VCL: gtk3; 
Gebietsschema: de-DE (de_DE.UTF-8); UI-Sprache: de-DE
Calc: threaded

Another Information:
During the freeze, one core runs at 100%.
Comment 3 Stéphane Guillou (stragu) 2023-03-20 13:50:49 UTC
Thank you, Fred.
Your version won't see further bug fixes, so please update to a currently supported version: 7.4 or 7.5.
Please report back if you can still see the same issue.
Comment 4 claudiuv 2023-03-30 13:29:52 UTC
not present in 

Version: 7.5.0.3 (x86) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 2; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: ro-RO (ro_RO); UI: en-GB
Calc: threaded
Comment 5 Fred Kruse 2023-04-01 08:36:37 UTC
The bug happens in special cases. I tested it with this Version:

Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Ubuntu package version: 4:7.5.1~rc2-0ubuntu0.20.04.1~lo1
Calc: threaded

A little hint to the background: I am the actual developer of the LanguageTool extension for LO. The extension adds the additional right spelled words used by LanguageTool as user dictionaries to LO. For German language, these are more than 160,000 words split into 6 user dictionaries.

I wrote the dictionaries to files and deactivate the LanguageTool extension, to decouple the extension from LO. The bug remains.

It is interesting, that the marking of spell errors works perfectly. It is also no problem to do a right click on marked words. The expected context menu appears immediately.

But if you highlight a word or a part of text, and you do a right click on it in nearly one of five cases, it takes a long time (sometimes to minutes) till the context menu appears.
Comment 6 QA Administrators 2023-04-02 03:24:18 UTC Comment hidden (obsolete)
Comment 7 Stéphane Guillou (stragu) 2023-04-03 13:17:48 UTC
Thank you for the extra information, Fred, but I still haven't been able to reproduce with:

Version: 7.5.2.2 (X86_64) / LibreOffice Community
Build ID: 53bb9681a964705cf672590721dbc85eb4d0c3a2
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

I am using Ubuntu 20.04 with GNOME 3.36.8.

Can you reproduce with other VCLs, for example starting libreoffice with the environment variable SAL_USE_VCLPLUGIN=gen ?
Which desktop environment are you using?
Comment 8 Fred Kruse 2023-04-03 16:48:14 UTC
Created attachment 186446 [details]
German text document
Comment 9 Fred Kruse 2023-04-03 16:48:46 UTC
Created attachment 186447 [details]
1. user dictionary
Comment 10 Fred Kruse 2023-04-03 16:49:15 UTC
Created attachment 186448 [details]
2. user dictionary
Comment 11 Fred Kruse 2023-04-03 16:49:38 UTC
Created attachment 186449 [details]
3. user dictionary
Comment 12 Fred Kruse 2023-04-03 16:49:59 UTC
Created attachment 186450 [details]
4. user dictionary
Comment 13 Fred Kruse 2023-04-03 16:50:20 UTC
Created attachment 186451 [details]
5. user dictionary
Comment 14 Fred Kruse 2023-04-03 16:50:42 UTC
Created attachment 186452 [details]
6. user dictionary
Comment 15 Fred Kruse 2023-04-03 17:04:19 UTC
Usually I work with Linux Mint. But I am able to reproduce the bug working with Windows:

Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded

To reproduce the bug. I attached some files. There are six dictionaries. Please close LO and add the dictionaries to LOs wordbook directory. After that, open LO again and activate the dictionaries (sorry, they are in German language). After that, open the German test file.

Now double-click on an arbitrary word to highlight it. Then right-click on the highlighted word. The context menu opens slowly. Sometimes you have to iterate the clicking sometimes. From my experience, at least the tenth click will slow down the opening of the context menu by minutes.
Comment 16 Buovjaga 2023-04-06 12:10:39 UTC
(In reply to Fred Kruse from comment #15)
> Usually I work with Linux Mint. But I am able to reproduce the bug working
> with Windows:
> 
> Version: 7.5.1.2 (X86_64) / LibreOffice Community
> Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
> CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL:
> win
> Locale: de-DE (de_DE); UI: de-DE
> Calc: CL threaded
> 
> To reproduce the bug. I attached some files. There are six dictionaries.
> Please close LO and add the dictionaries to LOs wordbook directory. After
> that, open LO again and activate the dictionaries (sorry, they are in German
> language). After that, open the German test file.
> 
> Now double-click on an arbitrary word to highlight it. Then right-click on
> the highlighted word. The context menu opens slowly. Sometimes you have to
> iterate the clicking sometimes. From my experience, at least the tenth click
> will slow down the opening of the context menu by minutes.

I tried over ten times both with kf5 and gtk3, but no freeze. The context menu that opens has Cut, Copy, Paste...

I made sure to activate the dictionaries in writing aids options.

I have hunspell-de installed.

Arch Linux 64-bit, X11
Version: 7.5.2.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 8; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
7.5.2-1
Calc: CL threaded
Comment 17 wjsim 2024-03-22 16:54:21 UTC
I was not able to reproduce the bug in:

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

and

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6a064b1967e06e40be40817deff99d00c1a8554f
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: ko-KR (en_US); UI: en-US
Calc: CL threaded
Comment 18 Stéphane Guillou (stragu) 2024-03-23 06:53:09 UTC
With sample files, extra dictionaries in the workbook directory and activated in the UI, and a German dictionary extension installed, I could reproduce a 1+ second delay to several-second freeze when right-clicking.
(LT extension not installed.)
- right-click does not have to be on selection
- right-click does not have to be on misspelt word
- could reproduce without an active selection
- right-click has to be on German paragraph
- not reproduced when right-clicking on English paragraph
- could reproduce if cursor is in English paragraph while right-click is on German paragraph

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

Also in 7.5.9, but interestingly I can't reproduce in 7.4.0.3, which doesn't agree with comment 2...