Bug 116930 - Calc crashes when scrolling in a worksheet containing a Chart object
Summary: Calc crashes when scrolling in a worksheet containing a Chart object
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.0.2.1 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-10 19:48 UTC by stevejb33
Modified: 2018-06-05 13:37 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
crash screenshot (130.61 KB, image/png)
2018-04-10 19:59 UTC, stevejb33
Details
Requested spreadsheet (22.46 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-04-18 23:22 UTC, stevejb33
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stevejb33 2018-04-10 19:48:41 UTC
Description:
I have a chart object produced from a range of cells within the same sheet, when I move a chart up and down in the sheet causing the vertical scrollbar to scroll up and down 3 or 4 times or leaving the chart in a static position and using the vertical scrollbar moving up and down so the chart is almost out of view and so it has to redraw both of these scenarios cause Calc to crash. The crash can be reproduced without fail.  I opened the same sheet in Excel and could not reproduce the problem.


Steps to Reproduce:
1.  Pick up the chart using the left mouse and keeping it pressed move it across to the vertical scroll bar so that the right edge of the Chart is overlapping the vertical scrollbar, move the the chart up and down so it causes the sheet and vertical scrollbar to move up and down 3 or 4 times or until Calc crashes.
And/Or
2. With a chart in a sheet just keep moving the vertical scrollbar up and down with the mouse, so that the chart goes almost out of view, for me it crashes after the 3rd or 4th time if you do it rapidly it happens sooner.

Actual Results:  
Calc crashes and I get the following pop up message with the option to Close Program.

A problem has caused the program to stop working correctly.  Windows will close the program and notify you if a solution is available. 

Expected Results:
No crash


Reproducible: Always


User Profile Reset: No



Additional Info:
OpenGl is not enabled

Microsoft Windows 10 Pro 64 bit
Version	10.0.16299 Build 16299
Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz, 2904 Mhz, 2 Core(s), 4 Logical Processor(s)
Libre Office Calc
Version: 6.0.2.1 (x64)
Build ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: en-GB (en_GB); Calc: CL


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Comment 1 stevejb33 2018-04-10 19:59:57 UTC
Created attachment 141271 [details]
crash screenshot

When I reproduced the crash for the purpose of getting this screenshot, all I did was scroll using the vertical scrollbar and this time as you can see in the screenshot I got to Row 3 and it crashed.
Comment 2 stevejb33 2018-04-10 20:23:25 UTC
Graphics Info:

Intel (R) HD Graphics 620
Shader version 5.1
OpenGL* Version 4.5
OpenCL* Version 2.1
Vulkan* Version 1.0.50
Microsoft DirectX
Runtime Version 12.0
Hardware Supported Version 12.0
Comment 3 Xisco Faulí 2018-04-10 21:57:53 UTC
Thank you for reporting the bug. To be certain the reported issue is not
related to corruption in the user profile, could you please reset your
Libreoffice profile ( https://wiki.documentfoundation.org/UserProfile ) and
re-test?

I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the issue is still present
Comment 4 stevejb33 2018-04-12 19:26:02 UTC
After following the advised steps to verify if this issue is due to a corrupt user profile, I can confirm that Calc still crashed in Safe Mode and having reproduced it many times over the crash appears to only occur when the chart object is forced to be redrawn multiple times and specifically with a vertical scroll action, it is not reproducible when scrolling horizontally with a chart object in view.
Comment 5 stevejb33 2018-04-12 19:28:52 UTC
Also I tested this with OpenGL enabled with the same outcome.
Comment 6 Xisco Faulí 2018-04-12 20:13:32 UTC
Please attach a sample document, as this makes it easier for us to verify the bug. 
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
Comment 7 stevejb33 2018-04-18 23:22:16 UTC
Created attachment 141479 [details]
Requested spreadsheet

I have provided a simple spreadsheet, all it contains is a data range and a simple chart based on that data range, but really anyone could create it minutes as its nothing comllicated and calc will crash even if you just create an empty chart and scroll vertically
Comment 8 Xisco Faulí 2018-04-19 09:34:50 UTC
Putting back to UNCONFIRMED
Comment 9 putchairinit 2018-04-19 19:03:37 UTC
Attempted to replicate crash following "steps to reproduce" described in original bug report. Was unable to replicate crash when moving/using chart object while in Calc: chart object and spreadsheet performed according to expectations in version 6.0.3.2 (x64).

LibreOffice:
Version: 6.0.3.2 (x64)
Build ID: 8f48d515416608e3a835360314dac7e47fd0b821
CPU threads: 4; OS: Windows 6.1; UI render: default;
Locale: en-US (en_US); Calc: group
Comment 10 stevejb33 2018-04-19 22:16:58 UTC
I see you could not reproduce the crash, i am an experienced tester i can reproduce it within seconds everytime without fail, I also note that you tested this on Windows 6.1? What is that, technically thats Windows 7 isnt it? As I have stated my system is the latest version of Windows 10 Pro (10.0.16299) released May 11 2017 so surely the results are incomparable since they are totally different OS's, so to reproduce you need to test this on the same OS.
Comment 11 Buovjaga 2018-04-23 11:02:11 UTC
I was able to reproduce the crash with the second method in 6.0.3 (rapid scrolling). Fortunately the crash is gone in a master build.

Could you give it a shot with a fresh master build? https://dev-builds.libreoffice.org/daily/master/Win-x86_64@42/current/

As you are an experienced tester, would you like to continue testing and especially triaging? We would like to take our QA to the next level, but it requires seriously bolstering our team. If you feel like it, get in touch: https://wiki.documentfoundation.org/QA/IRC (and check the whole /QA namespace in the wiki)

Version: 6.1.0.0.alpha0+
Build ID: 104b26b246c94c8c66864b20d00e419d96b15961
CPU threads: 4; OS: Windows 10.0; UI render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2018-04-16_08:30:15
Locale: fi-FI (fi_FI); Calc: group
Comment 12 stevejb33 2018-05-09 22:45:06 UTC
Sorry for the late reply I have been extremely busy lately.  Ok I will try it out on the new build as soon as I can and thanks I will take a look at the links you sent and will consider your offer of joining the team.
Comment 13 Xisco Faulí 2018-05-29 11:05:09 UTC
I can't reproduce it in

Versión: 6.0.4.2
Id. de compilación: 9b0d9b32d5dcda91d2f1a96dc04c645c450872bf
Subprocs. CPU: 1; SO: Windows 6.1; Repres. IU: predet.; 
Configuración regional: es-ES (es_ES); Calc: group

Could you please try to reproduce it with the version 6.0.4.2 of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
Comment 14 stevejb33 2018-06-04 17:01:39 UTC
Apologies again for the long delay I have been extremely busy and I am sorry for any inconvenience I may have caused.  I have now retested this on Libre Office 6.0.4.2 x64 as advised and I can confirm I could not reproduce this crash :) however, while testing this Calc did crash but for some other reason which I am yet to establish, but it is not related to this bug.
Comment 15 Xisco Faulí 2018-06-04 17:11:17 UTC
(In reply to stevejb33 from comment #14)
> Apologies again for the long delay I have been extremely busy and I am sorry
> for any inconvenience I may have caused.  I have now retested this on Libre
> Office 6.0.4.2 x64 as advised and I can confirm I could not reproduce this
> crash :) however, while testing this Calc did crash but for some other
> reason which I am yet to establish, but it is not related to this bug.

Thanks for retesting with the latest version.
Setting to RESOLVED WORKSFORME as the commit fixing this issue hasn't been identified.
Do you know how the other crash happened? Can you reproduce it again?
Comment 16 stevejb33 2018-06-05 13:37:51 UTC
Regarding the other crash while retesting this bug I cannot reproduce it, I selected a chart object to unlock its position and size so I could resize it and Calc crashed, I tried several times to reproduce it but couldnt.  I am working on other things atm but when I get back to working on spreadsheets I will try again.