Apache OpenOffice (AOO) Bugzilla – Issue 115443

OO Math crashes when opening the following formula

Last modified: 2011-02-10 15:24:14 UTC

alignl size 10 { w_V = left lbrace matrix{ 1, phantom {sum to {}{}} # V in Y ## 0, phantom {sum from {} to {} {}} # V in ST ## sum from {X: exists E = lbrace X, V rbrace } w_X, # V in A union RT } right none } Steps to reproduce: 1) Enter the formula above into the blank Math document, or insert it into formula object embedded into Writer document. 2) Save the document. 3) Open Math document, or open Writer document containing the formula and try to edit the formula. 4) OOo crashes, notifying you about documents it is going to recover. The problematic part of the formula is "sum from {} to {} {}" (particularly "from {}" part). When replaced with "sum from {a} to {} {}" or "sum to {} {}" it works as expected. The issue is quite trivial to workaround, but the the crash is uncomfortable, because it does not allow you to fix the problem using OOo and requires you to manually edit underlying MathML code.

The problem is confirmed to happen with OOo 3.2.1 too.

Yes the empty braces {} are the reason in this context. Seems to be more like an export problem since the ODF validator correctly complains about the document. (See also attached document). Other applications however (e.g. Firefox) seem to be fine with this broken ODF.

Created attachment 72892 [details] Sample bug doc

Text of the sample bug doc: matrix{ 1 phantom {sum to {}{}} ## 2 phantom {sum from {} to {} {}} ## sum from X w }

.

Fixed in CWS tl84. Since it was the export that got fixed the attached bugdoc still can't be read even in the fixed office, but with the fix such broken files will not be written anymore now. Files changed: M source\mathmlexport.cxx

TL->MRU: Please verify. Thanks!

Verified in CWS tl84.

Checked in DEV300m99.