Bug 128993 - Annoying delay of 10 seconds when opening Libreoffice Writer files
Summary: Annoying delay of 10 seconds when opening Libreoffice Writer files
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.8.2 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: File-Opening
  Show dependency treegraph
 
Reported: 2019-11-24 15:20 UTC by schregenb.u
Modified: 2022-05-20 18:46 UTC (History)
3 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 schregenb.u 2019-11-24 15:20:11 UTC
Description:
Opening any LibreOffice Writer files take approximately 10 seconds every time (from a former 1 second). This always happens regardless of the filesize, and has been happening for every version since 6.0.7+ to 6.2.8 (which is the version I'm using now). Version 6.0.7 was the last version, that opened the files without any delay (which means within 1 second). 
I noticed however that when I cut off the internet, the issue doesn't happen anymore. Then even 6.2.8 starts up within 1 second. 
My assumption is, that LibreOffice checks something related to the internet on startup. This may be updates or something else. Someone on Stackoverflow wrote it could be searching for a Network printer or so. 


Steps to Reproduce:
1. Create any LibreOffice Writer file, Save and Close
2. Doubleclick file to open it
3. Wait...

Actual Results:
File opens after approximately 10 seconds

Expected Results:
File should open after 1 seconds


Reproducible: Always


User Profile Reset: No



Additional Info:
I'm assuming the issue is caused by LibreOffice searching something internet-related (updates, network printer). When I cut off internet, the file immediately opens. 
This issue only happens when no other LibreOffice files are open. When you already have another LibreOffice file open, additional files will open immediately. 

The issue also happens not only on Writer, but also when starting up the LibreOffice "Main Application" (the main application which has a side menu to create different LibreOffice documents). This application starts up, shows the gray background (but without the side bar) - but there is again 10 seconds delay - until the sidebar appears and you can click anything.
Comment 1 schregenb.u 2019-11-24 15:41:10 UTC Comment hidden (obsolete)
Comment 2 Dieter 2019-11-24 19:57:01 UTC Comment hidden (obsolete)
Comment 3 schregenb.u 2019-11-24 21:24:29 UTC
As requested I tried out the new versions. Unfortunately the issue still persists: 

6.3.3 -> also has the 10 second delay
6.4.0.0.beta1 -> also has the 10 second delay


To verify my previous observations I re-installed older versions again:

6.0.7.3 -> no delay, immediately starts up!

6.1.0.1 -> has the 10 second delay. This is actually the first occurrence of this issue (though I didn't try the alphas and betas before). 

Again the issue only happens if I'm connected to the internet. If I disable the internet connection it has no delays and immediately starts up. 
(6.0.7.3 always starts up immediately though, regardless if connected or not). 

I was using even older versions than 6.0.7.3 years ago and never had this issue. This issue must have been introduced somehow in 6.1.0. 

If it is somehow relevant how my computer accesses the Internet: it connects via a WLAN module to an Internet router. To cut my connection I just deactivate the WLAN module in Windows 7.
Comment 4 schregenb.u 2019-11-24 22:33:12 UTC
Hello! Good and bad news: 


The good news is, that I found the reason for the 10-second-delay-bug: 

In the LibreOffice Main Application or Writer go into the navigation bar "Extras"->"Internet"->"Proxy": 

The default value is "System". When I change this to "Manual" or "None", and then "Apply" it, the problem is solved! That means afterwards LibreOffice immediately starts up with no delays! I only tested this on 6.2.8, but I'm pretty sure it will work likewise on the higher versions. 
Note that the form was empty anyways, and I didn't use any proxy settings. It is just the proxy being set to "System" (which is the default value after fresh install), which causes the 10-second-delay. 



The bad news is, I found another bug right at this location: 

When I tried to reproduce the behaviour by setting the "Proxy" back to "System" - the "System" value wasn't applied. It remained stuck at "Manual" or "None". So actually applying these 3 different options is bugged as well. 

In order to reproduce the solution I had to delete the LibreOffice folder in AppData in Windows 7. After doing that the "Proxy" setting resetted back to "System" (and LibreOffice had again the 10-second-delay to start up, which again was solved by changing the proxy setting to "Manual" or "None"). 


I hope this information helps to address this years-long bugger :)
Comment 5 schregenb.u 2019-11-24 22:36:31 UTC Comment hidden (obsolete)
Comment 6 Xisco Faulí 2019-11-25 14:48:48 UTC Comment hidden (obsolete)
Comment 7 schregenb.u 2019-11-25 18:45:25 UTC
@Xisco: 
I didn't change any values after installing LibreOffice. I installed every LibreOffice cleanly and everytime before I installed another version of LibreOffice, I deleted the LibreOffice folder in AppData to remove all previously existing user data. This process I repeated yesterday for multiple LibreOffice version as described in Comment#4. 

However, I don't know if it's relevant, but whenever I (re-)installed LibreOffice I did not activate the checkbox for "Load LibreOffice on system startup". 

Besides - if you missed it - I could eventually nail down the cause of the 10-second-delay and found a workaround, as described in Comment#5. This workaround however should not be required, and I still see it as a bug.
Comment 8 schregenb.u 2019-11-25 18:46:58 UTC
Arrrgh... in my previous comment I wanted to reference Comment#3 and Comment#4
Comment 9 schregenb.u 2019-11-26 00:02:22 UTC
Since the information is spread through many comments I tried to summarize it here for easier lookup: 


Reproducing the issue: 
1) Make a clean install of LibreOffice (also delete any possible existing user data in the AppData folder first). 
2) Create a LibreOffice-Writer document, save and close it. 
3) Also close any other running LibreOffice instances, including possible LibreOffice daemons running in the background.


