Issue 127689 - Open Office crashes when I try to open a Microsoft Doc
Summary: Open Office crashes when I try to open a Microsoft Doc
Status: CLOSED DUPLICATE of issue 100927
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: 4.1.5
Hardware: PC Windows 10
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-06 17:34 UTC by John G
Modified: 2018-04-21 11:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Just the minutes from our fishing club should just be formatted text (242.50 KB, application/msword)
2018-02-06 17:34 UTC, John G
no flags Details
test file with tables and anchors (76.00 KB, application/msword)
2018-04-21 11:53 UTC, Anca Lostun
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description John G 2018-02-06 17:34:56 UTC
Created attachment 86341 [details]
Just the minutes from our fishing club should just be formatted text

Sample file attached, I get no error report just "reporting problem to Microsoft"
Restart Writer is OK but will not handle the file.
Comment 1 oooforum (fr) 2018-04-21 08:12:48 UTC
If I delete tables, the crash vanished.

Already reported

*** This issue has been marked as a duplicate of issue 100927 ***
Comment 2 Anca Lostun 2018-04-21 11:51:23 UTC
I was able to replicate this bug on my system: AOO420m1(Build:9800) - Rev.1829211(Windows 10) using the .doc file attached to the ticket.  

I managed to isolate the cause of the problem to the file content, specifically an anchored table that has another table nested in the first column of the first row. The place where the second table is nested might be influenced by the location of the anchor.

See attached a more simplified file to replicate the issue (testfile.doc)

Steps to reproduce:
1. Open testfile.doc in AOO and note that if can be opened successfully. 
https://www.screencast.com/t/Eb2FysnLop30 
2. Open the file in Microsoft Office Word (I used Word 2007). 
3. Insert a table in the first column of the first row of the existing table and save. 
4. Open the file again in AOO 
   Result: the application crashes. 

Note that the crash does not happen if all the editing is done in AOO. 

 
Other tests that I tried:  

1. Open in AOO other .doc files created with MS Office 2007 and LibreOffice 
Result: files are opened successfully so it doesn't seem to be an extension problem.

2. Open the original .doc file attached to the ticket in MS Office 2007 and LibreOffice.
Result: the file is opened successfully, so the file is not corrupted. 

3.1. Open the attached .doc in LibreOffice, save, then open it in AOO 
Result: the file is now opened successfully.
3.2  Open the attached .doc in MS Word, save, then open it in AOO 
Result: AOO crashes
It seems that the problem is related to how the file content has been initially saved, possibly in MS Word.

Several tests done to isolate which part of the content could be problematic (text formatting, pictures, tables, footer).
Starting from the attached .doc, open in MS Word 2007 and:  
4.1 remove the pictures, save, open the file in AOO -> AOO still crashes  
4.2 remove the footer, save, open the file in AOO -> AOO still crashes  
4.3 remove the tables, save, open the file in AOO -> file opened successfully  

When I checked the tables closer I noticed that there is one big table with 2 other small ones nested in the first two columns of the first row 
https://www.screencast.com/t/sVBuOeAMDTd (borders of each table are highlighted in different colors for better visibility)

AOO crashes only when opening the file with a nested table in the 1st column of the 1st row and the main table seems to be anchored.  

I've also tried with nested tables inserted in the 2nd row or 2nd column and the file can be opened successfully in AOO.

When creating a .doc file in MS Word 2007, with a simple table (not anchored) having another table in the 1st column of the 1st row, the file can be opened successfully in AOO so the anchor seems to be a critical condition.  

From my tests, the number of rows and columns of the main table and the nested table doesn't seem to matter.
Comment 3 Anca Lostun 2018-04-21 11:53:47 UTC
Created attachment 86393 [details]
test file with tables and anchors