Bug ID 1222533
Summary Libreoffice needs 100% CPU for 3 minutes to open Lenovo compatibility matrix
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware x86-64
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component LibreOffice
Assignee screening-team-bugs@suse.de
Reporter martin.wilck@suse.com
QA Contact qa-bugs@suse.de
Target Milestone ---
Found By ---
Blocker ---

Created attachment 874156 [details]
perf record data for loading the file with native TW package

Upstream: https://bugs.documentfoundation.org/show_bug.cgi?id=160595

Environment: OpenSUSE Tumbleweed 20240329, GNOME/X11,
libreoffice-calc-24.2.2.2-1.2.x86_64

Offending file: 

Lenovo Accessories and Options Compatibility Matrix (OCM)
https://download.lenovo.com/pccbbs/options_iso/ocm_apr_2024.xlsx
(access via http://www.lenovo.com/accessoriesguide)

Steps to reproduce: Download and open the file with calc.

Results: Calc hangs with 100% CPU with "load document" progress bar at ~80%.
It finishes after ~3 minutes.

With the flatpak version of Libreoffice, opening the file takes only ~15s.

"perf report" shows for the openSUSE native package:

Samples: 520K of event 'cycles:P', Event count (approx.): 366840243651          
Overhead  Command          Shared Object                   Symbol               
  49.69%  soffice.bin      libgtk-3.so.0.2409.32           [.]
0x000000000030d7a8                                                      
  27.60%  soffice.bin      libglib-2.0.so.0.8000.0         [.]
g_node_insert_before                                                    
   2.49%  soffice.bin      libgtk-3.so.0.2409.32           [.]
0x000000000030d7ac                                                      
   1.32%  soffice.bin      libgtk-3.so.0.2409.32           [.]
0x000000000030d7af                                                      
   0.85%  soffice.bin      libgtk-3.so.0.2409.32           [.]
0x000000000030d7b7                                                      
   0.43%  soffice.bin      libc.so.6                       [.] malloc           
   0.27%  soffice.bin      libuno_cppu.so.3                [.]
typelib_typedescriptionreference_equals                                 
   0.23%  soffice.bin      libc.so.6                       [.] _int_free


You are receiving this mail because: