Apache OpenOffice (AOO) Bugzilla – Issue 116281
OpenOffice crashes when Basic calls a right method
Last modified: 2017-05-20 11:28:07 UTC
File with right work... This bug comes with Mandriva 2010.2 or MacOSX and OOO330m18 Build 9556 (OOO RC8). Install Dmaths : www.dmaths.org/addons/DmathsAddon.oxt First formula write 1/2 and then F10 (F8 Mac) or red M icon in the toolbar. then write +1/3 and then F10 (F8 Mac) or red M icon in the toolbar. Instead you get 1 over 2 + 1 over 3 and the right formula, it crashes. Library Dmaths Modul named module1 Line 1543 : Objets=oTextCursor2.createContentEnumeration("com.sun.star.text.TextContent") This line works very fine since OOo2.4 ....
Created attachment 75460 [details] File with right work...
i am not sure if this is a OOo problem or more the problem of the extension. Sure the office shouldn't crash but it's easy to cause a crash from an extension and that can't be avoided 100%. I would suggest that you contact the extension owner/maintainer first.
back to submitter
I'm the extension owner. This extension works fine until OOo3.2.1 and works fine with OOo 3.3 RC 8 under windows 7, and Ubuntu. It crashes with Mandriva 2010.2 (KDE or GNOME) or MacOSX. oTextCursor2 is a TextCursor, com.sun.star.text.TextContent an avalaible service. oTextCursor2.createContentEnumeration("com.sun.star.text.TextContent") is a right line. So, I think it's an API bug.
Hello, 1) With following code I get a crash (MacOsX). /Sub bugMac oViewCursor = ThisComponent.getCurrentController().getViewCursor() oTextCursor=oViewCursor.Text.createTextCursorByRange(oViewCursor) obj=ThisComponent.CreateInstance("com.sun.star.text.TextEmbeddedObject") obj.CLSID="078B7ABA-54FC-457F-8551-6147e776a997" obj.AnchorType=com.sun.star.text.TextContentAnchorType.AS_CHARACTER oTextCursor.Text.insertTextContent(oTextCursor, obj, true) obj.embeddedObject.formula="1 over x" obj.dispose End Sub/ 2) If I comment the following line : obj.dispose, the formula is inserted. 3) But, If I try to remove it (with "Backspace") LibreOffice crashes again. 4) If I copy and paste the formula, I can remove the pasted one but not the first. May be a problem with memory when I try to destroy the object ?
Reset assigne to the default "issues@openoffice.apache.org".