Bug 121328 - Slow startup time on SSD
Summary: Slow startup time on SSD
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.1.3.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-10 09:54 UTC by joshas
Modified: 2018-11-11 10:38 UTC (History)
4 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 joshas 2018-11-10 09:54:51 UTC
Description:
LibreOffice programs take a long time to open on first time after computer reboot. E.g. LibreOffice Calc takes up to 13s to start, when starting program directly, not opening a document. Repeated startups usually are instant, but in some cases might take up to 10s. Looks like that there's some thing stalling startup.
LibreOffice is installed on SSD drive.

Steps to Reproduce:
1. Restart computer
2. Run any LibreOffice program, e.g. Calc
3. Wait for it to open

Actual Results:
Program startup takes a long time, all time is spent in loading banner state.

Expected Results:
Startup in a few seconds.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: SpreadsheetDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no

Version: 6.1.3.2 (x64)
Build ID: 86daf60bf00efa86ad547e59e09d6bb77c699acb
CPU threads: 4; OS: Windows 6.1; UI render: default; 
Locale: lt-LT (lt_LT); Calc: group threaded
Comment 1 V Stuart Foote 2018-11-10 14:28:23 UTC
Can not confirm on Windows 10 Home x64 (1803) with SSD at 1920x1080
Version: 6.1.3.1 (x64)
Build ID: a9670562c26181ec3afbe381c9ff499ae88c98b7
CPU threads: 4; OS: Windows 10.0; UI render: GL; 
Locale: en-US (en_US); Calc: CL

Existing LO user profile created and present in %AppData%,
Quickstart "feature" is not enabled (i.e. a LO soffice.bin is not started at startup/login).  A cold start of LibreOffice taks ~2 seconds to StartCenter.

Closing, and later reopening seems slightly faster, but certainly usable without the Quickstart instance.

Starting without a user profile, same system, initial LO launch after startup ~6 seconds (has to build profile), with subsequent launch ~2 seconds to StartCenter.

So some need info...

1. Any LO extensions other than bundled installed?

2. Any "data" source(s) in use (for form filling, maillists, ODBs)?

3. How many documents are on your StartCenter panel? Thumbnail for each must be extracted from registrymodification.xcu in LO profile and rendered to bitmap for display?

4. Any improvement if you delete/rename your user profile and retest?

5. How many fonts are loaded, test system above has 311, each font must be "parsed" for inclusion in drop lists in the UI--not sure, but imagine this happens just on initial LO launch after computer startup? Improve if you reduce and retest?

6. Are you operating on a HiDPI monitor, small 4K display (so all LO theme Icons would have to be unzipped from PNG and scaled larger to cache)? Can you check on a lower resolution monitor, or change the resolution?
Comment 2 joshas 2018-11-10 14:44:51 UTC
1. Any LO extensions other than bundled installed?
No additional extensions, custom installation with most of features, including quickstart, turned off.

2. Any "data" source(s) in use (for form filling, maillists, ODBs)?
None.

3. How many documents are on your StartCenter panel? Thumbnail for each must be extracted from registrymodification.xcu in LO profile and rendered to bitmap for display?
I'm starting Calc directly, not through StartCenter.

4. Any improvement if you delete/rename your user profile and retest?
Tried deleting user profile, starting program to create initial config and then tried after rebooting computer - still same issue.

5. How many fonts are loaded, test system above has 311, each font must be "parsed" for inclusion in drop lists in the UI--not sure, but imagine this happens just on initial LO launch after computer startup? Improve if you reduce and retest?
187 fonts.

6. Are you operating on a HiDPI monitor, small 4K display (so all LO theme Icons would have to be unzipped from PNG and scaled larger to cache)? Can you check on a lower resolution monitor, or change the resolution?
Using "standard" 1x resolution monitor.
Comment 3 V Stuart Foote 2018-11-10 16:11:11 UTC
Wait, you say startup any module in the OP. And opening to calc UI still requires the backend work of parsing the registrymodifications.xcu for soffice.bin to run, before it adds the load of building the UI elements and of rendering grid to document canvas. 

So lets keep it simple, needinfo to OP:

1. are you delayed getting to an empty StartCenter? Or is it just on Calc module launch (icon from desktop, or start menu)?  

2. And so move this report's component to LibreOffice/UI, or keep it in Calc?


Also, notice you are on x64 build with no OpenGL support--so for your hardware initial launch with clean profile will experience OpenGL failure, by GPU driver blacklist or functional test fail, and then fallback to Default CPU/HA rendering.

Subsequent launch (running or reboot) with profile in place would go directly to CPU/HA default rendering--another hurdle in confirming any issue.

Anyhow, I updated x64 install and disabled OpenGL, and still can not reproduce launching directly to Calc, or into an empty StartCenter. Dealy is not excessive, after profile creation--on initial and subsequent launches ~2 seconds.


=-testing-=
Windows 10 Home en-US 64-bit, Intel HD Graphics 620 GPU (24.20.100.6229)

Version: 6.1.3.2 (x64)
Build ID: 86daf60bf00efa86ad547e59e09d6bb77c699acb
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: en-US (en_US); Calc: CL
Comment 4 m_a_riosv 2018-11-11 01:56:50 UTC
I have seen this issue first time the program it's launched after installation (not after restarr windows), usually with dev compilations.

I'm not sure and maybe only in my imagination, but a couple of things:
- Antivirus program, LibreOffice has a lot of little files, my impression it's the AV needs to verify and register the first run of dlls.
- Net connections.
Comment 5 joshas 2018-11-11 10:38:44 UTC
Yes, I'm running Microsoft Security Essentials in background. Disabling it improved the initial startup time of LibreOffice. I'll add it to antivirus exception list.