Then the following 2 cases will happen: 

When NOT CONNECTED to the internet (Everything is fine):
Doubleclick Writer document to open->
->Splashscreen with loading bar appears
->Loading bar finishes in 1-2 seconds
->Then Writer document displays

When CONNECTED to the internet (annoying 10-second-delay will happen):
Doubleclick Writer document to open->
->Splashscreen with loading bar appears
->Loading bar finishes in 1-2 seconds
->Now it just hangs at this completed stage for an additional 10 seconds
->Then Writer document displays


Further information and workaround: 
- The issue has first appeared in 6.1.0.1 and exists in all succeeding versions, including the latest version (6.4.0.0beta1). 
- The issue concerns not only LibreOffice-Writer but the LibreOffice Start Center as well. It seems to concern the LibreOffice application as a whole. 
- The issue is related to the LibreOffice Internet Proxy settings (Main Menu->Extras->Options->Internet->Proxy). 
- The default Internet proxy setting is set to "System". THIS seems to be cause of the issue. When changing this setting to "Manual" or "None", the 10-second-delay disappears. 


Further thoughts: 
The delay is very noticeable when you come from 6.0.7.3 or earlier versions, especially since it happens right at startup. This "inexplicable" slow startup might even deter people from upgrading to newer versions (in fact it continuously deterred me from doing that). 

