Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stacktrace w NullPointer Exception #10540

Closed
drwetter opened this issue Apr 25, 2024 · 6 comments
Closed

Stacktrace w NullPointer Exception #10540

drwetter opened this issue Apr 25, 2024 · 6 comments
Labels
office-integration the LibreOffice/OpenOffice add-on

Comments

@drwetter
Copy link

Hi,

thanks for the tool!

Probably since version 6 I encountered a stacktrace caused by a pointer pointing not to where it should

image

Le me know if I can provide more information

@danielnaber danielnaber added the office-integration the LibreOffice/OpenOffice add-on label Apr 25, 2024
@FredKruse
Copy link
Contributor

I think this is not a dramatic problem. LibreOffice exited before the LT cache could be saved. In the worst-case scenario, no cache was saved, and the grammar check would have to be carried out all over again the next time it was called up. Data should not have been lost. However, the problem has now been resolved. Please test it with the snapshot tomorrow.

@drwetter
Copy link
Author

Will do and report back

However I would have ignored this exception if LT would work afterwards. It doesn't though.

@drwetter
Copy link
Author

drwetter commented Apr 26, 2024

Sorry about the question, maybe I missed something: how long does that take? Or is there a build which I can grab?

image

Edit: now at 4 hours, still going,

@drwetter
Copy link
Author

Giving up after 315 min CPU time.

@FredKruse
Copy link
Contributor

You can find The latest snapshot here:
https://internal1.languagetool.org/snapshots/ (newest OXT)

@drwetter
Copy link
Author

drwetter commented Apr 30, 2024

Ok, thanks! Tried it and there's no stacktrace. So it looks good.

I believe though I have another problem, so you might want to ignore my statement above However I would have ignored this exception if LT would work afterwards. It doesn't though. It looks like with my default font neither LT nor spellchecking works. If I just choose another font both work.

For LT and just FYI: Looks I couldn't roll back from the snapshot to 6.4. There was no menu item "background check enabled" (translated into English myself as I have a German UI). And there was another stacktrace when starting with v6.4 again:

java.lang.NumberFormatException: For input string: "i8"
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.base/java.lang.Integer.parseInt(Integer.java:652)
at java.base/java.lang.Integer.parseInt(Integer.java:770)
at org.languagetool.gui.Configuration.parseConfigurableRuleValues(Configuration.java:1475)
at org.languagetool.gui.Configuration.loadCurrentProfile(Configuration.java:1405)
at org.languagetool.gui.Configuration.loadConfiguration(Configuration.java:1232)
at org.languagetool.gui.Configuration.loadConfiguration(Configuration.java:1181)
at org.languagetool.gui.Configuration.<init>(Configuration.java:249)
at org.languagetool.openoffice.LtSpellChecker.runLTSpellChecker(LtSpellChecker.java:410)
at org.languagetool.openoffice.LtSpellChecker.<init>(LtSpellChecker.java:88)
at org.languagetool.openoffice.SingletonFactory.createInstanceWithContext(SingletonFactory.java:52)

However as said you were right regarding the other stacktrace and my assessment that it doesn't work was likely not related to LT. Thus closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
office-integration the LibreOffice/OpenOffice add-on
Projects
None yet
Development

No branches or pull requests

3 participants