Issue 116281 - OpenOffice crashes when Basic calls a right method
Summary: OpenOffice crashes when Basic calls a right method
Status: CONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All Mac OS X, all
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-02 17:55 UTC by ddorange
Modified: 2017-05-20 11:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
File with right work... (11.82 KB, text/plain)
2011-01-02 17:56 UTC, ddorange
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description ddorange 2011-01-02 17:55:41 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 ....
Comment 1 ddorange 2011-01-02 17:56:06 UTC
Created attachment 75460 [details]
File with right work...
Comment 2 jsc 2011-01-03 09:04:16 UTC
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. 
Comment 3 jsc 2011-01-03 09:04:56 UTC
back to submitter
Comment 4 ddorange 2011-01-03 13:38:33 UTC
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. 
Comment 5 ddorange 2011-03-08 07:18:31 UTC
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 ?
Comment 6 Marcus 2017-05-20 11:28:07 UTC
Reset assigne to the default "issues@openoffice.apache.org".