If things are still unclear, please feel free to ask any further questions.
Comment 10 Buovjaga 2020-04-27 12:30:24 UTC
(In reply to schregenb.u from comment #4)
> The bad news is, I found another bug right at this location: 
> 
> When I tried to reproduce the behaviour by setting the "Proxy" back to
> "System" - the "System" value wasn't applied. It remained stuck at "Manual"
> or "None". So actually applying these 3 different options is bugged as well. 

This is bug 33697
Comment 11 Timur 2020-09-18 07:52:19 UTC
Now that we have the cause, this bug looks like a duplicate. 
Seems like System was default proxy setting long before 6.0.
If not, it needs to have a specific proposal for a solution.
Comment 12 QA Administrators 2021-03-18 04:19:18 UTC Comment hidden (obsolete)
Comment 13 schregenb.u 2021-03-18 20:31:02 UTC
Hello, I am not sure what other information I should provide.

The bug (10 second-delay on startup) still exists, even in the latest version 7.1.1.

My personal workaround is still the same, which is to go into the LibreOffice menus, into Extras->Options->Internet->Proxy, and set Proxy-Server to "None". Then there is no delay on startup anymore.

I can always make the bug re-appear, when I delete the folder C:\Users\MyUserName\AppData\Roaming\LibreOffice


My suggestion for a solution:

Set the Proxy-Server setting to "None" by default on the next LibreOffice release. I don't know if this breaks any other network things in LibreOffice, but this would probably be the simplest.
Comment 14 Timur 2021-05-31 11:07:31 UTC
Since this bug is long, could you please mark duplicate of bug 135754.
Although later, it also has an info about simple/administrative user logon. 
I don't know why System is default for Proxy, but I may have seen in some bug a proposal to say to LO "do not connect to internet". Cannot find though.
One more thing: do you have something in "Options-Online update" checked?
Comment 15 schregenb.u 2021-06-04 15:17:19 UTC
Hello! Something has changed. It is as if the bug has disappeared. 

When I now try to reproduce the bug by deleting the folder /AppData/Roaming/LibreOffice and then open LibreOffice documents again - there is no 10-second-delay anymore. And with no adjustments on the Internet-Proxy-Settings.

I verified this observation by re-installing older versions down to 6.2.8.2 (where I originally reported the bug), and even then everything starts instantly now. With no adjustments on my side. The 10-second-delay is gone in all versions.

Maybe this bug was an issue on the LO-Update-Server all along? Something must have been changed there and now all is good. I'm not sure this bug can't re-appear, but for now I would say the bug is gone and can be closed.


I still marked it as duplicate of bug #135754, as the description from that is pretty much identical to mine.

*** This bug has been marked as a duplicate of bug 135754 ***
Comment 16 schregenb.u 2021-07-07 13:57:23 UTC
The bug is back again. The previous magical disappearance was too good to be true...

It's the same issue as before, with the difference it doesn't take 10 seconds, but only like 3 seconds.

Every time I open a document, LibreOffice is probably trying to reach an online server for whatever purpose - maybe for a "Welcome Message" - and because of that it doesn't open the documents until getting an answer or a timeout. In fact when the bug disappeared some weeks ago I suddenly received LibreOffice welcome messages when opening files - which I didn't receive before.

The delay is not much, but still noticeable. The thing is, this delay can change depending how much time it takes to reach the LibreOffice-Online-Server and get a response from it (or a timeout). Opening files shouldn't be dependent on that.

The only way to solve the issue is once again to go into "Proxy" and set it from "System" to "None". Then every documents opens instantly again. Funnily enough - once that is done, and reverted back (from "None" to "System"), the files can be opened without delay. So it's like the default Proxy Settings blocks something, but changing it back and forth solves the blockage. 

(To answer another previous question: enabling or disabling LibreOffice Online-Update settings does not change anything. The bug can only be fixed by changing the LibreOffice Internet Proxy Settings.)
Comment 17 schregenb.u 2021-07-07 14:50:37 UTC
Addition to the last message: 

I found out that the reason why files are opening immediately, even after changing the Proxy Settings back from "None" to "System" (which should make the delay on fileopenings re-appear), is, that the setting doesn't change back anymore. It remains locked at "None" - and which can only be seen when restarting LibreOffice. It can't be changed back (except deleting the User files in AppData).

Anyways, something is clearly off in that matter. Maybe the proxysettings revert-failure and the delay-bug on fileopenings are also somehow connected.
Comment 18 Dieter 2021-07-07 15:05:08 UTC
(In reply to schregenb.u from comment #16)
> The bug is back again. The previous magical disappearance was too good to be
> true...

As far as I can see, it has been marked as duplicate of bug 135754. I think, this is still valid. Please explain, if you don't agree and please add your comments and observations to bug 135754, if you agree, that it is a duplicate.

*** This bug has been marked as a duplicate of bug 135754 ***
Comment 19 schregenb.u 2021-07-07 16:08:49 UTC
I did mark that as duplicate previously, but in hindsight I think it was a mistake. I'd like to revert that "duplicate" mark.

Reasons: 

A) The description of the specific bug #135754 applies to proxysettings, which were manually filled out in the proxysettings, and then produced the issue, while in my case the bug is already there without manually filling out any proxysettings.

B) The issue in bug #135754 could technically be caused by the customised proxy server, while in my case this option can be ruled out (because I didn't manually configure anything).


Technically there could be 2-3 different bugs causing these issues:

1) bug with manually entering proxysettings and custom proxy servers
2) bug with proxysettings failing to apply various settings (System, Manual, None)
3) bug with LibreOffice trying to reach the LO-Server before opening files

In my bug case I mainly focused on (3), which I think is the main cause of the delay. But this does not necessarily have to do something with (1) and (2), which were reported in #135754. There are similarities, but they are also different enough, so I can't declare them as duplicates with good conscience anymore.
Comment 20 Paolo Benvenuto 2021-11-17 15:26:19 UTC
Version: 7.2.2.2 / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: es-DO (it_IT.UTF-8); UI: it-IT
Ubuntu package version: 1:7.2.2~rc2-0ubuntu0.20.04.1~lo1
Calc: threaded

confirmed
Comment 21 Paolo Benvenuto 2021-11-17 15:57:18 UTC
Version: 7.2.2.2 / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: es-DO (it_IT.UTF-8); UI: it-IT
Ubuntu package version: 1:7.2.2~rc2-0ubuntu0.20.04.1~lo1
Calc: threaded

I have a delay when closing a document, too:

When I hit ctl-w, LO gets unresponsive for about 5 seconds.
Comment 22 Xisco Faulí 2022-05-02 11:58:47 UTC
Thanks for reporting this issue.
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 23 schregenb.u 2022-05-20 18:46:03 UTC
I've been using a newer version (7.3.3.2) for 2-3 weeks and didn't encounter the bug yet.

But then the version where it originally appeared (6.2.8.2) also works again. As assumed before it probably relates to some kind of server check - which may have been fixed on the server side for now (although I thought the same last year and then the bug reappeared after a month).

Yet I have to say keeping this bugreport open is a bit tiring - especially because of its irregular behaviour. Thus I'm for closing it until it becomes a real problem. But as said, for the past couple of weeks there was no problem, so I marked it as resolved.

P.S.: I never encountered the bug mentioned by Paolo Benvenuto (which may be something entirely different).