Bug 134489 - Paste as RTF substantial slow compared to save as RTF
Summary: Paste as RTF substantial slow compared to save as RTF
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, haveBacktrace, perf, regression
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2020-07-03 20:12 UTC by Telesto
Modified: 2024-04-10 04:06 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (880.09 KB, application/vnd.oasis.opendocument.text)
2020-07-03 20:13 UTC, Telesto
Details
Alternative example (720.11 KB, application/vnd.oasis.opendocument.text)
2020-07-03 20:16 UTC, Telesto
Details
Perf flamegraph (1.50 MB, image/svg+xml)
2022-02-03 12:11 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-07-03 20:12:45 UTC
Description:
Paste as RTF substantial slow compared to save as RTF

Steps to Reproduce:
1. open the attached file
2. CTRL+A
3. CTRL+C
4. CTRL+N
5. CTRL+SHIFT+V -> RTF -> 40 seconds
6. Back to the original document -> Save as RTF -> 15 seconds

Actual Results:
40 seconds

Expected Results:
Around 15 seconds


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: c48e4d795e37f23b71d647247590807ab9e52223
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2020-07-03 20:13:07 UTC
Created attachment 162621 [details]
Example file
Comment 2 Telesto 2020-07-03 20:16:16 UTC
Created attachment 162622 [details]
Alternative example

5 seconds save RTF
20 seconds paste as RTF
Comment 3 Telesto 2020-07-03 20:26:00 UTC
(In reply to Telesto from comment #2)
> Created attachment 162622 [details]
> Alternative example


7.1
7 seconds save
28 seconds paste as rtf

4.4.7.2
> 5 seconds save RTF
> 20 seconds paste as RTF

4.3
1 second Save RTF
20 seconds paste as RTF

4.2
2 seconds save RTF
15 seconds paste as RTF

4.1.0.3
Save as RTF -> Crash

3.5.7.2
3 seconds save RTF
10 seconds paste as RTF
Comment 4 Xisco Faulí 2021-02-15 18:20:59 UTC
Hi Telesto,
Could you please try to reproduce it with a master build from
http://dev-builds.libreoffice.org/daily/master/ ?
You can install it alongside the standard version.
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the master build
Comment 5 Telesto 2021-02-16 18:43:31 UTC
No change..
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 28555fc345ac2ccdda0e4e0f3c812c646befe68b
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 6 Telesto 2021-02-16 18:49:38 UTC
@NISZ
Maybe interested. Debugger does show numerous times:  
warn:sw.core:9604:4448:sw/source/core/doc/textboxhelper.cxx:548: SwTextBoxHelper::syncProperty: unhandled property: Graphic

Apparently this case not being covered
-> https://opengrok.libreoffice.org/xref/core/sw/source/core/doc/textboxhelper.cxx?r=d7e5fa3b#421

----

However also something else appears to cause (more) lag
warn:legacy.osl:9604:4448:sw/source/filter/ww8/ww8atr.cxx:428: Not possible surely

424  bool MSWordExportBase::SetCurrentPageDescFromNode(const SwNode &rNd)
425  {
426      bool bNewPageDesc = false;
427      const SwPageDesc* pCurrent = SwPageDesc::GetPageDescOfNode(rNd);
428      OSL_ENSURE(pCurrent && m_pCurrentPageDesc, "Not possible surely");
Comment 7 Buovjaga 2022-02-02 15:48:29 UTC
I confirm the difference with latest of Linux 7.4 bibisect repo.

I tried with oldest of Linux 43max bibisect repo, but it seemed to take forever, so I gave up. Maybe someone is luckier on Windows.
Comment 8 Buovjaga 2022-02-03 12:11:28 UTC
Created attachment 178015 [details]
Perf flamegraph

The graph seems fine even though I got many of these while processing it:
BFD: DWARF error: could not find variable specification at offset 1c6a

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 2b95b55983689d5476e89c27177351e2d6785047
CPU threads: 8; OS: Linux 5.16; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Comment 9 QA Administrators 2024-02-04 03:14:06 UTC Comment hidden (obsolete)
Comment 10 Kira Tubo 2024-04-10 04:06:22 UTC
(In reply to Telesto from comment #2)
> Created attachment 162622 [details]
> Alternative example


Still reproducible. 

~5 seconds saving as RTF with above sample. 
~25 seconds paste as RTF 

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 806362b915ee89a4f907905a8ac8c1527ea99223
CPU threads: 6; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded