Bug 151855 - Freeze on start on Windows
Summary: Freeze on start on Windows
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.4.3.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-01 11:08 UTC by Vovan
Modified: 2023-11-09 07:05 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
screenshot (10.14 KB, image/jpeg)
2023-04-23 09:40 UTC, Vovan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vovan 2022-11-01 11:08:14 UTC
Description:
Sometimes LibreOffice freezes on start. The only way to get it work again boot windows in safe mode, then run LibreOffice in safe mode and reset it.


There are various discussions on this issue, but no one is conclusive. It can't be reproduced by intent, though it happens more after version update.

I'm ready to collect logs, enable debugs, build LibreOffice with additional logs enabled and so on.

Actual Results:
LibreOffice freezes.

Expected Results:
LibreOffice starts.


Reproducible: Sometimes


User Profile Reset: Yes

Additional Info:
Freezes.
Comment 1 csyu.279 2023-01-29 00:36:42 UTC
Which version of LibreOffice did you use?
Comment 2 Vovan 2023-01-29 08:07:03 UTC
Currently I have 

Version: 7.4.3.2 (x64) / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded


but it happened long time with previous versions as well. People complains about the same issues for years.
Comment 3 QA Administrators 2023-01-30 03:22:00 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2023-01-30 15:59:40 UTC
(In reply to Vovan from comment #2)
> Currently I have 
> 
> Version: 7.4.3.2 (x64) / LibreOffice Community
> Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
> CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Vulkan; VCL:
> win
> Locale: en-US (en_US); UI: en-US
> Calc: threaded
> 
> 
> but it happened long time with previous versions as well. People complains
> about the same issues for years.

Deactivating this might make a difference:
Tools - Options - LibreOffice - View - Use Skia for all rendering
Comment 5 Stéphane Guillou (stragu) 2023-04-14 12:11:43 UTC
Thank you for being willing to collect a backtrace.

Can you please:
- check that Windows and your drivers are up to date
- test again with the latest version of LibreOffice 7.4 or 7.5
- if you can still reproduce, see if disabling Skia helps, as suggested by Buovjaga
- collect a trace with: https://wiki.documentfoundation.org/How_to_get_a_backtrace_with_WinDbg

Thank you!
Comment 6 Vovan 2023-04-23 07:48:02 UTC
Well, it happens again and didn't start even in safe mode. So I rebooted Windows to safe mode, then launched Office in safe mode, disabled Skia and rebooted Windows to normal mode. Office still hangs on start.

I installed WinDbg, though there is no crash I attached to soffice.bin and several times stopped the execution and watch call stacks of threads. It's the same on each break.

Here are screenshots:
https://docs.google.com/document/d/e/2PACX-1vT9UA-gWyj5orv_S5lKauNWJhprRBOLXiMSbms-b54clWNIIoondwXPvxL0PbHDXFaj9o9wQizIFaLO/pub


Is there option to start Office with writing lof file?
Comment 7 Buovjaga 2023-04-23 09:22:36 UTC
(In reply to Vovan from comment #6)
> Well, it happens again and didn't start even in safe mode. So I rebooted
> Windows to safe mode, then launched Office in safe mode, disabled Skia and
> rebooted Windows to normal mode. Office still hangs on start.

Just to clarify on this, if you change an option *while running in Safe Mode*, this change will be forgotten once you exit LibreOffice. So rather, did you select Configure - Disable hardware acceleration and then click Apply changes and restart in the Safe Mode dialog, without continuing in Safe Mode?
Comment 8 Vovan 2023-04-23 09:40:32 UTC
Created attachment 186862 [details]
screenshot

screenshot of View config
Comment 9 Vovan 2023-04-23 09:42:15 UTC
I run main LO application, disables Skia and h/w acceleration, restarted it, but still can't run Office applications.

I guess the simple way to investigate the issue is to collect logs. Is it possible?
Comment 10 Buovjaga 2023-04-23 10:00:11 UTC
Can you also check with the latest unstable, which installs separately: Win-x86_64@tb77-TDF from https://dev-builds.libreoffice.org/daily/master/current.html
Comment 11 Vovan 2023-04-23 10:03:08 UTC
Well, I'll try, but I don't believe it will help. The issue is many years old with many different LO versions, and no reason is suggested.
Comment 12 Vovan 2023-04-23 10:04:47 UTC
And it's not reproducible by will, just happens sometimes. So it's the best to try pinpoint it just know, when it happens and I don't need working LO at this moment.
Comment 13 QA Administrators 2023-04-24 03:24:56 UTC Comment hidden (obsolete)
Comment 14 Stéphane Guillou (stragu) 2023-11-07 23:13:18 UTC
I'm wondering if this is another "network printer unavailable" slowdowns (bug 42673). I see in your screenshots "WinSalInstance::GetDefaultPrinter", mentioned in bug 42673 comment 44. And you say the issue is only sometimes reproduced.

Does the freeze only happen when connected to a network and a printer is unavailable?
Comment 15 Vovan 2023-11-09 06:47:10 UTC
> Does the freeze only happen when connected to a network and a printer is
> unavailable?

It's home computer with Ethernet connection to router and without network printer, so I don't think it's related.

Anyway I reinstalled Windows and now freeze stopped, so I guess bug could be closed as not reproducible.