Bug 155072 - 100% CPU creating chart and Saving
Summary: 100% CPU creating chart and Saving
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.4.6.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks: Chart
  Show dependency treegraph
 
Reported: 2023-04-28 20:51 UTC by Pierre Fortin
Modified: 2023-04-29 05:56 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
spreadsheet (180.88 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-04-28 20:51 UTC, Pierre Fortin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre Fortin 2023-04-28 20:51:02 UTC
Created attachment 186992 [details]
spreadsheet

The attached s/s was initially created on LO 7.5.2.2 and it had 100% CPU issues, so I saved it and opened it with LO 7.6   About has this link: https://gerrit.libreoffice.org/gitweb?p=core.git;a=log;h=9c7d3ce813c761b116232bc291e2737c59d383da

When opening this s/s, note that the top rows are partially blank[1]; this happened after trying to create a chart, and saving the file:
- select columns A to F
- Insert Chart
- Clicked 3D
CPU running at 100% for a while. Just about any action I tried resulted in 100% CPU with Calc unresponsive until it returned from spinning its wheels.  Even Save takes a while at 100%.

[1] causing the sheet to scroll horizontally so that column A is no longer visible, the blank area disappears; then re-appears when column A is visible.

It's only 642 rows and there's no lack of horsepower in my system:
Operating System: Mageia 9
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.7
Kernel Version: 6.2.12-server-1.mga9 (64-bit)
Graphics Platform: X11
Processors: 20 × 12th Gen Intel® Core™ i7-12700K
Memory: 125.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600 XT
Manufacturer: Dell Inc.
Product Name: XPS 8950
Comment 1 Stéphane Guillou (stragu) 2023-04-28 23:41:11 UTC
I can reproduce the freeze after following the steps to create the 3D chart in:

Version: 7.4.6.2 / LibreOffice Community
Build ID: 5b1f5509c2decdade7fda905e3e1429a67acd63d
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

LO eventually gave up and crashed.

In 6.0, it struggles for a while but eventually recovers, and saving is snappy. I would call that some kind of regression, but will test further later.

Version: 6.0.0.3
Build ID: 64a0f66915f38c6217de274f0aa8e15618924765
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk2; 
Locale: en-AU (en_AU.UTF-8); Calc: group