Bug 150450 - DOCX Document Intermittently Appears Saved as a DOC File with DOCX Extension
Summary: DOCX Document Intermittently Appears Saved as a DOC File with DOCX Extension
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.5.2 release
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-16 17:59 UTC by Paul
Modified: 2023-02-02 12:07 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
DOCX files, corrupted when saved (39.05 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-09-01 13:22 UTC, Paul
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul 2022-08-16 17:59:51 UTC
Description:
LibreOffice: 7.3.5
Apple iMac: MacOS Monterey 12.5

I downloaded LibreOffice 7.3.5 to try out. Played around a while, seemed fine.

I loaded a 50k DOCX file (created with MAC MS Word 2016) and made changes. Saved File. Reloaded, all good. Made more changes, Saved. Exited. Later, when I tried to open, it said (instantly):
“my_file.docx” is damaged and can’t be opened. You should move it to the Trash.

So, I went to a backup (lost my changes) and tried to recreate the issue, but could not. So, more editing and multiple saves, exited, corrupted again.
So, deciding to create a Bug Report, I tried to recreate the issue for the report, no dice. Everything works fine.

I noticed that the 50k file, was saved as a 40k file. Just on a whim, I renamed the file to my_file.doc. Now both Word and LibreOffice load the previously corrupted file, with no issues.



Steps to Reproduce:
1. LibreOffice 7.3.5
2. Open My_File.docx
3. Make changes to the file
4. Save changes
5. Repeat 3-4 a few times.
6. Exit LibreOffice
7. Double Click the DOCX file
8. Corrupt message occurs

Actual Results:
“my_file.docx” is damaged and can’t be opened. You should move it to the Trash.

Expected Results:
Open/Edit File.


Reproducible: Sometimes


User Profile Reset: No



Additional Info:
It appears that the DOCX decompression occurs before Word or LibreOffice is opened (since it occurs so quickly after double-click file. It fails, so it never loads the editor (word or LibreOffice).
Once the issue occurs, both Word and LibreOffice see the exact same issue.
Renaming the file to *.doc allows the file to load correctly.
Comment 1 Dieter 2022-09-01 07:33:19 UTC
Paul, thank you for reporting the bug. Please attach the file My_File.docx. Thank you.

(Please note that the attachment will be public, remove any sensitive information before attaching it)

=> NEEDINFO
Comment 2 Paul 2022-09-01 13:22:15 UTC
Created attachment 182156 [details]
DOCX files, corrupted when saved
Comment 3 QA Administrators 2022-09-02 03:40:06 UTC Comment hidden (obsolete)
Comment 4 G 2022-09-02 11:58:54 UTC
Could not reproduce on:

Version: 7.4.0.3 (x64) / LibreOffice Community (The latest version of LO)
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 12; OS: Windows 10.0 Build 19043; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL


Nor on:

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: aea89831f93b501738e62db9787a1085fd483193
CPU threads: 12; OS: Windows 10.0 Build 19043; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 5 Dieter 2022-09-02 12:07:23 UTC
(In reply to Ginge from comment #4)
> Could not reproduce on:

Ginge, thank you for testing, but please only change status to RESOLVED WORKSFORME, if you could reproduce it in an older version. So back to UNCONFIRMED.

I also can't confirm with

Version: 7.4.0.3 (x64) / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Paul, could you please retest with LO 7.4 and a clean user profile. Might also be unseful to specify step 3
=> NEEDINFO
Comment 6 Paul 2022-09-03 18:30:49 UTC
Thanks for looking at this, guys (and gals).

I know you know this... but remember, this is a MAC and the decompression step appears to be a "pre" step to starting Word/Libre Office to open the document.

I am a Software Developer, retired from Dell after 25 years. I consider my troubleshooting and debugging skills to be above average to excellent (but I have been retired for 2 years).

I just spent over an hour "trying" to create the issue, but everything worked fine. I even started with a copy of the document (from a Time Machine backup, a half hour earlier) that preceded the corruption. NO DICE!

The issue has happened twice. In both cases, I was not doing anything unusual, basically this DOCX is just a bunch of notes about a new RC Transmitter I bought. 

The issue happened when I edited the document, followed by save and exit. Then, I could not open the document, with Word or Libre Office, as the decompression step would fail, before the app was started.

Because I don't not know what set of actions cause the issue, I have not been able to recreate the issue, when actually trying to create it.

To work around the issue, I just changed to DOC files. 

I will play some more. I will try to use various menu functionality to see if there is anything there.

Paul Maia
Comment 7 QA Administrators 2022-09-04 03:51:40 UTC Comment hidden (obsolete)
Comment 8 Justin L 2022-09-05 21:12:41 UTC
Mount (or unzip) the DOCX file to see if it really is DOCX (xml files) or DOC (binary).
Comment 9 Rangarajan 2022-09-11 07:20:25 UTC
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 465c3ad95059f0efa13c8027f7383c4d20a5b2ff
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
Calc: threaded

NO REPRODUES
Comment 10 Buovjaga 2023-02-02 12:07:02 UTC
As there are no steps to reproduce, I guess we should close.