Bug 2248020 - Libreoffice Writer won’t start unless api.languagetool.org is reachable over network
Summary: Libreoffice Writer won’t start unless api.languagetool.org is reachable over ...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: libreoffice
Version: 38
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: libreoffice-sig
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-05 14:58 UTC by fuser
Modified: 2024-05-31 08:53 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-31 08:53:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Document Foundation 158093 0 None None None 2023-11-06 17:41:41 UTC

Description fuser 2023-11-05 14:58:24 UTC
Hi, I have this problem, that if I’m not connected to the Internet, I can’t use LibreOffice Writer, because when Writer starts it is resolving domain api.languagetool.org. And if it can’t resolve it (dns not reachable as I’m offline) it is stuck and won’t start. If I’m online all is OK, and from tcpdump I can see some data are exchanged over https with api.languagetool.org.
Am I’m only one having this problem? How can I prevent this behavior? Is it possible to disable api.languagetool.org?
I’m using:

LIbreOffice Version: 7.5.7.1 (X86_64)
Build ID: 50(Build:1)
CPU threads: 2; OS: Linux 6.1; UI render: default; VCL: gtk3
Calc: threaded

LibreOffice is installed from natively from distribution, I’m on Fedora 38.

Reproducible: Always

Steps to Reproduce:
start libreoffice and open file for editing, or from commandline oowriter file.odt,and now Writer is stuck waiting for network and connection to api.languagetool.org
Actual Results:  
Without internet connectivity, I can't edit documents.

Expected Results:  
Expected behavior is to be able to edit documents when I'm offline.

I put this bug as Urgent, because it hangs software (libreoffice), but it could be maybe considered as Medium, as workaround is to be on-line, then libreffice works as expected.

Comment 1 fuser 2023-11-05 15:08:25 UTC
Also I have LanguageToolsServer disabled in Tool->Options->Language Settings->LanguageToolServer. Also in Language Settings->Writing Aids, I have disabled Language Tool Remote Gammar Checker.

Comment 2 Mattia Verga 2023-11-05 16:28:58 UTC
I can't reproduce the problem in a F38 Live image running LO 7.5 nor in F39 running LO 7.6.
In both cases, with network switched off, writer starts fine with and without Tool->Options->Language Settings->LanguageToolServer.

Comment 3 fuser 2023-11-05 16:48:36 UTC
(In reply to Mattia Verga from comment #2)
> I can't reproduce the problem in a F38 Live image running LO 7.5 nor in F39
> running LO 7.6.
> In both cases, with network switched off, writer starts fine with and
> without Tool->Options->Language Settings->LanguageToolServer.

Well, thank you very much for your quick input, which lead me to another experiment. And the result is, that writer will start, if your network interface is down. But if my network interface is up, but my internet router is down, then it will not start and behave like I wrote above.

It looks like when libreoffice detect your network is up it will keep asking and asking for dns reply, instead of starting. This bug is important for me, because I'm running Libreoffice in virtual machine which has another virtual machine as firewall/router. This is usual setup under QubesOS, which I'm running on (Fedora runs there in virtual machines).

Just for clarification, it took 4:20 mins to start writer, all that time it was stuck asking for DNS response to api.languagetool.org

Comment 4 fuser 2023-11-05 16:51:49 UTC
I can imagine that after 3 failed DNS attempts LibreOffice should start, not to be hang for nearly 5 mins, trying to get DNS response...

Comment 5 fuser 2023-11-05 17:00:13 UTC
(In reply to fuser from comment #4)
> I can imagine that after 3 failed DNS attempts LibreOffice should start, not
> to be hang for nearly 5 mins, trying to get DNS response...

And I would be really happy if LibreOffice is not by default communicating with api.languagetool.org, because I'm not interested in that service and indeed I'm not sure which data are exchanged over there. If there is option to disable this behaviour, that would be the best option also for privacy minded people.

Comment 6 Stephan Bergmann 2023-11-06 07:41:41 UTC
Do you by chance have "Tools - Options... - Language Settings - LanguageTool Server - LanguageTool API Options - Enable LanguageTool" marked checked?  If yes, does the issue go away if you uncheck it?

Comment 7 Stephan Bergmann 2023-11-06 07:42:52 UTC
(In reply to Stephan Bergmann from comment #6)
> Do you by chance have "Tools - Options... - Language Settings - LanguageTool
> Server - LanguageTool API Options - Enable LanguageTool" marked checked?  If
> yes, does the issue go away if you uncheck it?

Argh, ignore me, you already said "Also I have LanguageToolsServer disabled in Tool->Options->Language Settings->LanguageToolServer. Also in Language Settings->Writing Aids, I have disabled Language Tool Remote Gammar Checker."

Comment 8 Mattia Verga 2023-11-06 17:41:41 UTC
(In reply to Stephan Bergmann from comment #7)
> (In reply to Stephan Bergmann from comment #6)
> > Do you by chance have "Tools - Options... - Language Settings - LanguageTool
> > Server - LanguageTool API Options - Enable LanguageTool" marked checked?  If
> > yes, does the issue go away if you uncheck it?
> 
> Argh, ignore me, you already said "Also I have LanguageToolsServer disabled
> in Tool->Options->Language Settings->LanguageToolServer. Also in Language
> Settings->Writing Aids, I have disabled Language Tool Remote Gammar Checker."

I can confirm the bad behavior reported by user: even with Tool->Options->Language Settings->LanguageToolServer disabled, LO writer hangs at startup if, for example, I set a wrong/unreachable DNS in network settings. While waiting for LO to start, if I bring down network LO starts immediately.

So, indeed, LO always tries to reach LanguageToolsServer even if set to not do that.
I've opened an upstream bug at https://bugs.documentfoundation.org/show_bug.cgi?id=158093

BTW LanguageToolServer is disabled by default.

Comment 9 Aoife Moloney 2024-05-31 08:53:19 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.