Bug 56210 - FILEOPEN: Writer hangs when opening some .doc MS Word file
Summary: FILEOPEN: Writer hangs when opening some .doc MS Word file
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.6.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: high major
Assignee: Not Assigned
URL:
Whiteboard: target:24.2.0 target:7.6.3
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-19 22:58 UTC by f.nazar
Modified: 2023-10-05 09:25 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
MS Word 2007 problematic file (173.50 KB, application/msword)
2012-10-19 22:58 UTC, f.nazar
Details
Problematic MS Word 2007 file (173.50 KB, application/msword)
2012-10-19 23:05 UTC, f.nazar
Details
.docx file has no problem (117.36 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2012-10-20 00:46 UTC, f.nazar
Details
.rtf file generates no problem (2.55 MB, text/rtf)
2012-10-20 00:48 UTC, f.nazar
Details
.doc file generates no problem if section removed (98.00 KB, application/msword)
2012-10-20 00:50 UTC, f.nazar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description f.nazar 2012-10-19 22:58:39 UTC
Created attachment 68821 [details]
MS Word 2007 problematic file

Fileopen problem?

All files MS Word open OK but some hang Writer about 4 seconds after opening it if you try to edit or scroll.

There is a few seconds to click on the first page and type something so it could be a structural problem that lies at the end of the document since it takes those seconds for Writer to read it and reach that point.
It seems the structural problem appears after or just before the word: "Santoral": if I remove that part from word, the document opens OK
This rules out the macros' problems.

I attach similar files generated by the same PC/Word program:

a) Doesn't open in Writer:
2011.10.20.doc

b) Works OK if you save it from MS Word 2007 to:
2011.10.20.docx
2011.10.20.rtf
2011.10.20 without santoral part.doc

Maybe it could be related to this (I haven't tried it since I don't know where to insert the patch):
https://bugs.freedesktop.org/show_bug.cgi?id=55185

thanks!
Comment 1 f.nazar 2012-10-19 23:05:31 UTC
Created attachment 68822 [details]
Problematic MS Word 2007 file

I made a mistake and previously attached a txt file instead of the .doc one
Comment 2 f.nazar 2012-10-20 00:46:33 UTC
Created attachment 68824 [details]
.docx file has no problem

Saved by the same Word 2007 in the same windows vista PC
Comment 3 f.nazar 2012-10-20 00:48:59 UTC
Created attachment 68825 [details]
.rtf file generates no problem

Saved by the same Word 2007 in the same windows vista PC
Comment 4 f.nazar 2012-10-20 00:50:26 UTC
Created attachment 68826 [details]
.doc file generates no problem if section removed

Saved by the same Word 2007 in the same windows vista PC
Comment 5 f.nazar 2012-10-23 02:32:18 UTC
When using  File --> Wizards --> Document Converter, the doc file is converted to odt but when opening it, Writer hangs as before
Comment 6 f.nazar 2012-10-24 03:05:11 UTC
File opens fine with AbiWord 2.8
Comment 7 Dennis Roczek 2012-12-11 21:29:56 UTC
I can reproduce the results in 3.6.4.3 (win7, 64bit) but only partial in 4.0 (win xp, 32bit VM) (Version 4.0.0.0.beta1+ (Build ID: f4cae670e314f5e869d7d9ac15ea51c3c9cf66f)) as this is working "ok" with 100% CPU.
Comment 8 Dennis Roczek 2012-12-11 22:00:43 UTC
Checking the doc with Symphony and AOO3.4.1 without any problems, getting always a warning about a macro (there is indeed one, but an empty one!) and after removing that LO isn't having any problems.
Comment 9 Florian Reisinger 2013-04-21 11:29:49 UTC
APPHANG on Windows 7 x64 with Version 4.0.3.1 (Build ID: a67943cd4d125208f4ea7fa29439551825cfb39) crash with 4.1.0.0.alpha0+
Build ID: fa72fc3eddbfabb82193452a4ba993b11d1584d
TinderBox: Win-x86@6, Branch:master, Time: 2013-04-18_23:11:53 and
Linux: Self-built Version: 4.1.0.0.alpha0+
Build ID: 75c87c417b6fbb82d956a803f065c9c49d0d62f
Comment 10 Xisco Faulí 2014-03-10 16:10:02 UTC
I close this bug report as RESOLVED WORKFORME because it is no longer reproducible.
Tested again in Windows 7 Enterprise with:
   - Libreoffice 4.1.4.2 Build  ID: 0a0440ccc0227ad9829de5f46be37cfb6edcf72
   - Libreoffice 4.2.1.1 Build  ID: d7dbbd7842e6a58b0f521599204e827654e1fb8b
   - Libreoffice 4.3.0.0.alpha0 ID: 335a8a84fe6349fd716d4978346cfff9c884dd9b

Feel free to open this bug report again if you find that the bug is still reproducible under some special circumstances, etc.
Comment 11 Commit Notification 2023-10-05 07:36:31 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/2d6f48d53674ee85179ec8cee8648830207200a2

sw floattable, crashtesting: fix PDF export of fdo56210-3.docx

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 12 Commit Notification 2023-10-05 09:25:52 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/840606ffb872e280228cd5144bf22541d1f94214

sw floattable, crashtesting: fix PDF export of fdo56210-3.docx

It will be available in 7.6.3.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.