Bug 140671 - Cannot display or edit bad existing formula in table cell
Summary: Cannot display or edit bad existing formula in table cell
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Tables-Formulas
  Show dependency treegraph
 
Reported: 2021-02-25 21:12 UTC by Ulrich Windl
Modified: 2023-04-02 03:24 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot showing error popup for bad formula "=min<K2:M2>" (120.17 KB, image/png)
2022-08-30 09:53 UTC, Ulrich Windl
Details
Example Documents, most likeley demonstrating the bug (14.02 KB, application/vnd.oasis.opendocument.text)
2022-09-01 06:18 UTC, Ulrich Windl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Windl 2021-02-25 21:12:21 UTC
As it seems I can enter a formula like "min<K2:M2>" in a formula cell and the expression is calculated.
Sometimes there are errors with the formulas, and I only get a message displayed inside the table cell that goes like "** Fehlerhafter Ausdruck" (in German, probably "Error in expression").
When I hover with the mouse over the error message I see something like "min(<?:?>)", but I can neither display the formula permanently (like via Control+F9), nor can I edit such existing formulas via F2; when I try to edit a formula, I see an empty formula, meaning I have to re-enter the formula.
It seems the problem occurs *sometimes* if the formula has been copied from another row. It also seems the problem does not occur if the formula was copied from another column in the same row.
Usability is just terrible.

When viewing content.xml of such a document, a bad formula looks like this:
<table:table-cell table:style-name="Tabelle9.A1" table:formula="ooow:MAX(<?:?>)" office:value-type="float" office:value="1.7976931348623157E+308">
Comment 1 Ulrich Windl 2021-02-25 21:20:26 UTC
Another thing I had noticed is that copying formula "mean <B2:K2>" gives wrong results, but copying formula "mean(<B2:K2>)" gives the correct results.
Comment 2 Dieter 2021-03-12 07:28:15 UTC
(In reply to Ulrich Windl from comment #1)
> Another thing I had noticed is that copying formula "mean <B2:K2>" gives
> wrong results, but copying formula "mean(<B2:K2>)" gives the correct results.

Ulrich, thank you for reporting the bugs, but please don't mix two issues in one report. Please open a new report for the second problem.
Comment 3 Dieter 2022-02-27 05:51:38 UTC
Hello Ulrich, a new major release of LibreOffice is available since this bug was reported. Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 4 QA Administrators 2022-08-27 03:36:20 UTC Comment hidden (obsolete)
Comment 5 Ulrich Windl 2022-08-30 09:53:42 UTC
Created attachment 182095 [details]
Screenshot showing error popup for bad formula "=min<K2:M2>"

When trying to reproduce with 7.2.5.1, I can see the bad formula now, and I can edit it. The automatic correction proposal does not make it much better, however.
(The correct syntax would be "=MIN(K2:M2)")
Comment 6 raal 2022-08-31 18:17:01 UTC
Hello
Component is Writer, but your last printscreen is from Calc? You wrote: "When trying to reproduce with 7.2.5.1, I can see the bad formula now, and I can edit it."  - so can we close this Writer's bug?
Comment 7 Ulrich Windl 2022-09-01 06:18:21 UTC
Created attachment 182136 [details]
Example Documents, most likeley demonstrating the bug

(In reply to raal from comment #6)
Seems I was confused: With the lack of an example document, I wondered how I can insert a formula referring to cells in a writer document without having embedded a calc object (Sorry, the report is too long ago). So I just tried calc directly...

Trying to reproduce, it behaves much like the calc example did.
Still I'm not 100% sure that that is the original problem described. Sorry.
Comment 8 raal 2022-09-01 14:18:04 UTC
(In reply to Ulrich Windl from comment #0)
> As it seems I can enter a formula like "min<K2:M2>" in a formula cell and
> the expression is calculated.

I cannot confirm, I have Err:520 in Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 27892a5e12dada80226f778ab2bd14b1bdaab58a
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 9 Ulrich Windl 2022-09-02 06:27:49 UTC
(In reply to raal from comment #8)
> I cannot confirm, I have Err:520 in Version: 7.5.0.0.alpha0+ / LibreOffice
> Community
> Build ID: 27892a5e12dada80226f778ab2bd14b1bdaab58a

Probably changed in the meantime.
Comment 10 Dieter 2022-09-02 07:55:12 UTC
(In reply to Ulrich Windl from comment #9)
> Probably changed in the meantime.

Ulrich, could you please try to reproduce it with your attachment 182136 [details] and a master build from http://dev-builds.libreoffice.org/daily/master/current.html ? You can install it alongside the standard version. I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the master build.
Comment 11 QA Administrators 2023-03-02 03:25:30 UTC Comment hidden (obsolete)
Comment 12 QA Administrators 2023-04-02 03:24:12 UTC
Dear Ulrich Windl,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp