Apache OpenOffice (AOO) Bugzilla – Issue 124058
Writer crashes when opening the attached file (2.docx)
Last modified: 2017-05-20 10:35:32 UTC
Created attachment 82319 [details] 2.docx The attached DOCX file (possibly generated with Pages) opens with OpenOffice.org 3.3.0 (even though the layout is quite broken) but crashes OpenOffice 4.0.1. File is discussed, in Italian, at https://forum.openoffice.org/it/forum/viewtopic.php?t=5158&p=24840#p24840
I confirm the crash with my Windows debug build of AOO410m1(Build:9750) - Rev. 1554790. The debug build shows this error messages: Error: no context of this type available From File C:/AOO_2013_10_08_v41/trunk/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx at Line 325 Error: DomainMapper::attribute() - Id: 9264 / 0x2430 value: 0 / 0x0 From File C:/AOO_2013_10_08_v41/trunk/main/writerfilter/source/dmapper/DomainMapper.cxx at Line 2185
taking over to have a closer look
I can reproduce the crash on my system (Windows 7) with AOO 3.4.0, AOO 3.4.1, AOO 4.0.0 and AOO 4.0.1. I can also reproduce the crash with OOo 3.4.1Beta. --> adjusting fields: - "Version" = 'pre 3.4.0' (actually '3.4.0') - "Latest Confirmation on" = '4.1-dev'
taking over to work on a solution.
Are there further information about the origin of the given document? I am asking, because just a "save-as" in Microsoft Word 2007 without any editing changes the document in such a way that it can be imported into AOO 4.0.1 (only the image is missing).
"orw" committed SVN revision 1559791 into trunk: 124058: *.docx import - check existence of Style before accessing it
fix the crash on trunk for next release
Thank you Oliver, I confirm the file opens with no crash with the current trunk. The file was produced with Pages (even though they are unsure about the version), so this issue is very likely the same as https://issues.apache.org/ooo/show_bug.cgi?id=124106 Note that in both cases we now avoid the crash, but the import quality is very bad: namely, it seems you get one line per page, aligned to the right and with double stroke. Following up on bug 124106 since test documents are better in that case.
closing to be able to reopen
reopening as my code changes causes a crash.
"orw" committed SVN revision 1567869 into trunk: 124058: correction the formerly provided fix
corrected formerly provided fix on trunk
I confirm that the test document does not crash with the current trunk. The import is still extremely bad and I can't understand why all text gets the "double stroke" effect, but this is covered in bug 124106.