Bug 120431 - Some docx math equations do not display
Summary: Some docx math equations do not display
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOCX-Formula
  Show dependency treegraph
 
Reported: 2018-10-08 19:22 UTC by syxton
Modified: 2023-11-29 14:54 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample with issue. (11.57 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-10-08 19:23 UTC, syxton
Details
printscreen Word (4.10 KB, image/png)
2018-10-10 16:08 UTC, raal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description syxton 2018-10-08 19:22:45 UTC
Description:
There are certain math equations that display as intended in Word, but when opened in Writer it will only display a upside down question mark, or missing object.

Steps to Reproduce:
1.Open file in Word, see that equation displays.
2.Open same file in writer.
3.See that one equation displays while the other does not.

Actual Results:
One equation displays.  Under it, a missing or malformed object (upside down question mark)

Expected Results:
Two identical equations should display.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 syxton 2018-10-08 19:23:50 UTC
Created attachment 145497 [details]
Sample with issue.
Comment 2 raal 2018-10-10 16:07:29 UTC
confirm in LO 6.2. Works in 4.1 -> regression
Comment 3 raal 2018-10-10 16:08:05 UTC
Created attachment 145576 [details]
printscreen Word
Comment 4 Aron Budea 2018-10-10 23:15:51 UTC
Bibisected to the following commit using repo bibisect-win32-5.4. Adding Cc: to Takeshi Abe, please take a look.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=eeadfca73794593b07829b4ffa36c97dff59660c
author		Takeshi Abe <tabe@fixedpoint.jp>	2017-03-25 16:27:19 +0900
committer	Takeshi Abe <tabe@fixedpoint.jp>	2017-03-30 11:08:39 +0000

starmath: Hold error nodes as subnodes of SmBracebodyNode
Comment 5 Takeshi Abe 2018-10-16 09:48:32 UTC
Confirmed, anyway the current behavior is not due to a simple regression from the commit mentioned above, but due to an inevitable consequence of buggy transformation from OMML to Math's command format.

The 2nd formula of the sample doc in problem starts with "(BodyTemperature" as a literal, unlike the 1st one. As the open parenthesis is a special token in Math, the literal has to be escaped when transformed from OMML.
Comment 6 QA Administrators 2020-12-24 03:52:40 UTC Comment hidden (obsolete)
Comment 7 Roman Kuznetsov 2021-01-15 20:17:31 UTC
still repro in

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 94f6765d6ecc3145fa2d266231124003cf953118
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL
Comment 8 QA Administrators 2023-01-16 03:21:34 UTC Comment hidden (obsolete)
Comment 9 John Z. Walthall 2023-11-29 14:54:58 UTC
Yes this is still an issue in the latest:


Version: 7.6.3.2 (X86_64) / LibreOffice Community
Build ID: 29d686fea9f6705b262d369fede658f824154cc0
CPU threads: 16; OS: Mac OS X 13.6.1; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded