Bug 125292 - error message appears for Language Tool
Summary: error message appears for Language Tool
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Extensions (show other bugs)
Version:
(earliest affected)
6.1.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-15 01:07 UTC by Katrin
Modified: 2019-05-17 07:24 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 Katrin 2019-05-15 01:07:12 UTC
Description:
for the second time, out off nowhere I get an errormessage. can't note any error or loose of functions or reason. 

Steps to Reproduce:
1.don't know
2.
3.

Actual Results:
Message: An error has occured in languageTool 4.5.1 (2019-03-28 10:47):
java.lang.IndexOutBoundsException: Index: 2399, Size: 2399
Stacktrace:
java.lang.IndexOutBoundsException: Index: 2399, Size: 2399
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.languagetool.openoffice.singleDocument.getParaPos(SingeDocument.java:380)
at org.languagetool.openoffice.singleDocument.getCheckresults(SingleDucument.java:123)
at org.languagetool.openoffice.MultiDocumentHandler.getCheckresults(MultiDucumentHandler.java:129)
at org.languagetool.openoffice.main.doProofreading(Main.java:150)
OS:Windows 7 an amd64, java version 1.8.0_211 from Oracle Corporation

Expected Results:
not show messages like this. don't know what's all about.


Reproducible: Sometimes


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: de
Module: TextDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: yes
Comment 1 Julien Nabet 2019-05-15 07:34:17 UTC
Without steps to reproduce this, it's difficult to investigate.

Anyway, you may do this:
- uninstall extensions
- upgrade Libreoffice to 6.2.3
- rename your LO profile directory (see https://wiki.documentfoundation.org/UserProfile#Windows)
- reinstall extensions

If you still reproduce this, try to find steps to reproduce this.

Let's put this bugtracker to NEEDINFO, waiting for your feedback.
Comment 2 Julien Nabet 2019-05-15 08:32:00 UTC
I downloaded the sources of the extension.
This line in src/main/java/org/languagetool/openoffice/SingleDocument.java may be buggy:
378     if (!chPara.equals(allParas.get(nParas))) {

Indeed, some lines above, there's some bound checking:
348     if (nParas >= 0 && nParas < allParas.size() && chPara.equals(allParas.get(nParas))) {

Let's put this one to NEW then.

I created bugtracker upstream, see https://github.com/languagetool-org/languagetool/issues/1586
Comment 3 Julien Nabet 2019-05-16 19:07:41 UTC
Just for information, the pb has been fixed upstream.
I've just asked if the fix will be in the next release 4.6 planned end of June.
See comments here:
https://github.com/languagetool-org/languagetool/issues/1586
Comment 4 Julien Nabet 2019-05-17 07:24:34 UTC
(In reply to Julien Nabet from comment #3)
> Just for information, the pb has been fixed upstream.
> I've just asked if the fix will be in the next release 4.6 planned end of
> June.
> See comments here:
> https://github.com/languagetool-org/languagetool/issues/1586

These info have been confirmed.
Let's put this one to NOTOURBUG since it's not due to LO but to an extension.