Bug 148977 - Multiple Operations does not work correctly if lots of formulas are involved in the calculation
Summary: Multiple Operations does not work correctly if lots of formulas are involved ...
Status: RESOLVED DUPLICATE of bug 148982
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-07 15:52 UTC by Nick
Modified: 2022-07-06 21:34 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Bug Reproducing Spreadsheet (28.81 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-05-07 15:52 UTC, Nick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick 2022-05-07 15:52:17 UTC
Created attachment 179987 [details]
Bug Reproducing Spreadsheet

I've encountered a bug with the "Multiple Operations" feature in calc, and I've attached a spreadsheet to this that reproduces the bug.

This is a simple test spreadsheet to illustrate the problem. If you look in the Good tab, you'll see that there are about 400 rows and this works correctly.

Each row does a simple calculation that references the result from the row before it, along with the input variables X and Y that are defined at the top of the spreadsheet.

The "Final" cell at the bottom in column A is just the last result found.

I created a list of X and Y values ranging from 0 to 6 and used the "Multiple Operations" feature to fill in the results. So the table at the bottom should be the same as if you manually entered the corresponding values for X and Y and filled it in.

So the "Good" tab works just fine at around 400 rows.


The "Bad" tab is the exact same thing, only there are around 1900 rows. But the calculation should be done the same way.

You'll notice that in this case, the resulting values are all filled in with 3. This is incorrect and reflects the X and Y values that are currently set at the top. So in this case it is not actually performing the Multiple Operations function.

It only worked at all when I went into Options->Libreoffice Calc->Calculate and enabled Iterations. If you uncheck Iterations then you'll see that the result of Multiple Operations gives "Err:522", which doesn't really make sense as an error.

I have also seen Err:504 using Multiple Operations which seems to be the same bug, just presenting itself differently.

Thank you.
Comment 1 Regina Henschel 2022-05-08 13:49:30 UTC
Has Multiple.Operation is own limit for recursion?
Comment 2 Telesto 2022-05-08 15:19:39 UTC
(In reply to Regina Henschel from comment #1)
> Has Multiple.Operation is own limit for recursion?

Lets add someone who might know the answer. It has never worked, based on the attached file. 

---
FWIW: I didn't investigate the formula itself, if there is some mistake made..
Comment 3 Eike Rathke 2022-07-06 21:34:22 UTC
Looks pretty much the same as bug 148982, see https://bugs.documentfoundation.org/show_bug.cgi?id=148982#c7 for findings. Resolving as duplicate so far.

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