Bug 152567 - macOS: LibreOffice freezes 7 seconds until popup granting access to certain folder (like documents) appears
Summary: macOS: LibreOffice freezes 7 seconds until popup granting access to certain f...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks: Performance
  Show dependency treegraph
 
Reported: 2022-12-17 14:35 UTC by Telesto
Modified: 2023-04-12 16:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Trace (2.03 MB, application/zip)
2023-02-12 08:35 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2022-12-17 14:35:26 UTC
Description:
macOS: LibreOffice freezes 30 seconds until popup granting access to certain folder (like documents) appears

Steps to Reproduce:
1. Download LibreOffice Master
2. Launch LibreOffice (start center)
3. Launch Writer
4. Press Save -> wait, wait.. granting access dialog appears

Actual Results:
stuck 30 seconds until a dialog appears

Expected Results:
the 30 seconds delay probably unneeded


Reproducible: Always


User Profile Reset: No

Additional Info:
.
Comment 1 Sierk Bornemann 2022-12-17 16:33:15 UTC
I cannot confirm the issue in question – the granting access dialog appears instantely without a 30 seconds delay.

Version: 7.6.0.0.alpha0+ (AARCH64) / LibreOffice Community
Build ID: 8635c9aa8c6f1078a9e220076d5a08daf30077e8
CPU threads: 10; OS: Mac OS X 13.1; UI render: Skia/Metal; VCL: osx
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded
Comment 2 Alex Thurgood 2022-12-19 13:53:03 UTC
No repro for me either, sorry.

Version: 7.6.0.0.alpha0+ (AARCH64) / LibreOffice Community
Build ID: ad387d5b984c6666906505d25685065f710ed55d
CPU threads: 8; OS: Mac OS X 13.0.1; UI render: Skia/Metal; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded
Comment 3 steve 2022-12-20 14:15:06 UTC
removed file permissions for LOdev. Copied a fresh LOdev to applications folder.

When trying to store a new writer file for the first time, I saw the beachball for ~7 seconds until the permissions dialog showed up.

macOS 13.1 on MacBookPro14,3
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 70d9e7eadb1069b5e7a1909c671b9348b740cca1
CPU threads: 8; OS: Mac OS X 13.1; UI render: Skia/Raster; VCL: osx
Locale: de-DE (en_DE.UTF-8); UI: en-US
Calc: threaded
Comment 4 Telesto 2022-12-20 16:31:22 UTC
(In reply to steve from comment #3)
> removed file permissions for LOdev. Copied a fresh LOdev to applications
> folder.
> 
> When trying to store a new writer file for the first time, I saw the
> beachball for ~7 seconds until the permissions dialog showed up.
> 
> macOS 13.1 on MacBookPro14,3
> Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
> Build ID: 70d9e7eadb1069b5e7a1909c671b9348b740cca1
> CPU threads: 8; OS: Mac OS X 13.1; UI render: Skia/Raster; VCL: osx
> Locale: de-DE (en_DE.UTF-8); UI: en-US
> Calc: threaded

I might have exaggerated the issue, but sounds like it..

Same happens when overwriting a previous version of LibreOfficeDev (with access) and re-opening a document from the Start-Center (so clicking a thumbnail of an document).
Comment 5 Patrick Luby (volunteer) 2023-02-12 00:33:09 UTC
I see this occasionally on my Silicon Mac except that it is after opening a file in my Downloads folder. There is a lag of a few seconds and just as I am going to the Finder to launch the Activity Monitor application, the macOS dialog that asks for permission for LibreOffice to access the Downloads folder appears.

Are you able to obtain a sample from the Activity Monitor application? Or does it occur too infrequently for that?
Comment 6 Telesto 2023-02-12 08:35:51 UTC
Created attachment 185330 [details]
Trace

I don't see anything special..

I think the issue being limited to Master builds from TDF at this point in time. No issue with official release builds. So likely something related to signing.

I have multiple Master builds in my app directory.
1. Launching LibreOfficeDev variant A,
2. Open Writer
3. Press Open -> Freeze
4. if not, close LibreOffice
5. Launching LibreOfficeDev variant B with different build date
6. Open Writer
7. Press Open -> Freeze
Comment 7 Patrick Luby (volunteer) 2023-02-12 14:22:51 UTC
(In reply to Telesto from comment #6)
> I don't see anything special..
> 
> I think the issue being limited to Master builds from TDF at this point in
> time. No issue with official release builds. So likely something related to
> signing.
> 
> I have multiple Master builds in my app directory.
> 1. Launching LibreOfficeDev variant A,
> 2. Open Writer
> 3. Press Open -> Freeze
> 4. if not, close LibreOffice
> 5. Launching LibreOfficeDev variant B with different build date
> 6. Open Writer
> 7. Press Open -> Freeze

Thank you for the Instruments sample. I don't see anything special either. I cannot reproduce this with the latest night build. On my machine, the "LibreOffice would like to access files in your X folder" dialog displays immediately after double-clicking on a document in the Start Center. Here's my LibreOffice About dialog data:

Version: 7.6.0.0.alpha0+ (AARCH64) / LibreOffice Community
Build ID: 6f15382790e2e758ef7328a62341b30c655aced1
CPU threads: 8; OS: Mac OS X 12.6.3; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Note: To force this macOS dialog to appear, I had quit LibreOffice, remove LibreOffice from the "Files and Folder" panel in the Security & Privacy icon in the System Preferences application, and restart LibreOffice.