Bug 162795 - Insert/Bookmark is extremely slow, in my case 80 sec
Summary: Insert/Bookmark is extremely slow, in my case 80 sec
Status: RESOLVED DUPLICATE of bug 158221
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.5.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Bookmarks
  Show dependency treegraph
 
Reported: 2024-09-04 16:35 UTC by Ola Smith
Modified: 2024-09-16 14:42 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample (398.62 KB, application/vnd.oasis.opendocument.text)
2024-09-06 10:47 UTC, Ola Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ola Smith 2024-09-04 16:35:44 UTC
Description:
When i select Insert/Bookmark in a specific document already HEAVY! with bookmarks it takes 80 sec before I get the popup window.
In the previous version it took a decent few seconds - same document

Steps to Reproduce:
1. Click Insert/Bookmark in a document already HEAVY! with bookmarks.
2. Wait
3. Wait


Actual Results:
To get this popup window for a specific document already HEAVY! with bookmarks in this case I have to wait for 80 sec.

Expected Results:
As in the previous version of Libre Office I had: a decent few seconds ...


Reproducible: Always


User Profile Reset: No

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

Happened at upgrade Ubumtu 22 -> 24
Comment 1 m_a_riosv 2024-09-04 21:33:13 UTC
Please test in safe mode, Menu/Help/Restart in Safe Mode

If it doesn't, please attach a sample file, reduce the size as much as possible without private information, and paste the information in Menu/Help/About LibreOffice, there is a copy icon.
Comment 2 Ola Smith 2024-09-05 08:46:00 UTC
Menu/Help/Restart in Safe Mode makes no difference.

But there is a simple work-around:

Menu/File/New/Text document 
Create the bookmark with its text in this empty new file.
Cut & Paste into the large document with thousands of pre-existing bookmarks.

Works fine !

I can't understand what the computer is doing during these 80 seconds.
It is not even working very hard - 7.2%
To create the list of bookmarks that appears in the Bookmark pop-up menu was no
big issue in the previous version I had, took a second or two.
 

It seems that the delay is proportional to the number of bookmarks.
Comment 3 m_a_riosv 2024-09-05 21:45:43 UTC
Please, a sample file with the issue is relevant.
Comment 4 Ola Smith 2024-09-06 10:47:46 UTC
Created attachment 196275 [details]
Sample

I enclose a cleaned-up sample. Original file was 2 500 000 characters. Now execution time is 50 seconds.
Comment 5 m_a_riosv 2024-09-06 18:16:47 UTC
Ok, I can see the strange effect on the screen. Seems while it's preparing the dialog for bookmark edition, happens the same trying to edit one of them.

Reproducible
Version: 24.8.1.1 (X86_64) / LibreOffice Community
Build ID: ef51c4a0cd35185debf25ad9d0db6a1c14bed5a0
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1b61a0737e3600aadf42f28a15c70aface9ab61e
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

Latest version that works on the ones I have installed.
Version: 6.4.7.2 (x64)
Build ID: 639b8ac485750d5696d7590a72ef1b496725cfb5
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: GL; VCL: win; 
Locale: es-ES (es_ES); UI-Language: en-US
Calc: CL
Comment 6 raal 2024-09-13 14:36:42 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-7.5.
Adding Cc: to Michael Stahl ; Could you possibly take a look at this one?
Thanks
 558b63e80bad2d99c6c5b1acc3640018e1c7c4ec is the first bad commit
commit 558b63e80bad2d99c6c5b1acc3640018e1c7c4ec
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Tue Jul 26 20:33:00 2022 +0200

    source aa6ec3f79607478213272283b7eb17ec2116173c
137355: tdf#150017 sw: allow editing bookmark text in Insert->Bookmarks dialog | https://gerrit.libreoffice.org/c/core/+/137355
Comment 7 Gabor Kelemen (allotropia) 2024-09-16 14:42:42 UTC
Sounds like a duplicate

*** This bug has been marked as a duplicate of bug 158221 ***