Apache OpenOffice (AOO) Bugzilla – Issue 121058
[From Symphony]To open a sample file contains chart with large data source can lead to AOO crash
Last modified: 2017-05-20 11:42:15 UTC
Open the sample file with large chart, it takes too much time on loading, looks like freeze. And sometimes a warning dialog pops up with warning msg "Main memory shortage. Please quit other applications or close some windows before continuing.", click "OK" button on this dialog, then pops up an error dialog and AOO crashes.
Created attachment 79598 [details] patch Root Cause: There are 66000 points in the chart. When draw so many points, it consume too much memory. Solution: If there are too many points, picked some points to paint.
Created attachment 79599 [details] sample file Add sample file
This solution is not a total solution to improve chart rendering performance for very larger data. It is a walkaround. When the number of data point for a data series is larger than 10000, we only sample some data point. It only works for numeric data, not work for text data.
Submit in revision 1388440
The code looks good. Thanks Clarence GUO
Verified on AOO350m1 1391367. Passed.