Bug 101224 - VIEWING Cell view not updated with split screen and macros
Summary: VIEWING Cell view not updated with split screen and macros
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.0.6.3 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
Depends on:
Blocks:
 
Reported: 2016-07-30 09:57 UTC by Simon
Modified: 2022-06-09 01:38 UTC (History)
9 users (show)

See Also:
Crash report or crash signature:


Attachments
Demonstration of the problem reduced to the bare minimum (8.78 KB, application/vnd.oasis.opendocument.spreadsheet)
2016-07-30 09:57 UTC, Simon
Details
Demonstration of the problem reduced to the bare minimum - v2 (8.80 KB, application/vnd.oasis.opendocument.spreadsheet)
2017-06-24 09:01 UTC, Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon 2016-07-30 09:57:39 UTC
Created attachment 126486 [details]
Demonstration of the problem reduced to the bare minimum

The combination of a split view and the use of custom functions written in BASIC, can cause calc not to display correctly the contents of some cells.

To reproduce:
==============
- Open the attached document (WARNING: contains macros, which must be activated to demonstrate issue)
- Split the view horizontally and scroll the upper view to the top of the spreadsheet. The lower view should show the highlighted cell at row 50
- In the upper View, write any value to cell A1 and hit enter
    --> Cell A1 shows as empty, even though it (correctly) contains the value just entered.
    --> After editing any other cell, the contents of A1 will "appear"

Additional information:
========================
- The problem occurs only for cells that are referenced by a function written in BASIC
- The function must be rather "long" to calculate for the problem to show. Alternatively, the problem also shows with a function that takes less cycles, but is used in several cells. (see Example2 in the attachement)
- The problem shows also with the view split horizontally, in this case the function(s) must be in a cell to the right of A1.
- Inverting the positions for the "value cell" and the "function cell" the problem does NOT reproduce. (i.e. everything works as expected)
Comment 1 Buovjaga 2016-08-07 12:26:03 UTC
No problem here.

Maybe try with a newer version: https://wiki.documentfoundation.org/Installing_in_parallel/Linux

Arch Linux 64-bit, KDE Plasma 5
Version: 5.2.0.4
Build ID: 5.2.0-1
CPU Threads: 8; OS Version: Linux 4.6; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8)
Comment 2 Xisco Faulí 2017-06-19 12:20:00 UTC
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 3 Simon 2017-06-24 09:00:42 UTC
The Bug still shows with LO 5.3.3.2 - not with the attached document though.

I'll add a slightly modifyied version of the document that shows the problem on my system.

The reason why Buovjaga could not reproduce the problem might be that his machine is more performant than mine.

If you cannot reproduce the problem, please try to increase the cycles of the for loop in the TEST_FOR macro (Example 1).
Comment 4 Simon 2017-06-24 09:01:47 UTC
Created attachment 134239 [details]
Demonstration of the problem reduced to the bare minimum - v2
Comment 5 Buovjaga 2017-06-24 09:07:48 UTC
(In reply to Simon from comment #4)
> Created attachment 134239 [details]
> Demonstration of the problem reduced to the bare minimum - v2

With this document, I could immediately reproduce it by deleting A1 - the number 5 stayed there until I edited some other cell. Likewise, inputting something to A1 did not show it immediately.

With 3.6 it is ok.

Arch Linux 64-bit, KDE Plasma 5
Version: 6.0.0.0.alpha0+
Build ID: 5ff95b16cf9fb2ac7b2b970614e3b98f55978dc0
CPU threads: 8; OS: Linux 4.11; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on June 23rd 2017

Arch Linux 64-bit
Version 3.6.7.2 (Build ID: e183d5b)
Comment 6 raal 2018-01-22 16:02:21 UTC
This seems to have begun at the below commit.
Adding Cc: to Tomaž Vajngerl ; Could you possibly take a look at this one?
Thanks
 db76ebae674812c4c3dffafc2d02201a67dd15a7 is the first bad commit
commit db76ebae674812c4c3dffafc2d02201a67dd15a7
Author: Norbert Thiebaud <nthiebaud@gmail.com>
Date:   Wed Jun 3 14:29:56 2015 -0500

    source dca01def7885ad69cf66edd75cf8207a5adb64f9

    source dca01def7885ad69cf66edd75cf8207a5adb64f9
author    Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>    2015-05-07 14:18:37 +0900
committer    Jan Holesovsky <kendy@collabora.com>    2015-05-07 09:57:50 +0200
commit    dca01def7885ad69cf66edd75cf8207a5adb64f9 (patch)
tree    f3b43717ab058b677c68614bcb2953beb7c7d1a0
parent    7a11ec1992bf877f42edce8d1d930c5b00bd3d48 (diff)
refactor ListBox/ComboBox to use RenderContext
Change-Id: I367d6e4f54375bd61e46f0c1437444306b127c68
Comment 7 QA Administrators 2019-07-14 02:48:18 UTC Comment hidden (obsolete)
Comment 8 Miklos Vajna 2019-07-23 10:36:23 UTC
Reverting the above commit doesn't fix the problem for me, so I re-bisected this, which lead to the scheduler rewrite in 4.4 -> 5.0 timeframe. The core.git commit range is 1028643bc7d294e4c32b4ccea288d90088abae53..01f406bc28f53acc5a2734af637aa8074a5d1813, but I could not bisect further as the code doesn't build.

Adding Cc: to Tobias Madl; Could you possibly take a look at this one?

And removing from the "List-Combobox-RenderContext-regressions" tracker.
Comment 9 QA Administrators 2021-07-23 03:37:35 UTC Comment hidden (obsolete, spam)
Comment 10 Justin L 2022-02-25 13:58:07 UTC
This seems to be fixed since LO 7.1's
author	Caolán McNamara on 2020-10-16 12:54:14 +0200
commit e087e25f05e689091cbf1c4f91b6e93878ac17ec
  weld InputBar
  this also restores that DnD of a selection from the inputbar is pasted as plain
  text not rich text formatted with the happenstance formatting of the inputbar's
  EditEngine