Bug 131595 - Very slow switching between sheets in the attached xlsx document
Summary: Very slow switching between sheets in the attached xlsx document
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.3.5.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks: Performance
  Show dependency treegraph
 
Reported: 2020-03-26 10:18 UTC by Kevin Suo
Modified: 2024-12-29 03:13 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Test xlsx file (480.36 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2020-03-26 10:18 UTC, Kevin Suo
Details
perf flamegraph (when loading the file) (254.55 KB, application/x-bzip)
2020-03-28 11:51 UTC, Julien Nabet
Details
Flamegraph (when switching sheet) (211.33 KB, application/x-bzip)
2020-03-28 12:45 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Suo 2020-03-26 10:18:17 UTC
Created attachment 159039 [details]
Test xlsx file

Steps to reproduce:

1. Open the attached xlsx document.

2. Try to click to second sheet tab (to switch to that tab).
--> Very slow switching to the 2nd tab. After successful switch, the soffice.bin process eats 3.6 GB of my RAM, while my system RAM is 8 GB.

3. After successfully switched to the second tab, try to click some cells.
--> Very slow navigating between between cells.

Reproduced in
Version: 7.0.0.0.alpha0+
Build ID: f6f37e3341f2a3ad292af1a923dbc33d81e439c9
CPU threads: 4; OS: Linux 5.5; UI render: default; VCL: gtk3; 
Locale: zh-CN (zh_CN.UTF-8); UI-Language: en-US
Calc: threaded

And in 6.3.5.2
Fedora 31 64.

Step 2 and 3 is fast in MSO running in my VirtalBox WinXP guest machine with only 1 GB total RAM.
Comment 1 Kevin Suo 2020-03-26 10:22:24 UTC
This issue was originally reported on the LibreOffice Chinese discussion forum:
https://bbs.libreofficechina.org/forum.php?mod=redirect&tid=2421
Comment 2 m_a_riosv 2020-03-26 20:17:57 UTC
Opening the file there is a message that it exceeds the columns number limits.

And file crash LibreOffice when I try to go to the second sheet.
Comment 3 Julien Nabet 2020-03-28 10:56:52 UTC
Trying loading the document is already quite slow, more than (for a 480KB file on pc with Ryzen 2600 + 32GB)
real	0m16,036s
user	0m15,769s
sys	0m1,313s

+ I got this warning:
Warning loading document ...:
The data could not be loaded completely because the maximum number of columns per sheet was exceeded.
Comment 4 Julien Nabet 2020-03-28 11:51:31 UTC
Created attachment 159095 [details]
perf flamegraph (when loading the file)

Here's a Flamegraph retrieved on pc Debian x86-64 with master sources updated today.
It corresponds to loading only.

I'll attach another Flamegraph about the switching part.
Comment 5 Julien Nabet 2020-03-28 12:45:49 UTC
Created attachment 159096 [details]
Flamegraph (when switching sheet)

I must say that I use gtk3 so with all accessibility mechanism which seems to slow down things.
Comment 6 Buovjaga 2021-05-03 12:21:59 UTC
Tab switching is not very slow for me and memory use does not explode.

Kevin: please re-test

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 9c930c4f3109d123c0831d0fcecf9c8b32e5bbc7
CPU threads: 2; OS: Windows 10.0 Build 19042; UI render: default; VCL: win
Locale: fi-FI (fi_FI); UI: en-US
Calc: threaded
Comment 7 Kevin Suo 2022-06-28 12:06:07 UTC
(In reply to Buovjaga from comment #6)
Switching to the 2nd tab is still slow for me in
Version: 7.3.4.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: zh-CN (zh_CN.UTF-8); UI: zh-CN
Ubuntu package version: 1:7.3.4-0ubuntu0.22.04.1
Calc: threaded

and

Version: 7.4.0.0.beta1+ / LibreOffice Community
Build ID: 6ea86593851c731e2e2b969e458255e4159c80d9
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: zh-CN (zh_CN.UTF-8); UI: zh-CN
Calc: threaded
Comment 8 QA Administrators 2024-12-29 03:13:37 UTC
Dear Kevin Suo,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug