FS#68181 - libreoffice-fresh: calc: automatic recalculation is broken

Attached to Project: Arch Linux
Opened by Ville Aakko (Wild_Penguin) - Saturday, 10 October 2020, 15:36 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 17 October 2020, 12:56 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

In libreoffice calc, chancing a value should cause recalculations if the respective setting is on. However, this seems utterly broken at the moment.

Additional info:
$ pacman -Qi libreoffice-fresh
Nimi : libreoffice-fresh
Versio : 7.0.2-1

Steps to reproduce:

1. Create a new libreoffice calc document. Make sure automatic recalculation is enabled (I started with a fresh configuration by deleting ~/.config/libreoffice).
2. Enter the following cells (this is an example - simplest one I can reproduce this reliably); format here is CELL:[VALUE]

A1:[1]
A2:[1]
A3:[=A1+A2]
A4:[1]
A6:[=A3+A4]

3. Change value in A1 to [2] and after that (but any value different from original should work ... or, rather, fail).

Observed results: Value in cell A3 updates to 3 (as it should), but value in A6 does not update to 4 but still displays 3.

Expected results: All cells should update, if the setting is on and cells referred from their formula has been changed.

Other observations:
a) order is important here. In case cell A1 or A2 is changed first, and after that A4 is changed, cell A6 does not update. The inverse is not true always (but sometimes is!).
b) pressing F9 will always update, and as such can be used as a workaround
c) changing any other cell not used as input in any of the formulas, does cause an update! (although, it should not cause a recalculation, as the data has not changed)

First I though this always needs formulas referring to formulas (as in my example), but I've reproduced this even with independent blocks of data (not referring to each other) with depth of 1 (i.e. no cell formula referring to a cell containing a formula), but I can not reproduce those reliably with any example. As such, I'm not sure what is going on.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 17 October 2020, 12:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  7.0.2-2
Comment by Ville Aakko (Wild_Penguin) - Saturday, 10 October 2020, 16:30 GMT
Seems there is an upstream bug: https://bugs.documentfoundation.org/show_bug.cgi?id=137248 [Calc - AutoCalculate malfunction, always F9 (ReCalculate) necessary]. Couldn't find that earlier, probably because the bugzilla is awkward to use and slow to respond.

Also, sorry about my description being confusing at some parts - I was having another example in the works, which was a bit more complex, but didn't work as reliably. It seems I didn't edit the description (after 3. and "Other observations) correctly. Feeling a bit tired ATM...

To be clear: the contents of the current example work just by changing A1 (or A2). A more complex example can be found in the upstream bug.
Comment by nicolas (cavernico) - Wednesday, 14 October 2020, 17:41 GMT
Yes, it happens to me too, i downgrade the package to the last version in my cache: Libreoffice-fresh 7.0.1-2, that solve the problem for now.
If you have concatenated formulas that rely on each other, say 3 formulas that wont refersh and you put a value in a random cell and press enter, the first formula will refresh, if you put a value in a second random cell it will refresh the second formula and so on.
Comment by Maxim (mxfm) - Thursday, 15 October 2020, 05:21 GMT
As another workaround - saving document also causes recalculation.
Comment by Andreas Radke (AndyRTR) - Thursday, 15 October 2020, 10:46 GMT Comment by nicolas (cavernico) - Friday, 16 October 2020, 14:51 GMT
The commit is working? im dont know how to apply it yet, looking in the net, sorry. i know that is a diff and i sould apply it as patch i think, but should i put it into the original pkgbuild?
Comment by nicolas (cavernico) - Saturday, 17 October 2020, 01:22 GMT
Works like a charm, just a few hours and a lot of searching and now i know how to apply diffs like a pro :)

Loading...