Bug 92551 - Spurious circular reference errors - new in 4.4.4.3
Summary: Spurious circular reference errors - new in 4.4.4.3
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.4.4.3 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-05 10:59 UTC by David Lynch
Modified: 2018-02-26 11:27 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Change A1 to see the bug (15.61 KB, application/vnd.oasis.opendocument.spreadsheet)
2015-07-05 10:59 UTC, David Lynch
Details
Screenshot after change A1 (120.29 KB, image/png)
2015-07-05 14:54 UTC, m_a_riosv
Details
Corrupt user profile (deleted)
2015-07-06 07:10 UTC, David Lynch
Details
Spreadsheet exhibiting bug (1.11 MB, application/vnd.oasis.opendocument.spreadsheet)
2015-07-17 20:47 UTC, David Lynch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Lynch 2015-07-05 10:59:35 UTC
Created attachment 117058 [details]
Change A1 to see the bug

When changing a cell (eg A1 in the attached spreadsheet), I get numerous Err:522 cells, not always, but usually. 

Setting on them and pressing [F9] does not remove them, but [CNTL][SHIFT][F9] removes all.

This happens only after I installed 4.4.4.3 yesterday.

The spreadsheets involved were affected by bug 89957.
Comment 1 m_a_riosv 2015-07-05 14:54:24 UTC
Created attachment 117066 [details]
Screenshot after change A1

Hi @David,

I can't reproduce with:
Win7x64Ultimate
Version: 4.4.4.3 Build ID: 2c39ebcf046445232b798108aa8a7e7

Attached screenshot after change A1.
Comment 2 David Lynch 2015-07-05 16:11:46 UTC
Thanks for attempting to reproduce this.

Renaming my user profile solves the problem. I'm now trying to find out what in my user profile is causing the error.
Comment 3 David Lynch 2015-07-05 18:55:03 UTC
The registrymodifications.xcu file causes the problem. I have kept it and can post it here if it is of interest.
Comment 4 m_a_riosv 2015-07-05 21:35:46 UTC
I have found several times that the issues are only with that file.

Please attach here, of course after deleting any personal information like user data.

Added @Joel as CC, because recently he was looking for that corrupted user profiles.

Please could change the status from FIXED to WORKSFORME, in reality nothing was fixed.
Comment 5 David Lynch 2015-07-06 07:10:20 UTC
Created attachment 117073 [details]
Corrupt user profile
Comment 6 David Lynch 2015-07-10 20:29:25 UTC
This error has started to appear again. It disappeared for a few days when I made myself a new user profile.
Comment 7 David Lynch 2015-07-17 20:46:57 UTC
This bug has got more and more frequent. For some time [CNTL][SHIFT][F9] got rid of the Err: 522 cells. Then it moved the Err: 522 to a different set of cells. Now nothing will remove the Err: 522 cells.

Renaming the user profile has no effect.

I have attached the spreadsheet.
Comment 8 David Lynch 2015-07-17 20:47:55 UTC
Created attachment 117305 [details]
Spreadsheet exhibiting bug
Comment 9 m_a_riosv 2015-07-17 22:32:55 UTC
Sorry @David, I think there is a circular reference:

wds.CA (corrected_clue)
wds.BU
wds.G
wds.B
$w.$A$1:AB1
corrected_clue

What can help to find this issues is:

Menu/Tools/Detective/Trace error

If you need to use in that way then activate the option:
Menu/Tools/LibreOffice calc/calculate - Iterative reference
It can limits how many times to do recursive calculations.
Comment 10 David Lynch 2015-07-18 07:19:23 UTC
Many thanks. You are right.

The offending code has been unchanged for months. I don't understand why:

 at first there were no Err:522 errors
 then, [CNTL][SHIFT][F9] removed them
 then, renaming the user profile removed them
 then, [CNTL][SHIFT][F9] moved the errors elsewhere
 then, now, it is impossible to remove them.
Comment 11 m_a_riosv 2015-07-18 10:51:37 UTC
"Hard recalc" [Shif+Ctrl+F9] forces the whole recalculitation while "Autorecalculate" or [F9] recalculate a cell when there are changes in their precedents.

And also there are several fixed bugs with issues in situations where Autocalculate didn't work properly. Maybe it can explain why now circular error is always showed and not before.

I think for now we can't consider this as a bug, please if you are not agree, reopen it.
Comment 12 David Lynch 2015-07-20 21:43:15 UTC
Thanks for your help. I agree that it should not be a bug.

I am still getting occasional cells with Err: 522 (in a different part of the the spreadsheet).

I have reduced the number of iterations to 3 in 
Menu/Tools/LibreOffice calc/calculate - Iterative reference

When I set on the cell in error and do Menu/Tools/Detective/Trace error, as you suggest, the error disappears and the expected value appears in the cell and I get no error trace.

Am I doing something wrong?
Comment 13 m_a_riosv 2015-07-20 21:59:17 UTC
It's really difficult to know what happens in a so complex file, test if change the value minimum change for iterative references option.

I have done several calculations with [F9] and with [Ctrl+Shift+F9] (hard recalc), and I can't see circular errors. (minimum change 0.001), maybe some other global option produces the error.
Comment 14 Xisco Faulí 2018-02-26 11:27:47 UTC
The content of attachment 117073 [details] has been deleted