Issue 63726

Summary: Chart: Bar-Chart with Empty NumberFormat -> Memory Corruption
Product: General Reporter: bjoern.milcke
Component: chartAssignee: kla <thomas.klarhoefer>
Status: CLOSED FIXED QA Contact: issues@graphics <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Document with an empty number format at the y-axis none

Description bjoern.milcke 2006-03-28 16:00:51 UTC
Open the attached file. (As it contains random numbers it will be automatically
reloaded to avoid just loading the meta-file). Close OOo -> Assertions about
Memory Corruption in the desctructor of the SchChartDocShell (probably of the
ChartModel).

The reason why this file causes this problem is the number format of the y-axis.
It is set to ";;;" which produces empty strings for all numbers.
Comment 1 bjoern.milcke 2006-03-28 16:01:50 UTC
Created attachment 35312 [details]
Document with an empty number format at the y-axis
Comment 2 bjoern.milcke 2006-03-28 17:03:41 UTC
Empty textshapes (with empty text string and zero-width) are no longer created
in ChartAxis::CreateMarkDescr()
Comment 3 bjoern.milcke 2006-03-29 09:44:05 UTC
To test:
Boefore the fix:
1. Load the attached document. Press F9 several times (not necessary, but maybe
increases chances for a crash)
2. Close the Office
=> In a pro Version you should get a crash-reporter or a system dialog box about
a memory error. In a non-pro Version, you should get assertions as mentioned
before, and the the crash-reporter.

With the fix:
1., 2. as before
=> The Office should quit silently. No assertions. (At least non about
memory-corruption)

re-open issue and reassign to kla@openoffice.org
Comment 4 bjoern.milcke 2006-03-29 09:44:08 UTC
reassign to kla@openoffice.org
Comment 5 bjoern.milcke 2006-03-29 09:44:11 UTC
reset resolution to FIXED
Comment 6 kla 2006-03-31 10:57:57 UTC
verified
Comment 7 kla 2006-05-12 13:38:08 UTC
seen ok into the master -> closed