Issue 127071 - aoo local (de) debug build crashes with - ### illegal index of sequence! - if spellcheck is enabled -
Summary: aoo local (de) debug build crashes with - ### illegal index of sequence! - if...
Status: RESOLVED FIXED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: 4.2.0-dev
Hardware: PC Windows, all
: P5 (lowest) Normal (vote)
Target Milestone: 4.2.0
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-13 13:17 UTC by Oliver Brinzing
Modified: 2016-10-01 12:37 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Oliver Brinzing 2016-08-13 13:17:55 UTC
aoo 4.2.0 german debug build rev. 1756130

steps to reproduce:

- open writer
- type a char
- aoo crashes with:
---------------------------
Debug Output
---------------------------
Error: ### illegal index of sequence!
From File C:\build_tmp\trunk\main\solver\420\wntmsci12\inc\com/sun/star/uno/Sequence.hxx at Line 174
Abort ? (Yes=abort / No=ignore / Cancel=core dump)

no crash if spellcheck is disabled before

notice: en-US build does not crash. this build contains only the preinstalled "dict-en.oxt" while
the geman build has de,at,ch,en,fr,it spellcheck extensions preinstalled.

btw: typing chars causes several "item-type unequal to IDL" errors too:

l ---------------------------
Debug Output
---------------------------
Error: item-type unequal to IDL (=> no BASIC)
with SID: 5509
in SwView
From File c:/build_tmp/trunk/main/sfx2/source/control/dispatch.cxx at Line 2562
Abort ? (Yes=abort / No=ignore / Cancel=core dump)
Comment 1 hanya 2016-09-23 12:03:55 UTC
This problem introduced by revision 1727441, issue 126762. 

I misunderstand the content of SvtLinguConfigDictionaryEntry struct. 
- Locations contains the list of dictionary files such as dat and aff
- aLocaleNames contains the list of Locales entry from dictionary entry.
It seems I thought they are 1:1 lists. So, if there are many locales contained in 
Locales entry, this out of range is happen.
fr dictionary contains many Locales entries in each dictionary entry, so it can cause this problem easily.

The fix should be something like, if all files listed in Locations are exists, its 
related Locales(aLocaleNames from the struct) should be added to the list of 
supported locales as the spell checker.
Comment 2 SVN Robot 2016-09-23 12:26:33 UTC
"hanya" committed SVN revision 1762054 into trunk:
#i127071# Fix illegal index on locations of spell cheker dictionary
Comment 3 Marcus 2016-09-23 16:10:33 UTC
@Oliver:
Please can you test/verify if this fixes your reported problem? Thanks in advance.
Comment 4 Oliver Brinzing 2016-09-28 17:25:18 UTC
>Please can you test/verify if this fixes your reported problem?

sorry i can't at the moment, cause there a new build breaks:

windows build breaks in modules basegfx and ucbhelper
https://bz.apache.org/ooo/show_bug.cgi?id=127144
Comment 5 Oliver Brinzing 2016-10-01 12:37:52 UTC
with revision 1762685 and "--disable-pch" i was able to build now.
aoo does not crash anymore.