Bug 34350 - calc crash: too small of an interval range
Summary: calc crash: too small of an interval range
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version: 3.3.1 release
Hardware: Other All
: highest normal
Assignee: Kohei Yoshida (inactive)
QA Contact:
URL:
Whiteboard: target:3.4
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-16 10:25 UTC by Kevin Hunter
Modified: 2011-03-03 22:15 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
attribute "chart:interval-major="0.000000001" in XML apparently not appreciated by LO (31.23 KB, application/vnd.oasis.opendocument.spreadsheet)
2011-02-16 10:25 UTC, Kevin Hunter
Details
Same file with no 'chart:interval-major=...' attribute. (31.22 KB, application/vnd.oasis.opendocument.spreadsheet)
2011-02-16 10:26 UTC, Kevin Hunter
Details

Description Kevin Hunter 2011-02-16 10:25:36 UTC
Created attachment 43441 [details]
attribute "chart:interval-major="0.000000001" in XML apparently not appreciated by LO

LO appears to not appreciate fairly small interval ranges.  First clue is that LO fails to produce an image for the spreadsheet component, and then when trying to edit a chart with such an interval (i.e. double click on the image), LO crashes.

The only difference between the two attached files is a 'chart:interval-major="0.000000001"' attribute in the "Object 1/content.xml".  Though the thumbnail is not created in the "calc_survives.ods" file, you can at least double click the chart without a crash.
Comment 1 Kevin Hunter 2011-02-16 10:26:48 UTC
Created attachment 43442 [details]
Same file with no 'chart:interval-major=...' attribute.
Comment 2 Kevin Hunter 2011-02-16 10:29:25 UTC
Setting Kohei as the assignee.
Comment 3 Kohei Yoshida (inactive) 2011-02-16 12:03:57 UTC
Crasher is almost always higher priority.
Comment 4 Kohei Yoshida (inactive) 2011-03-02 13:16:19 UTC
Simple fix.  The code was trying to resize an array with a negative value.

http://cgit.freedesktop.org/libreoffice/calc/commit/?id=1e3b1a7a8c939a0ae08a14d5efdd65b17355dae9

Fixed on master.
Comment 5 Rainer Bielefeld Retired 2011-03-03 22:11:24 UTC
[Reproducible] with "LibreOffice 3.3.1  – WIN7  Home Premium  (64bit) English UI [OOO330m19 (build 8 / tag 3.3.1.2)]".

@ Kevin Hunter:
Please change Version to earliest version with what you observed the problem.
Comment 6 Rainer Bielefeld Retired 2011-03-03 22:15:25 UTC
BTW. LibO also crashes when I copy / Paste chart from "kill_calc.ods" to a blank new writer document (<cntrl>+<c> / <cntrl>+<v>. I am pretty sure that that crash is caused by the same problem, but as a precaution someone should check whether the fix also heals that WRITER crash


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.