The toolbar button for Sum (Σ) should sum up only the contents of the filled-cells and output to an adjacent area instead of the extreme corners for the entire worksheet.
This operation as currently implemented also takes longer than is necessary because instead of summing only the contents of a few cells, it tries to work on the entire sheet (1023 columns x 1048575 rows).
Steps to Reproduce:
1. Enter in 1 and 1 in separate rows in a new sheet (Cells A1 and A2).
2. Select All using any method (Edit > Select All / Ctrl+A / Cmd+A / Ctrl+Shift+Space).
3. Click the Sum button (Σ) in the toolbar (to the left of the Formula Input line).
- Calc will try to work on the entire sheet.
- Outputs will be entered into each corner of the sheet (use Ctrl+Arrow or Cmd+Arrow to jump to the end of the sheet): Cells AMJ1, AMJ2, AMJ1048576 and A1048576.
- The operation will take a long time and force one CPU core to be at 100% for about 12 seconds in 22.214.171.124.beta2 and 18 seconds in 126.96.36.199 with an Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz) (as reported by lscpu).
- It will appear to the user as if LibreOffice Calc has frozen.
In this example the calculation should only be applied to the filled cells and result should output to Cell A3 only.
User Profile Reset: Yes
Tested with LibreOffice 188.8.131.52 and 184.108.40.206.beta2 on both Fedora 28 and macOS 10.13.5 - I believe the behaviour in Windows will be the same (to be confirmed).
While the user will quickly learn to not press the Sum after a Select All again, Gnumeric and Excel both correctly lead the user to summing and outputting to A3. Interestingly, Google Sheets and Apple Numbers also have less desirable outcomes (but no CPU spikes).
With Calc, the user might think Calc has hung and might forcibly terminate it - potentially leading to data loss.
A previous version on Mac (I believe 6.0.1) was also tested and showed completely different totals - so this may or may not be of interest.
Reproduced already with 3.3.0. Seems like a relevant thing to change.
Arch Linux 64-bit
Build ID: bd394492c165d27c96a44495d9ca694a242acb8f
CPU threads: 8; OS: Linux 4.17; UI render: default; VCL: gtk3;
Locale: fi-FI (fi_FI.UTF-8); Calc: group threaded
Built on July 11th 2018
Arch Linux 64-bit
Not sure if that is a bug. Instead of selecting all cells, try to select only A5:C5 and press the sum button. The result is the sum at end of each row and each column of the range.
Help for LO 6.0 says:
Inserts the sum of a cell range into the current cell, or inserts sum values into selected cells. Click in a cell, click this icon, and optionally adjust the cell range. Or select some cells into which the sum values will be inserted, then click the icon.
Best regards. JBF
Dear Raymond Wu Won,
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 http://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://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa
Thank you for helping us make LibreOffice even better for everyone!
(In reply to Jean-Baptiste Faure from comment #2)
> Not sure if that is a bug. Instead of selecting all cells, try to select
> only A5:C5 and press the sum button. The result is the sum at end of each
> row and each column of the range.
> Help for LO 6.0 says:
> Inserts the sum of a cell range into the current cell, or inserts sum values
> into selected cells. Click in a cell, click this icon, and optionally adjust
> the cell range. Or select some cells into which the sum values will be
> inserted, then click the icon.
> Best regards. JBF
I agree with Jean-Baptiste, it is absolutely right behavior in Calc