Bug 61484 - FILEOPEN: Very slow open XLS with complex table structure and conditional formatting
Summary: FILEOPEN: Very slow open XLS with complex table structure and conditional for...
Status: RESOLVED DUPLICATE of bug 81765
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium minor
Assignee: Not Assigned
Whiteboard: BSA target:4.1.0 Confirmed:
Keywords: filter:xlsx, haveBacktrace, perf
: 61488 (view as bug list)
Depends on:
Blocks: Conditional-Formatting XLSX
  Show dependency treegraph
Reported: 2013-02-26 06:42 UTC by user
Modified: 2019-04-22 13:13 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:
Regression By:

file.xls in archive (189.40 KB, application/zip)
2013-02-26 06:42 UTC, user
Debug with Procdump+WinDBG in LO 5.2+ (11.03 KB, text/plain)
2016-04-04 11:22 UTC, Timur
Callgrind output from master (4.67 MB, application/x-xz)
2017-12-09 22:21 UTC, Buovjaga

Note You need to log in before you can comment on or make changes to this bug.
Description user 2013-02-26 06:42:09 UTC
Created attachment 75552 [details]
file.xls in archive

Problem description: 
Spreadsheet can't open file with complex table structure.
File opened normaly in MS Excel and Gnumeric

Steps to reproduce:
1. try open file

Current behavior:
program hangs

Expected behavior:
file open
Operating System: All
Version: release
Comment 1 user 2013-02-26 07:35:08 UTC
*** Bug 61488 has been marked as a duplicate of this bug. ***
Comment 2 Yifan Jiang 2013-02-26 08:37:00 UTC
It is easily reproduced. And actually the problem happens on 3.6 build as well.
Comment 3 Yifan Jiang 2013-02-26 08:42:55 UTC
Hi Markus,

It looks finally crash after a long hang here. Would you mind to have a look if time available? Thanks in advance :)
Comment 4 Markus Mohrhard 2013-02-26 09:14:41 UTC
(In reply to comment #3)
> Hi Markus,
> It looks finally crash after a long hang here. Would you mind to have a look
> if time available? Thanks in advance :)

Ok, So the first look (while it is still loading) shows that the file contains a large number of conditional formats. Applying them to the calc model seems to be the problem but the time is really spend in handling SfxItemSet and SfxPoolItems and not in the conditional format code itself.

I'll check with Excel and see if there is a better way how we can handle this file.
Comment 5 Not Assigned 2013-02-26 21:44:31 UTC
Markus Mohrhard committed a patch related to this issue.
It has been pushed to "master":


small performance improvement for fdo#61484

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Comment 6 retired 2013-12-08 11:27:24 UTC
Reproduced with 4.3alpha0+ and on OS X 10.9. gives error that the file is locked on another system. Offering Open, Open write protected, cancel. First two choices lead to a hang.
Comment 7 retired 2013-12-08 11:28:00 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2015-04-19 03:21:30 UTC Comment hidden (obsolete)
Comment 9 Buovjaga 2015-06-16 10:33:53 UTC
Still hangs.

Win 7 Pro 64-bit Version:
Build ID: 80ec99db4325a439a8a3f1d420d0a80f8bf9c439
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2015-06-16_00:00:20
Locale: fi-FI (fi_FI)
Comment 10 Timur 2016-04-04 11:21:29 UTC Comment hidden (obsolete)
Comment 11 Timur 2016-04-04 11:22:11 UTC
Created attachment 124066 [details]
Debug with Procdump+WinDBG in LO 5.2+

svllo.dll SfxSetItem
Comment 12 QA Administrators 2017-11-30 06:26:19 UTC Comment hidden (obsolete)
Comment 13 Timur 2017-11-30 07:52:28 UTC
It's not "can't open2 but rather "very slow to open". 
My comp:
LO 6.0+  400 sec for XLS
LO 6.0+  300 sec for XLSX
MSO 2013  60 sec for XLS (Excel also opens it slowly)
Comment 14 Buovjaga 2017-12-09 22:21:23 UTC
Created attachment 138335 [details]
Callgrind output from master

Arch Linux 64-bit
Build ID: d4a54ec92674773bc0f9358a3d9090915a3c8fb0
CPU threads: 8; OS: Linux 4.14; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group threaded
Built on December 9th 2017
Comment 15 Xisco Faulí 2019-04-22 13:13:25 UTC
it takes 

real	0m17,313s
user	0m16,895s
sys	0m0,233s


Build ID: e913727c7ee3af0bb4031c6829abfb3373306492
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

most likely a dupe of bug 81765

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