Bug 103517 - Math formula suddenly mixed
Summary: Math formula suddenly mixed
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-26 11:23 UTC by bug.reporter.21
Modified: 2017-05-31 10:46 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Correct document (187.49 KB, application/vnd.oasis.opendocument.text)
2016-10-26 11:25 UTC, bug.reporter.21
Details
Badly placed equations (90.93 KB, application/vnd.oasis.opendocument.text)
2016-10-26 11:29 UTC, bug.reporter.21
Details
Document recovered in a state prior to the issue (74.03 KB, text/plain)
2016-10-27 12:33 UTC, Mehdi Amara
Details
Document mixing formulas and figures (48.22 KB, application/vnd.oasis.opendocument.text)
2016-10-27 12:36 UTC, Mehdi Amara
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bug.reporter.21 2016-10-26 11:23:26 UTC
Two attachments are given:

Last backup.odt is a document containing text and math formulas.
Comment 1 bug.reporter.21 2016-10-26 11:25:44 UTC
Created attachment 128284 [details]
Correct document

In that file equations are located where they are expected to
Comment 2 bug.reporter.21 2016-10-26 11:29:03 UTC
Created attachment 128285 [details]
Badly placed equations

After some editing, saving and reopening, this new document show all the formulas but at wrong locations. Moreover, formulas are no longer editable.
Comment 3 bug.reporter.21 2016-10-26 12:18:21 UTC
I took a look at the contents of both .odt when uncompressed. It first appears that
the backup document contains an Object NNN folder for each math formula whereas the newest document does not.
Most importantly, one can observe that both contents.xml files have exactly the same references to math formulas, at least for the common parts. 
From the beginning both contents.xml read a series of

<draw:image xlink:href="./ObjectReplacements/Object NNN" .../>

where NNN is 43, 44, 45, 46, 11, 32, 31, 34, 8, 9, 10, 7... in that very order.

The problem is that in Bad equations.odt, formula are displayed as if NNN was 1, 2, 3, 3, 4, 5, 6, 7, 8, 9, 10...

For example, the 7th formula of Bad equations.odt is the 12th of Last backup.odt.
Conversely, the 5th formula of Last backup.odt is the 11th of Bad equations.odt. This should not occur because the contents is the same !
Comment 4 bug.reporter.21 2016-10-26 12:22:39 UTC
Typo : the sequence should read 1, 2, 3, 4, 5... not 1, 2, 3, 3, 4, 5...
Comment 5 Regina Henschel 2016-10-26 13:17:39 UTC
The math formulas are lost in the file "Badly placed equations". If you unpack the file, you should have a lot of sub-folders "Object NNN". So the question is, why the sub-folders are lost.

Do you use the default setting in Tools > Options > LibreOffic > Memory > Cache for inserted objects? For mathematical texts you need a notable larger number.

Do you have any other hints, what was done with the document? If the problem is not reproducible, it cannot be fixed. 


BTW, you have exchanged the fonts in the formula with a font, that I cannot use on Windows 7. So for me the "Correct document" does not render correctly.
Comment 6 bug.reporter.21 2016-10-26 16:44:26 UTC
I just retyped all the formulas starting with my good backup and using copy/paste from the document with badly placed equations. When I finished, I saved, closed LO and reopened the file and the equations got mixed once again, but only on the last page. However, there was a new problem : 2 equations where displayed as a black box respectively named Object 15 and Object 89. There was no subfolder named Object 89 but there was one named Object 15 amongst many (90) others. That time I was able to properly edit the equations.
Then, I just retyped the bad equations on the last page and the document seems now ok.
During that time, nothing special happened, so I can't help more for now.

I use a standard LO with no special setting.
What would be a proper count for the cache for inserted object in the memory settings ?
Comment 7 Regina Henschel 2016-10-26 17:29:31 UTC
(In reply to bug.reporter.21 from comment #6)
> I use a standard LO with no special setting.
> What would be a proper count for the cache for inserted object in the memory
> settings ?

If you have already "Object 89" then the default value 20 is to small. My texts have often about four pages and I work with value 400.
Comment 8 Julien Nabet 2016-10-26 20:16:31 UTC
It could be interesting you give a try to last stable LO version 5.2.2.
Comment 9 Julien Nabet 2016-10-26 20:17:24 UTC
I noticed you assigned yourself to the bug. Do you confirm you want to fix it yourself?
Comment 10 bug.reporter.21 2016-10-26 20:51:42 UTC
I am certainly not able to fix that bug. I must have clicked inadvertently at the wrong place... Tried to reset the assignee to default.
Comment 11 Mehdi Amara 2016-10-27 12:33:24 UTC
Created attachment 128306 [details]
Document recovered in a state prior to the issue

This is the document I was working on, including mathematical formulas and figures. The formulas and figure are correctly placed, and the formulas are still editable.
Comment 12 Mehdi Amara 2016-10-27 12:36:00 UTC
Created attachment 128307 [details]
Document mixing formulas and figures

This is the previous document after some editing and saving. The formulas are mixed with the figures and can no longer be edited.
Comment 13 bug.reporter.21 2016-10-27 12:46:08 UTC
I just created a document with math and text, comparable to the one that showed problems. The only difference is that I previously set
Tools > Options > LibreOffice > Memory > Cache for inserted objects
to 2000 instead of the default 20, and there is no problem yet...
Comment 14 Mehdi Amara 2016-10-27 13:06:29 UTC
The issue I encountered seems related to the reported bug. This time, the equations are not only in the wrong positions, but they are mixed with figures : i.e. some figures appear at the places where the equations should be and vice versa. The equations can no longer be edited : this is a critical issue as the work in progress is lost. If the user has no backup, all equations should be rewritten with the risk that they could again disappear.
Comment 15 Mehdi Amara 2016-10-27 13:13:22 UTC
looking at the memory preferences, they were set to the default values, the number of inserted objects at 20. I my corrupted document the inserted figures and formulas were less than 10, far below the 20 limit.
Comment 16 QA Administrators 2017-05-02 11:36:58 UTC Comment hidden (obsolete)
Comment 17 QA Administrators 2017-05-31 10:46:14 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-20170531