Modifying a Windows created docx file crashes Libre Office Writer

I have recently upgraded Libre Office to 4.3.5.2 and I have used Calc most often.
I have had several crashes of Libre Office, killing all open Libre Office applications on Fedora 20.

  • The crash occurs when I am saving the document.
  • I have tested this by adding a single word to the file and attempting to save the file - still crashes.
  • I have tested opening the document and performing a save-as with the same .docx extension, with no change to the original docx file.

Scenario:
a. Open a Microsoft Word document, saved in .docx format - opens file
b. Add text into a outline numbered section and save the document in .docx format

  • The Text has autonumbered list of elements
    c. Attempt to save the document
    - I see the saving process go to say 99% and then Writer crashes
    d. I have now retested the document saving by adding 1 word to the document and saving the file and the crash
    occurs
    e. Save-As of the un-modified document as also crashes all of Libre Office

Libre Office crashes and kills all open Libre Office documents - 3x Calc and 1x Writer

I have attempted this 6 times and I have a 100% record on failures.

I have tried the following :-
a. Adding numbered list of text - typing it in and next element is autonumbered
b. Pasting in the text - I got fed up writing it in multiple times.
c. Adding a single word to the document crashes Libre Office.

d. I have created a new document and attempted saving that as type .docx and that saves.
- It seems that this is related to an existing MSWord Generated document, being saved in Libre Office

This issue did not occur when I was v4.3.4.1

I have also opened a bug report for this … any comments please add

As for me (IMHO): you’d better reinstall Fedora distribution, as such bugs and regression may be connected with Fedora Desktop

I tried to reproduce your problem:

PC-1:
I did in that kind:
Way 1: I made in Word 2010 the file with the following: “Hi! This is a test!”. Saved as “test.docx”. Opened Writer and opened in it this file. Saved a copy as test.odt. Closed everything. Opened this file test.odt Everything is okay!
Way 2: Downloaded from Google some text in .docx format. Opened in Writer. Saved a copy in .odt format. Closed everything. Opened this modified file on Writer. Everything is okay!
My specifications:
Windows 7 x86 (32 bit) LO 4.3.5.2

PC-2:
The same with MacOSX 10.8.5 with LO 4.3.5.2
The result is the same

My advice is have a very careful look at Fedora system. Seems that there are some broken paths or libs that are closely connected with LO and break its fundamental work.

if you want probe this test: open DOCX file (no modified) and save in the ODT format, re-open ODT modify, now crash?

I did in that kind:
Way 1: I made in Word 2010 the file with the following: “Hi! This is a test!”. Saved as “test.docx”. Opened Writer and opened in it this file. Saved a copy as test.odt. Closed everything. Opened this file test.odt Everything is okay!
Way 2: Downloaded from Google some text in .docx format. Opened in Writer. Saved a copy in .odt format. Closed everything. Opened this modified file on Writer. Everything is okay!
My specifications:
Windows 7 x86 (32 bit) LO 4.3.5.2

Additional information:-
0. I am running LO on Linux, Fedora 20, 64-bit

  1. This MS Word Document is sent from a Colleague and is not my own created from scratch. This is a very large document in itself, with 256 pages, >55K words and >40 images

  2. I am able to open the document in a Windows VM with MS Word and I have updated and saved it.

  3. I have just tried to modify the doc and to re-save it and LO crashed again…

  4. I created test documents from scratch using my current install they work.

Jan 8 10:55:26 localhost kernel: [39891.186417] soffice.bin[19167]: segfault at 35 ip 00007f7c196f1af5 sp 00007fff77a886f8 error 4 in libcomphelper.so[7f7c19609000+168000]
Jan 8 10:55:26 localhost kernel: soffice.bin[19167]: segfault at 35 ip 00007f7c196f1af5 sp 00007fff77a886f8 error 4 in libcomphelper.so[7f7c19609000+168000]
Jan 8 10:55:29 localhost abrt-hook-ccpp: Saved core dump of pid 19167 (/opt/libreoffice4.4/program/soffice.bin) to /var/tmp/abrt/ccpp-2015-01-08-10:55:26-19167 (3650355

Jan 8 10:55:29 localhost abrt-server: Package ‘libreoffice4.4’ isn’t signed with proper key
Jan 8 10:55:29 localhost abrt-server: ‘post-create’ on ‘/var/tmp/abrt/ccpp-2015-01-08-10:55:26-19167’ exited with 1
Jan 8 10:55:29 localhost abrt-server: Deleting problem directory ‘/var/tmp/abrt/ccpp-2015-01-08-10:55:26-19167’

I have deployed the v4.4.0.2 Alpha to see that has the same issue, and to remove the current v4.3.5.2 and this version also has the same issue.

I have saved the .docx file as a .doc file with a differnt name, using MS Word, and I then attempted to edit and save the file using LO and that works fine.
There is something in the .docx version of the file that is the issue.

is there a LO debugger, that I can run to gain additional diagnostic information on this issue.

I have tried additional large word files with .docx to see if size is the problem and they were saved. I tried a 32MB file with 25K words, which is also large and that saved.

Well, that changes a bit the situation. I will try on a big file I have (about 300 pages, but I need to convert from .pdf), and then tell here the results.