Bug 98159 - [EDITING] Formulas not evaluated after dragging down
Summary: [EDITING] Formulas not evaluated after dragging down
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-24 20:48 UTC by mjnowakowski
Modified: 2020-01-22 07:41 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
A problematic spreadsheet after shaving (11.86 KB, application/vnd.oasis.opendocument.spreadsheet)
2016-02-24 20:48 UTC, mjnowakowski
Details
Obtained with --backtrace, after a hang. (5.12 KB, text/plain)
2016-02-24 20:50 UTC, mjnowakowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mjnowakowski 2016-02-24 20:48:32 UTC
Created attachment 122963 [details]
A problematic spreadsheet after shaving

In document attached, select cells H23:P23 and drag the formulas down to row 27. The cells changed display empty and need F9 to reappear.

I use a 32-bit Core Duo, but an AMD64 system I checked had this problem too.

I have an Ubuntu Trusty, with "deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main" in apt's sources. If I not misread my apt-get history log, the problem appeared in "5.0.5~rc2-0ubuntu1~trusty1" and is still present in "1:5.1.0~rc3-0ubuntu1~trusty0". I recall that previous version "5.0.4~rc2-0ubuntu1~trusty1" didn't have it.

Disabling OpenCL and Software Interpreter doesn't help.
Comment 1 mjnowakowski 2016-02-24 20:50:10 UTC
Created attachment 122964 [details]
Obtained with --backtrace, after a hang.

Another bug, much less reproducible, is that LO can crash or hang when dragging these formulas down one row a time. I attached a backtrace.
Comment 2 m_a_riosv 2016-02-25 01:01:54 UTC
Hi @mjnowakowski, thanks for reporting.

Your sample file has Menu/Tools/cells conten/Autocalculate disable.

But there is a bug because, those empty cells must have the same value of the copied cells, what can be seen with copying instead dragging.
Comment 3 mjnowakowski 2016-02-25 16:18:32 UTC
Thanks @m.a.riosv, do you mean Data -> Calculate -> AutoCalculate? I think I never messed with this setting, but it helps!

I see the values being the same after copying (formulas are correct, just the values are wrong), but only when this AutoCalculate is off. It seems that my backtrace is quite easy to reproduce this way:

disable AutoCalculate
Select H23:P23
Copy it to H24:P24, then to H25:P25, then to  to H26:P26 and finally to H27:P27
Select H23:P23 again
Drag the formulas down to row H27:P27.

Here LO crashes for me reliably.
Comment 4 QA Administrators 2017-09-01 11:15:02 UTC Comment hidden (obsolete)
Comment 5 mjnowakowski 2017-09-11 17:19:34 UTC
No crash in 5.1.6.2 for me, but I'm on a 64-bit machine now.
Comment 6 QA Administrators 2018-09-12 02:38:10 UTC Comment hidden (obsolete)
Comment 7 b. 2019-02-27 14:42:22 UTC
draw down formula:
works as expected with 5.4.7.2 (x64)
- empty cells with autocalculate off, 
- correct results with autocalculate on, 

crashes:
- not tested
Comment 8 b. 2020-01-22 07:38:12 UTC
steps from comment #3: 

disable AutoCalculate - ok, 
Select H23:P23 - ok, 
Copy it to H24:P24 - ok, then to H25:P25 - ok, then to  to H26:P26 - ok and finally to H27:P27 - ok
Select H23:P23 again - ok
Drag the formulas down to row H27:P27 - ok.

Here LO crashes for me reliably. - no crash, 

steps from comment #7: 

draw down formula:
works as expected with 5.4.7.2 (x64) - still ok with 6.4.0.2 winx64, 
- empty cells with autocalculate off - still ok with 6.4.0.2 winx64, 'zeros'
- correct results with autocalculate on - still ok with 6.4.0.2 winx64, results in H27, L25:L27, col.M, col.N, col.O, P27, 
crashes: - no crash with script from c#3, see above,  

tested with: 
Version: 6.4.0.2 (x64)
Build ID: 08d19fecdc7a2298d051e19cfdb7c35544855fc3
CPU threads: 8; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: default; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-US
Calc: 

thus wfm 'til somebody finds any misbehaviour e.g. in an 32bit installation? 

reg. 

b. 

P.S. no crash with 4.1.6.2, 
repro crash with: 
Version: 5.0.0.1 (x64)
Build ID: 9a0b23dd0ab9652e0965484934309f2d49a7758e
Locale: de-DE (de_DE)
thus setting first affected to 5.0.0.1 (not offered, taken 5.0.0.5),
tested with x64, thus setting HW to all, 
tested with win, thus setting OS to all, 

P.S.II. 98009 wrong calculations avoidable by turning off openCL, this bug 98159 crash not avoidable by any seting for openCL, thus no or 'low' 'relation'?
Comment 9 b. 2020-01-22 07:41:11 UTC
sorry forgot: 

on crash sometimes error: 'SEH Exception: Access Violation!'