Bug 133627 - 6.4.4 and 7.2.5 produce docx that crashes Word 2019 but not Word 2016
Summary: 6.4.4 and 7.2.5 produce docx that crashes Word 2019 but not Word 2016
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-03 07:55 UTC by PMouse
Modified: 2022-09-06 12:45 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
First Error Message From Word2019 (37.93 KB, image/png)
2022-01-12 00:36 UTC, PMouse
Details
Second Error Message from Word2019 (34.44 KB, image/png)
2022-01-12 00:37 UTC, PMouse
Details
Almost Minimum Working Example (338.58 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-01-13 01:47 UTC, PMouse
Details
Working Example saved in MSO 2016 (666.67 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-01-14 10:25 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PMouse 2020-06-03 07:55:21 UTC
Description:
I edited a Word docx with track changes and, when I shared this document with the rest of my team, they reported it crashes Word.  I have tested and verified this is the case.

Steps to Reproduce:
1. Open file in Word 2019
2. Click on line marked with suggested changes/edits
3. Word 2019 becomes unresponsive and never recovers

I do not know how to create a document that does this from scratch, but I have a document that does it.

Actual Results:
Seems to work in Writer, crashes Word.  Collaborators upset.

Expected Results:
Produce a more compliant document?


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
ersion: 6.4.4.2
Build ID: 6.4.4.2-1.fc32
CPU threads: 16; OS: Linux 5.7; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.utf8); UI-Language: en-US
Calc: threaded
Comment 1 PMouse 2020-06-03 07:56:56 UTC
I have a file to reproduce this, but it has some personal information in it that I would prefer not to share publicly.  Just let me know if I can send this directly to someone, if that is helpful.
Comment 2 Xisco Faulí 2020-06-03 08:43:50 UTC Comment hidden (obsolete)
Comment 3 PMouse 2020-06-03 18:55:18 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2020-06-04 03:45:09 UTC Comment hidden (obsolete)
Comment 5 Dieter 2020-09-11 06:31:33 UTC
(In reply to Xisco Faulí from comment #2)
> Hello PMouse,
> Could you please send it to me to my email address ? Thanks in advance

Xisco, were you able to reproduce the crash or do you still miss the docment?
Comment 6 Xisco Faulí 2021-07-07 10:31:12 UTC
Hello PMouse,
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 7 PMouse 2021-07-08 17:07:31 UTC Comment hidden (obsolete)
Comment 8 PMouse 2021-07-08 17:23:46 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2021-07-09 04:02:48 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2022-01-06 03:45:59 UTC Comment hidden (obsolete)
Comment 11 PMouse 2022-01-11 22:48:59 UTC Comment hidden (obsolete)
Comment 12 PMouse 2022-01-12 00:34:54 UTC
Latest version of LO produces broken .docx files.  LO will open the old test file that I shared with you, earlier.  I can edit that file and save it again.  But, Word 2019 cannot open that file.

I tested a new, blank document created by LO and saved as a Word2007 docx forma, and Word2019 was able to open that document and seemed to let me edit it.  I also tested a UTF-8 sample .txt format document, which I opend with LO and saved as Word2007 docx format, and Word2019 was also able to open that document.  I also re-tested the original test document produced by LO that I shared with you, and Word2019 still hangs immediately after opening it, same as I reported.  

But, the new test document, which is the old test document that I opened, edited, and saved again as Word2007 docx, cannot even be opened by Word2019.  Word2019 gives two error messages.  The first error says: "Word found unreadable content in '<document>'.  Do you want to recover the contents of this document?  If you trust the source of this document, click Yes."  If I click "Yes", then I get the next error: "This file cannot be opened by using Microsoft Word.  Do you want to search Office.com for a converter that can open the file?"  I clicked cancel.

I tested the following LO version:

Version: 7.2.5.2 / LibreOffice Community
Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5
CPU threads: 24; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.utf8); UI: en-US
Calc: CL

I will attach screenshots of the errors, next.
Comment 13 PMouse 2022-01-12 00:36:37 UTC
Created attachment 177473 [details]
First Error Message From Word2019
Comment 14 PMouse 2022-01-12 00:37:07 UTC
Created attachment 177474 [details]
Second Error Message from Word2019
Comment 15 PMouse 2022-01-13 01:47:52 UTC
Created attachment 177514 [details]
Almost Minimum Working Example

Okay, I did a little more testing and found out that this problem is not related to comments or tracked changed, as I originally assumed.  It is related to images, somehow.  I have a very small working example, now, that exposes the problem.  I hope this will be helpful.
Comment 16 Timur 2022-01-13 09:46:16 UTC
This report is unclear. 
Xisco, did you get the file and reproduce something?
PMouse, are you saying that opening LO-created DOCX attachment 177514 [details] crashes Office 2019? I don't have Office 2019 but it doesn't crash Office 2016 and O365.
So it looks like NotOurBug.
Comment 17 Regina Henschel 2022-01-13 10:18:45 UTC
Validating against "Microsoft Office 2013 Formats" with "Open XML SDK 2.5 Productivity Tool for Microsoft Office" shows 7 error in the attachment "Almost Minimum Working Example". MS Word 365 opens the file without problems, but images cover captions. If I open the file in LO 7.4 and resave it, images and caption are positioned correctly in MS Word 365.

Version 6.4 had "End of Life" November 2020. Because current versions of LibreOffice and Microsoft Office have no problems, I suggest to close this issue.
Comment 18 PMouse 2022-01-14 08:59:28 UTC
Yes, Timur, that is exactly right.  LO v6.4-v7.2.5.2 produces documents, like this, that crashes Word 2019. I don't know anything about other Word versions or 365, but this was a huge problem for me for a while because everyone I work with had and still has Word2019.

But, isn't current version 7.2?  That's the version I'm reporting against, not 6.4.  Also, Word2019 was only just replaced and is supported for almost two more years.  I mean, it sounds like 7.4 doesn't have this bug, but that's not even a workaround until it gets released.
Comment 19 Timur 2022-01-14 10:25:25 UTC
Created attachment 177543 [details]
Working Example saved in MSO 2016

Closest to NotOurBug because crashing MSO is MSO bug. Especially if it crashes Word 2019 and not Word 2016. 
Creating wrong DOCX would be LO bug but for that, needed is source ODT which, when saved, creates wrong DOCX.

But for test, here is Working Example saved in MSO 2016. Please test if that one crashes MSO 2019.
Open XML SDK is rather old tool and I guess there should be better ones. 
But it shows 4 errors for this file, meaning that MSO saving fixed 3 errors (.
Comment 20 PMouse 2022-01-14 21:29:27 UTC
Very interesting.  Working Example saved in MSO 2016 produced the same first error: "Word found unreadable content in '<document>'.  Do you want to recover the contents of this document?..."  However, if I click "yes", the document is shown, a little messed up, but functional.  Whereas, the same document exported by LO 7.2.5.2 cannot be converted, apparently, and MSO2019 suggests using the software marketplace to find software to help, but never successfully opens the document.

I also tried converting the MWE I provided to ODT with LO, closing it, reopening it, and saving it as .docx.  That docx version produced the same two errors as the MWE, which was never saved as ODT.  But, the .odt document, in between, produced the same result in MSO2019 as the MSO2016 document you posted.  Meaning, MSO2019 generates the error: "unreadable content" when opening the .odt version, but *is* successfully able to "recover" a usable document.

I'm loosing track of where all this evidence leads.  There is clearly a disagreement between LO v6.4-v7.2 and MSO2019 about the correct .docx format re: images or maybe floats, still not sure what is the core issue.  In LO7.2, this disagreement doesn't result in a crash of MSO2019, which is an improvement, but it is still not interoperable.
Comment 21 QA Administrators 2022-01-15 04:02:23 UTC Comment hidden (obsolete)
Comment 22 Justin L 2022-09-06 12:45:11 UTC
I think I'll just close this bug. It has wandered around and hasn't been commented on for half a year. It indicates that the latest versions of LO don't contain the problem, and it only affects the latest, supported Microsoft product (which they ought to fix). So this could be WORKSFORME, or NOTOURBUG, but I'll mark as INVALID since it never really pin-pointed any specific problem.