Bug 45892 - Concurrent use of MathType and LibreOffice Math in LibreOffice Writer can cause a MathType error
Summary: Concurrent use of MathType and LibreOffice Math in LibreOffice Writer can cau...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.4.5 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: NeedsMathType
Keywords:
Depends on:
Blocks: OLE-Objects
  Show dependency treegraph
 
Reported: 2012-02-10 05:39 UTC by Pierre Farrugia
Modified: 2020-09-25 08:39 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
attachment-22014-0.html (3.54 KB, text/html)
2013-01-14 12:57 UTC, Pierre Farrugia
Details
attachment-22014-1.dat (1 bytes, multipart/alternative)
2013-01-14 12:57 UTC, Pierre Farrugia
Details
screenshot.JPG (133.18 KB, image/jpeg)
2013-01-14 12:57 UTC, Pierre Farrugia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre Farrugia 2012-02-10 05:39:17 UTC
I using Writer to create documents containing a large number of equations. I have tried to use a combination of MathType and LibreOffice Math for the equations.  However when I insert around 12 MathType equations and then try to insert a LibreOffice Math equation I get the MathType error "To many windows are open". Severity of the problem depends on how many MathType Equations I have insert. When I try to close the document and open it again I frequently find that the document has to be recovered before I can use it.
Comment 1 sasha.libreoffice 2012-02-22 05:13:06 UTC
Thanks for bugreport
Bug I have some questions:
- it is reproducible in 3.5.0 version of LibreOffice?
- what version of Windows and MathType are used?
- is reproducible on another computers?
- please, attach small document with around 12 MathType equations so I can try reproduce this problem
Comment 2 Pierre Farrugia 2012-02-24 02:56:21 UTC
Hi,

*- it is reproducible in 3.5.0 version of LibreOffice?*

Yes I had the same problem when I installed 3.5.0

*
- what version of Windows and MathType are used?*

I am using windows XP and the MathType version is 6.5a


*- is reproducible on another computers?*

I have reproduced it on my lap to but it runs the same operating system and
MathType version as my main PC.


*- please, attach small document with around 12 MathType equations so I can
try*

The error cannot be reproduced in this way. The MathType equations have to
be introduced in the current session. If you introduce any number of
MathType equations in a document, save and close the document, when you
open it again you need to include other 12 MathType equations before the
errors pops up gain. Closing the document and opening it again is actually
the work around. Sorry about this.


Thank you.

Kind regards,

Pierre-Sandre





On Wed, Feb 22, 2012 at 6:13 AM, <bugzilla-daemon@freedesktop.org> wrote:

> https://bugs.freedesktop.org/show_bug.cgi?id=45892
>
> sasha.libreoffice@gmail.com changed:
>
>           What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                 CC|                            |
> sasha.libreoffice@gmail.com
>
> --- Comment #1 from sasha.libreoffice@gmail.com 2012-02-22 05:13:06 UTC
> ---
> Thanks for bugreport
> Bug I have some questions:
> - it is reproducible in 3.5.0 version of LibreOffice?
> - what version of Windows and MathType are used?
> - is reproducible on another computers?
> - please, attach small document with around 12 MathType equations so I can
> try
> reproduce this problem
>
> --
> Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
Comment 3 sasha.libreoffice 2012-02-24 03:15:58 UTC
Thanks for additional information

@ Tor
Please, take look at this bug when will have time. Windows-specific bug with error "To many windows are open" from MathType.
Comment 4 Joel Madero 2012-09-10 20:25:44 UTC
Can you get us a test document since you said it's dependent on how many equations you have. Get this attached and I'll confirm the bug. Thanks for helping us out
Comment 5 Pierre Farrugia 2012-09-11 14:01:40 UTC
Dear Joel,

The error cannot be reproduced using a test document. The MathType equations have to be introduced in the current session. If you introduce any number of MathType equations in a document, save and close the document, when you open it again you need to include other 12 MathType equations before the errors pops up again. Closing the document and opening it again is actually the work around. Sorry about this.

Should you have any other question please let me know.

Kind regards,

Pierre-Sandre



(In reply to comment #4)
> Can you get us a test document since you said it's dependent on how many
> equations you have. Get this attached and I'll confirm the bug. Thanks for
> helping us out
Comment 6 Jean-Baptiste Faure 2013-01-13 11:02:53 UTC
Are you sure that the problem is in LibreOffice and not in MathType?
What about if you create your formula in MathType directly? I assume that you can work in MathType in standalone mode.

Please could you attach a screencopy of the error message? It is not clear if the error message is sent by MathType or by LibreOffice.

Best regards. JBF
Comment 7 Pierre Farrugia 2013-01-14 12:53:17 UTC
Dear Jean-Baptiste,

The error is sent from MathType as you can check from the screenshot.
However the error is sent only if working within Libreoffice with both
MathType and Math.

I have never tried saving a formula in MathType and then importing it.
Given that the problem occurs when you open or create the MathType formula
within Libreoffice, I can anticipate that it is very likely the conflict
would not occur. However, this would just be a work around, that is not
very practical from the workflow point of view.

Should you need anything from my side just let me know.

Kind regards,

Pierre








On Sun, Jan 13, 2013 at 12:02 PM, <bugzilla-daemon@freedesktop.org> wrote:

>  Jean-Baptiste Faure <jbf.faure@sud-ouest.org> changed bug 45892<https://bugs.freedesktop.org/show_bug.cgi?id=45892>
>  What Removed Added  CC   jbf.faure@sud-ouest.org
>
>  *Comment # 6 <https://bugs.freedesktop.org/show_bug.cgi?id=45892#c6> on bug
> 45892 <https://bugs.freedesktop.org/show_bug.cgi?id=45892> from Jean-Baptiste
> Faure <jbf.faure@sud-ouest.org> *
>
> Are you sure that the problem is in LibreOffice and not in MathType?
> What about if you create your formula in MathType directly? I assume that you
> can work in MathType in standalone mode.
>
> Please could you attach a screencopy of the error message? It is not clear if
> the error message is sent by MathType or by LibreOffice.
>
> Best regards. JBF
>
>  ------------------------------
> You are receiving this mail because:
>
>    - You reported the bug.
>
>
Comment 8 Pierre Farrugia 2013-01-14 12:57:52 UTC
Created attachment 73005 [details]
attachment-22014-0.html

the screenshot in compressed format.






On Mon, Jan 14, 2013 at 1:52 PM, Pierre-Sandre Farrugia <
pierresandre@gmail.com> wrote:

> Dear Jean-Baptiste,
>
> The error is sent from MathType as you can check from the screenshot.
> However the error is sent only if working within Libreoffice with both
> MathType and Math.
>
> I have never tried saving a formula in MathType and then importing it.
> Given that the problem occurs when you open or create the MathType formula
> within Libreoffice, I can anticipate that it is very likely the conflict
> would not occur. However, this would just be a work around, that is not
> very practical from the workflow point of view.
>
> Should you need anything from my side just let me know.
>
> Kind regards,
>
> Pierre
>
>
>
>
>
>
>
>
>
> On Sun, Jan 13, 2013 at 12:02 PM, <bugzilla-daemon@freedesktop.org> wrote:
>
>>  Jean-Baptiste Faure <jbf.faure@sud-ouest.org> changed bug 45892<https://bugs.freedesktop.org/show_bug.cgi?id=45892>
>>  What Removed Added  CC   jbf.faure@sud-ouest.org
>>
>>  *Comment # 6 <https://bugs.freedesktop.org/show_bug.cgi?id=45892#c6> on bug
>> 45892 <https://bugs.freedesktop.org/show_bug.cgi?id=45892> from Jean-Baptiste
>> Faure <jbf.faure@sud-ouest.org> *
>>
>> Are you sure that the problem is in LibreOffice and not in MathType?
>> What about if you create your formula in MathType directly? I assume that you
>> can work in MathType in standalone mode.
>>
>> Please could you attach a screencopy of the error message? It is not clear if
>> the error message is sent by MathType or by LibreOffice.
>>
>> Best regards. JBF
>>
>>  ------------------------------
>> You are receiving this mail because:
>>
>>    - You reported the bug.
>>
>>
>
Comment 9 Pierre Farrugia 2013-01-14 12:57:53 UTC
Created attachment 73006 [details]
attachment-22014-1.dat
Comment 10 Pierre Farrugia 2013-01-14 12:57:53 UTC
Created attachment 73007 [details]
screenshot.JPG
Comment 11 QA Administrators 2013-09-24 01:54:48 UTC Comment hidden (obsolete)
Comment 12 Jean-Baptiste Faure 2013-09-24 06:12:00 UTC
Set back to unconfirmed.
Comment 13 Pierre Farrugia 2013-09-25 07:27:32 UTC
Dear Jean-Baptiste,

I believe all the information that has been requested to date has been provided. The bug also seems to be in UNCONFIRMED status. Please let me know if there is anything else I should be doing.

Thank you.

Kind regards,

Pierre-Sandre
Comment 14 Jean-Baptiste Faure 2013-09-25 15:29:41 UTC
Hi Pierre, thank you for your comment. At the moment, we don't need more information from you. What we need is another user of MathType and LibreOffice who could reproduce the behavior you described.

Best regards. JBF
Comment 15 Robinson Tryon (qubit) 2014-02-04 14:32:49 UTC
(In reply to comment #14)
> Hi Pierre, thank you for your comment. At the moment, we don't need more
> information from you. What we need is another user of MathType and
> LibreOffice who could reproduce the behavior you described.
> 
> Best regards. JBF

Pierre - please try to find another MathType users who may reproduce the bug you're experiencing.

Thanks!
Comment 16 Pierre Farrugia 2014-02-04 19:56:13 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > Hi Pierre, thank you for your comment. At the moment, we don't need more
> > information from you. What we need is another user of MathType and
> > LibreOffice who could reproduce the behavior you described.
> > 
> > Best regards. JBF
> 
> Pierre - please try to find another MathType users who may reproduce the bug
> you're experiencing.
> 
> Thanks!

Hi,

I am the only user that I know that uses regularly MathType. Hence I really cannot help you with that. Sorry.

Kind regards,

Pierre
Comment 17 Robinson Tryon (qubit) 2014-02-04 20:05:21 UTC
(In reply to comment #16)
> (In reply to comment #15)
> > Pierre - please try to find another MathType users who may reproduce the bug
> > you're experiencing.
> 
> I am the only user that I know that uses regularly MathType. Hence I really
> cannot help you with that. Sorry.

Thanks for the update!

Given that we haven't found anyone able to help us repro this bug, I'd like to punt on it/resolve it soon. We can always re-open the bug later if we can get positive repro on the steps you described.

Status -> UNCONFIRMED
Comment 18 Pierre Farrugia 2014-02-19 07:33:27 UTC
(In reply to comment #17)

Hi,

In time I came to the understanding that there are not so many users actively using extensively MathType with LibreOffice. As thus I have no objection to the removal of this bug. Possibly, in time, the Math equation editor can be equipped with a WYSIWYG GUI that would make the use of MathType immaterial.

Thank you for your consideration.

Pierre





> (In reply to comment #16)
> > (In reply to comment #15)
> > > Pierre - please try to find another MathType users who may reproduce the bug
> > > you're experiencing.
> > 
> > I am the only user that I know that uses regularly MathType. Hence I really
> > cannot help you with that. Sorry.
> 
> Thanks for the update!
> 
> Given that we haven't found anyone able to help us repro this bug, I'd like
> to punt on it/resolve it soon. We can always re-open the bug later if we can
> get positive repro on the steps you described.
> 
> Status -> UNCONFIRMED
Comment 19 Jean-Baptiste Faure 2014-02-19 21:53:04 UTC
(In reply to comment #18)
> Possibly, in time, the Math equation editor can be equipped with a WYSIWYG GUI 
> that would make the use of MathType immaterial.

Did you try the math editor with the experimental functions enabled?
In LO 4.2 go to menu Tools > Options > LibreOffice > Advanced

Best regards. JBF
Comment 20 Pierre Farrugia 2014-02-27 10:54:48 UTC Comment hidden (no-value)
Comment 21 Owen Genat (retired) 2014-07-28 08:49:49 UTC
Comment on attachment 73006 [details]
attachment-22014-1.dat

HTML and DAT attachments made obsolete as they appeared to all be part of a single attempt to attach a webpage containing a screenshot to the bug. Screenshot is still attached, although an example document containing a dozen or so MathType equations for others to test would be more helpful.
Comment 22 Joel Madero 2014-07-28 19:10:24 UTC
Hi Pierre -

So I installed a 30 day trial of MathType - if you can give EXACT reproducible steps (give the steps both in MathType -- which I am unfamiliar with -- and LibreOffice). What does it mean to "insert" (you mean copy/paste). Be as specific as possible and then I will try to confirm the issue. 

Thanks for your tremendous patience on this one

Also please don't respond via email, it makes reading the comments much harder. Thanks
Comment 23 Pierre Farrugia 2014-07-30 07:49:02 UTC
Dear Joel,

The steps to follow are these:

1. Open an document in Writer.
2. Insert a MathType equation using: Insert -> OLE Object -> Further Objects -> Microsoft Equation 3.0 (or MathType; should be the same). Write something in it and close.
3. Repeat Step 2 eleven or more times.
4. Try to insert a Math (LibreOffice) formula.

The error will appear at this point.

Personally I use the following macro to insert the MathType more quickly,

sub InsertMathTypeFormulaInWriter
dim oTargetDocument as variant
oTargetDocument = ThisComponent
dim oCurrentController as variant
oCurrentController = oTargetDocument.getCurrentController()
dim oFormula as variant
oFormula = oTargetDocument.createInstance("com.sun.star.text.TextEmbeddedObject") 
oFormula.CLSID = "0002CE03-0000-0000-C000-000000000046"
oFormula.AnchorType = com.sun.star.text.TextContentAnchorType.AS_CHARACTER
oFormula.attach(oCurrentController.Selection.getByIndex(0) )
dim oXCOEO as variant: oXCOEO = oFormula.ExtendedControlOverEmbeddedObject
oXCOEO.doVerb(com.sun.star.embed.EmbedVerbs.MS_OLEVERB_PRIMARY)
End Sub

The error is reproducible both if you use the macro as well as if you insert manually the MathType instance.

I am running LibreOffice 3.6.2.2 on XP at the moment.

Hope this information is enough. If you need anything else just let me know.

Cheers

Pierre




(In reply to comment #22)
> Hi Pierre -
> 
> So I installed a 30 day trial of MathType - if you can give EXACT
> reproducible steps (give the steps both in MathType -- which I am unfamiliar
> with -- and LibreOffice). What does it mean to "insert" (you mean
> copy/paste). Be as specific as possible and then I will try to confirm the
> issue. 
> 
> Thanks for your tremendous patience on this one
> 
> Also please don't respond via email, it makes reading the comments much
> harder. Thanks
Comment 24 Buovjaga 2014-11-05 12:15:08 UTC
(In reply to Pierre Farrugia from comment #23)
> sub InsertMathTypeFormulaInWriter
> dim oTargetDocument as variant
> oTargetDocument = ThisComponent
> dim oCurrentController as variant
> oCurrentController = oTargetDocument.getCurrentController()
> dim oFormula as variant
> oFormula =
> oTargetDocument.createInstance("com.sun.star.text.TextEmbeddedObject") 
> oFormula.CLSID = "0002CE03-0000-0000-C000-000000000046"
> oFormula.AnchorType = com.sun.star.text.TextContentAnchorType.AS_CHARACTER
> oFormula.attach(oCurrentController.Selection.getByIndex(0) )
> dim oXCOEO as variant: oXCOEO = oFormula.ExtendedControlOverEmbeddedObject
> oXCOEO.doVerb(com.sun.star.embed.EmbedVerbs.MS_OLEVERB_PRIMARY)
> End Sub

Running this on 4.4 I get

BASIC runtime error.
Object variable not set.

..pointing to the line before End Sub.
Comment 25 Pierre Farrugia 2014-11-05 12:31:54 UTC
(In reply to Beluga from comment #24)
> (In reply to Pierre Farrugia from comment #23)
> > sub InsertMathTypeFormulaInWriter
> > dim oTargetDocument as variant
> > oTargetDocument = ThisComponent
> > dim oCurrentController as variant
> > oCurrentController = oTargetDocument.getCurrentController()
> > dim oFormula as variant
> > oFormula =
> > oTargetDocument.createInstance("com.sun.star.text.TextEmbeddedObject") 
> > oFormula.CLSID = "0002CE03-0000-0000-C000-000000000046"
> > oFormula.AnchorType = com.sun.star.text.TextContentAnchorType.AS_CHARACTER
> > oFormula.attach(oCurrentController.Selection.getByIndex(0) )
> > dim oXCOEO as variant: oXCOEO = oFormula.ExtendedControlOverEmbeddedObject
> > oXCOEO.doVerb(com.sun.star.embed.EmbedVerbs.MS_OLEVERB_PRIMARY)
> > End Sub
> 
> Running this on 4.4 I get
> 
> BASIC runtime error.
> Object variable not set.
> 
> ..pointing to the line before End Sub.


Use of the script is not required. It is simply an easy way of opening a MathType instance. I found the instructions on the internet and it worked well with the version of LibreOffice I used. Given that the problem manifest itself in any way the MathType instance is inserted it is immaterial if the script does not work.

The manual insertion of the MathType instance should work in all cases. Hence, I suggest you proceed with the manual insertion.
Comment 26 Buovjaga 2014-11-05 12:44:27 UTC
Reproduced.

Sorry for the misunderstanding about the macro: I didn't realize I had to install MathType trial first :)

If others want to repro: when MathType launches using the macro, create some formula and press ctrl-s, it will appear in Writer. You can then copy it for the repetitions.

Win 7 64-bit Version: 4.4.0.0.alpha1+
Build ID: b7d8a58ff2698ffc6e22943f64aa97c5ea253bd9
TinderBox: Win-x86@42, Branch:master, Time: 2014-11-05_00:40:38
Comment 27 QA Administrators 2015-12-20 16:20:01 UTC Comment hidden (obsolete)
Comment 28 QA Administrators 2017-01-03 19:50:58 UTC Comment hidden (obsolete)
Comment 29 QA Administrators 2020-09-25 03:57:06 UTC Comment hidden (obsolete)
Comment 30 Pierre Farrugia 2020-09-25 07:11:30 UTC Comment hidden (obsolete)
Comment 31 Jean-Baptiste Faure 2020-09-25 07:19:54 UTC
(In reply to Pierre Farrugia from comment #30)
> Hi,
> 
> I am no longer using the software due to problems encountered. Thus you can
> ignore the request whatever its status.

Ok, so the problem is not solved. Set back to new.

Best regards. JBF
Comment 32 Buovjaga 2020-09-25 08:39:17 UTC
I tested with MathType 7.0 and latest LibO master and there was no problem after over 12 manual inserts. The macro does not work anymore. Closing.