Bug 141937 - Calc takes 60+ seconds to open .ODS files
Summary: Calc takes 60+ seconds to open .ODS files
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-27 15:33 UTC by John Kale
Modified: 2021-05-06 17:13 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
This file triggers the behavior indicated. (8.18 KB, application/octet-stream)
2021-04-27 16:50 UTC, John Kale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Kale 2021-04-27 15:33:33 UTC
Description:
Whether opening an .ods file by double clicking on it or by opening Calc and using File -> Open or File -> Recent Documents, Calc seems to pause for a period of time that is suspiciously close to 60 seconds before attempting to open the file. The total time taken is about 61 to 62 seconds.

During this pause, the "Loading Document" status is shown at the bottom status area, and the accompanying progress bar does not fill. The Task Manager does not show any significant CPU activity.

After the 60 seconds have passed, the file opens and Calc works fine.

Even the simplest spreadsheet files show this behavior. The same files saved as .xlsx open without any pause.

If my PC is disconnected from my wi-fi, the pause doesn't happen, .ods files open normally. Almost as if the 60 second pause is some sort of networking timeout.

I've observed this behavior with two or three different v6.x.x.x releases. It was an issue for a period of weeks last year, but it went away without any specific action on my part. It has lately become a problem again.

Steps to Reproduce:
While connected to internet:
1. Open LibreOffice Calc
2. File -> Save As "slowfile.ods"
3. Close document
4. File -> Recent Documents -> "slowfile.ods"

Actual Results:
Calc re-opened "slowfile.ods" but took 60 seconds to do so.

Expected Results:
Calc should have re-opened "slowfile.ods" in a second or two.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.4.7.2 (x64)
Build ID: 639b8ac485750d5696d7590a72ef1b496725cfb5
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: default; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: CL
Comment 1 Xisco Faulí 2021-04-27 15:50:40 UTC Comment hidden (obsolete)
Comment 2 John Kale 2021-04-27 16:50:06 UTC
Created attachment 171461 [details]
This file triggers the behavior indicated.
Comment 3 Roman Kuznetsov 2021-04-28 13:49:19 UTC
5 sec in

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 15a9bee9ef26ce13ed1e26319306a88b6d886158
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded
Comment 4 m_a_riosv 2021-04-29 07:34:15 UTC
Also a few seconds for me with
Version: 7.1.3.1 (x64) / LibreOffice Community
Build ID: fa76d07d7006a0e2866c3247cef2d5eb55ae8369
CPU threads: 4; OS: Windows 10.0 Build 21296; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL

Please test with a clean profile, Menu/Help/Restart in Safe Mode
Comment 5 John Kale 2021-04-29 12:18:51 UTC
I've tried resetting the profile, it made no difference.
Comment 6 Timur 2021-04-29 12:57:56 UTC
Point is most likely "If my PC is disconnected from my wi-fi, the pause doesn't happen". So test file may not be relevant. 
This is duplicate of Bug 133621 which I marked as duplicate of (opposite) bug 131128. So this can be a duplicate of that one or bug 92826.

In addition to profile reset, solution also can be:
Tools > Options > Internet > Proxy > Proxy server = None

Note: if you don't need it, turn off Options-Language Settings -Languages Asian and Complex.
Comment 7 John Kale 2021-04-30 16:48:13 UTC
Thank you all for your attention and suggestions.

Setting "Proxy Server" to "None" hasn't changed anything.

Very curious what network traffic would be triggered by opening a local .ods file, but not by opening the .xlsx version.

Although I do have a cloud sync service (MS OneDrive) active, the .ods files in question here aren't in a synced directory.

To be absolutely sure, I tried 1) Moving some .ods files to a different volume with no synced directories and 2) Completely shutting down OneDrive before loading an .ods file.

Neither made any difference.

I tried doing a WireShark capture while LibreOffice started up slowly, but I don't know what to look for in the result.
Comment 8 QA Administrators 2021-05-01 03:57:04 UTC Comment hidden (obsolete)
Comment 9 John Kale 2021-05-06 16:16:35 UTC
Today the delay opening Calc documents is gone.

There is a thread on Reddit:

https://old.reddit.com/r/libreoffice/comments/mytk3l/calc_files_take_long_times_to_load_writer_files/

I'm not the only one to experience the delay, but it went away for everyone at the same time. It sounds very much like LO tries to connect to some internet service that has been misbehaving until recently.
Comment 10 Roman Kuznetsov 2021-05-06 17:13:24 UTC
OK, let's close it as WFM.

You can reopen this bug report if you'll see that delay again