Bug 103061 - Assertion failed when right-clicking an incorrectly spelled word in Writer in debug build
Summary: Assertion failed when right-clicking an incorrectly spelled word in Writer in...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Linguistic (show other bugs)
Version:
(earliest affected)
5.3.0.0.alpha0+
Hardware: All Windows (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Spell-Checking
  Show dependency treegraph
 
Reported: 2016-10-09 07:38 UTC by Aron Budea
Modified: 2024-06-12 14:31 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test document (12.53 KB, application/vnd.oasis.opendocument.text)
2024-06-12 08:59 UTC, Sven
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2016-10-09 07:38:35 UTC
Have a debug build of master branch.
Add English dictionaries to 'share/extensions/dict-en' if it's not there already.

1. Start Writer.
2. Switch text language to English (USA).
2. Type an incorrectly spelled word, like "tset".
3. Right-click the word.

=> debug assertion failed
"Expression: vector iterator not decrementable"

Occurs in line:
int count = pMS->suggest(&suglst, aWrd.getStr());
http://opengrok.libreoffice.org/xref/core/lingucomponent/source/spellcheck/spell/sspellimp.cxx#475

So, somewhere inside hunspell. Not sure why I can't debug into it.

Version: 5.3.0.0.alpha0+
Build ID: d4936e876b1b965505ee2e82efaa35eef65d2135
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
Locale: hu-HU (hu_HU); Calc: group
Comment 1 Aron Budea 2016-10-09 07:44:03 UTC
Oops, numbering of steps is a bit messed up. Also, I forgot to add that "Automatic Spell Checking" needs to be enabled.
Comment 2 Buovjaga 2016-10-15 10:11:51 UTC
Not reproduced with my dbgutil build. Hunspell is installed and I copied en-US and en-GB dicts to the folder.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.3.0.0.alpha0+
Build ID: 810e664de088721b6452016d83fb3ef3e6ca5eb1
CPU Threads: 8; OS Version: Linux 4.7; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on October 15th 2016
Comment 3 Aron Budea 2017-01-19 04:33:28 UTC
Not reproduced with a few weeks old self-built dbgutil build (87fce022c65c1d2aed1ca59967137d77d936043c, 16-12-29). Setting WFM.

Probably got fixed by hunspell update:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=d423121dba0ad19d307fe8aebfcf566a8b44dc1a
2016-12-14	update to latest hunspell 1-5 release
Comment 4 Sven 2024-06-12 08:59:39 UTC
Created attachment 194677 [details]
test document
Comment 5 Sven 2024-06-12 09:01:22 UTC
I can confirm this behaviour with a german ui and added a test document. You only have to right click on the 2nd dash. The context menu for spell checking will be shown for some milliseconds.

Version: 24.2.3.2 (x86) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded
Comment 6 Buovjaga 2024-06-12 14:31:07 UTC
(In reply to Sven from comment #5)
> I can confirm this behaviour with a german ui and added a test document. You
> only have to right click on the 2nd dash. The context menu for spell
> checking will be shown for some milliseconds.
> 
> Version: 24.2.3.2 (x86) / LibreOffice Community
> Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
> CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL:
> win
> Locale: de-DE (de_DE); UI: de-DE
> Calc: threaded

You are not confirming this particular report, which was about hitting an assertion with a debug build (you are not using a debug build).

For the record, I don't reproduce your issue. You may open a new report for it.

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 1f15d097cace14ca6e44e7652f460aa3fa7bd150
CPU threads: 2; OS: Windows 11 X86_64 (10.0 build 22621); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded