Bug 156617 - EDITING: Spellcheck behaves incorrectly when adding to a user dictionary (Linux gtk3)
Summary: EDITING: Spellcheck behaves incorrectly when adding to a user dictionary (Lin...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.0.3 release
Hardware: All Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: GTK3 Spell-Checking-Dialog
  Show dependency treegraph
 
Reported: 2023-08-04 18:28 UTC by Mark Huntley-James
Modified: 2023-09-13 06:57 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Huntley-James 2023-08-04 18:28:42 UTC
Running version 7.5.3.2 then 7.5.5.2
Linux Mint 20.1
5.4.0-153-generic
64bit


I wrote a simple test Writer document with a nonsense word on each line:

This is my abcdef test 
document ghijk with deliberate
errors lmnop for adding to a dictionary.


1: I clicked the spellchekck button with the cursor at the start of the document.
2: I created a new dictionary (SpellCheckBugTestDictionary) click Options, then New
3: "abcdef" was highlighted as a spell error and I added that to SpellCheckBugTestDictionary using the drop-down list
4: "ghijk"  was highlighted as a spell error BUT with most of the dialog greyed out and the top-most button set to "Resume" - this is not behaviour I would expect.
5: I clicked on "Resume"
6: I added "ghijk" to SpellCheckBugTestDictionary  using the drop-down list
7: I immediately got a dialog "Continue checking at beginning of document". (Checking later, "ghijk" had been added to the dictionary)
8: I clicked yes.
9: I immediately got a dialog "The spellcheck is complete", which is not correct because there is still the error in the third line
The spellcheck dialog remained open, still showing "ghijk" as mis-spelled with no option to move on other than by "correcting" the word or closing the spellchecker

10: When I closed and re-started the spellchecker, it correctly picked up on the error in the third line "lmnop"


11: I repeated the test sequence and selected "Correct" at the end of step 9, when it told me that the spellcheck was complete. The text in the spellcheck dialog was modified to "document ghijk with deliberatehijack", "hijack" being the top suggestion to correct "ghijk", so the spellchecker is clearly in an anomalous state at this point. The text in the document was not modified.
Comment 1 Aaron 2023-08-10 03:56:15 UTC
Thank you for reporting the bug. I can not reproduce the bug in

Version: 7.5.5.2 (X86_64) / LibreOffice Community
Build ID: ca8fe7424262805f223b9a2334bc7181abbcbf5e
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: en-US
Calc: threaded

Steps 4-5 were not reproduced for me. I successfully added "ghijk" to the dictionary with the dialog greying out and the top "Resume" button appearing.

Steps 7-10 were also not reproduced for me. I successfully added the error in the third line (lmnop) to the dictionary and only then the dialog "The spell check is complete" appears.

However, the behaviour after this is a little unexpected. After I closed the "The spell check is complete" dialog, the word "lmnop" is no longer marked as an error in the document but in the white space area between "Not in Dictionary" and "Suggestions", it's still marked as an error. It's only when I restart the spell check then everything is fine and it shows there are no errors as expected. That seems to be the only incorrect behaviour I've found from my end.
Comment 2 Mark Huntley-James 2023-08-13 15:15:41 UTC
I don't know whether this should remain as a bug, but quite by chance I seem to have fixed it on my laptop when I was trying to fix something else.

When I let LibreOffice open normally, the mouse cursor is offset from the text cursor position. This led me to a suggested fix of launching with "SAL_USE_VCLPLUGIN=gen" which fixed the mouse problem and the spellcheck issue. 

When my system does the normal LO open, I see the rendering as "default; VCL: gtk3" but with "SAL_USE_VCLPLUGIN=gen" I get "default; VCL: x11".

I also tried the option "SAL_USE_VCLPLUGIN=kf5" which also resolved both the spellcheck and mouse position issues.

I'm not sure whether that makes this a gtk bug or a LibreOffice bug.
Comment 3 Buovjaga 2023-09-13 06:57:10 UTC
Repro with gtk3. Already in oldest of Linux 6.0 repo, so probably always this way.

Arch Linux 64-bit, X11
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 43df1237a091e2b0f4495d5a7e959f7beaab025d
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 13 September 2023